-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CKeditor is mangling inline plugins with multiple <p>
tags
#454
Comments
There seems to be a bug on our end, since that should unwrap into this (normally):
I'm looking into why it happens. In the meantime to fix it you can add Otherwise there's no way to opt out of things we do to have inline previews of plugins |
Interestingly enough - I can't reproduce this, for me it successfully unwraps into:
Is there any additional ckeditor configuration used? |
I think I've now figured this out... it has to do with the So I think that's the fix-- I'm glad to have it, and thanks for testing it out!-- is there something that can be done in the code or docs to fix or alert users about it? Thanks much for the reply |
I think we should definitely add something to the docs about it, thanks a lot! |
Add note about __str__ of text enabled plugins (ref: #454)
I have a
RawPlugin
inside of CKEditor where I hope to keep raw HTML and avoid CKEditor changes. Most content works fine, including content inside a single paragraph tag, e.g.<p>Foo</p>
. But if I add a second graf, e.g.<p>Foo</p><p>Bar</p>
, and then toggle once between the Source and Edit views, it moves the p tags around and mangles the tags.After initially adding it (this is "correctly" formatted):
After next
toHtml
event:This seems to happen regardless of whether or not the plugin is wrapped in its own
<p>
tag. I believe this is happening on step 5 of toHtml, as it goes through theBEFORE_MARKUP_PARSED
event without any trouble.Any advice on how to cancel this out? Is there a way to skip this or other markup changes within
<cms-plugin>
tags, so that it can be truly raw HTML, even if it doesn't render perfectly?I'm on
Django==1.11.9
anddjangocms-text-ckeditor==3.5.1rc4
The text was updated successfully, but these errors were encountered: