I've got a Kendo editor with custom CSS styles that I'm importing via a custom style sheet. Is there a way to apply the classes to the p element instead of wrapping the text with a span element. I'm trying to control how the user formats the text to just the classes in my style sheet.
We have run the code that you provided in a sample project, but we are not sure that we have understood you in the right way. Could you please explain in more detail what are your requirements? There is no inbuilt paragraph element in Kendo Editor. Looking forward to your reply.
This post is really outdated however, I stumbled upon it as I had the very same issue. In fact the solution is quite simple but I didn't find any documentation yet. In order to attach the class directly to the paragraph tag using the formatting tools instead of creating the <span> elements you can use:
Sorry, my description might be misleading - using the formatting tools with just a class name as value, the editor inserts a span element with that class. To avoid this additional span element and attach the class directly to the paragraph tag, define the items as shown above.