I've seen the "wrap with div" button in the editor, but is there one for wrapping content with a <section> tag? I've tried adding to/modifying the styleSet in the styles.js file, and I get content wrapped in <section> but each piece (ex. paragraph) is wrapped instead of one big wrapper. Is there a way to do this?
Thu, 07/31/2014 - 18:38
#1
There isn't one, but you can
There isn't one, but you can always modify or create a custom plugin. More on how to do this in the Plugin SDK...
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
modifying plugins
I just looked at the logic in the CreateDiv plugin and though I can ususally follow JS, I wasn't able to see what exactly put the <div> wrapper around the selected content. Even looking at the plugin SDK, I'm at a loss as to where to begin. Thank you for your response though.