modx-ckeditor icon indicating copy to clipboard operation
modx-ckeditor copied to clipboard

Stop wrapping MODx tags in <p></p> Tags

Open exside opened this issue 12 years ago • 2 comments

don't know if this can be done, but I have invalid markup generated because CKEditor is wrapping MODx tags in block level element

(what usually is fine for text), but when the MODx tag (for ex. a chunk) has some own markup like

inside, it's getting a mess =)...

exside avatar Jun 21 '13 14:06 exside

CKEditor does not generate invalid markup. It just inserts a paragraph on Enter. If you remove wrapping tags in Source mode, you get a clean code. TinyMCE can deselect format in Format Combobox, but CKEditor can't unfortunately.

danyaPostfactum avatar Jul 24 '14 09:07 danyaPostfactum

Yeah, that's what I usually do, but my editors do not like the source mode^^, so no possibility to have some regex cleaning up p-tags around modx tags before save? =)

exside avatar Jul 24 '14 14:07 exside