-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
How do I remove inline styles from generated HTML #203
Comments
Which browser? Version? OS? I think it's due to the browser content editable API. |
I think that is relate to ... Chrome recently versions occurs the problem maybe. |
This only seems to happen when I add another UL > LI to a list already created and when I try to add a OL > LI it also adds inline styles but doesn't actually style it in the editor. I've posted a QuckCast video to show the example: http://quick.as/Q4q5S7gpq I'm using Chrome Version 46.0.2490.86 (64-bit) on OS X El Capitan 10.11.1 (15B42) |
:/ Do you think I can remove all style before put it in a list? |
I don't understand your comment? |
Sorry :/ |
In my case. Temporary hack is below. but it's very dirty. I'm waiting for better solution.
|
Thank you - I'm building a prototype so happy to use a dirty hack for now. |
This seems to be a problem with most editors - A quick search brought this up. I've not tried it yet (will do tomorrow), but looks promising: http://www.neotericdesign.com/blog/2013/3/working-around-chrome-s-contenteditable-span-bug |
Seems like fixed in Chrome. I can't reproduce this bug now. |
Someone can test if the problem persists in I don't know how to reproduce this bug :/ |
Don't know if it's related (think so). Also removeformatPasted option doesn't remove styles inside |
Since v2.0.2 stable is release, anyone can test if this bug is still present? I don't have it on Chrome :) |
I still see this happening in Chrome 49.x and 50.x Couldn't it be fixed by something like this in
|
The color plugin use spans to add color in style attribute. We can't remove it completely. |
Have you got a sample page with this bug? I need to reproduce it easily to try to fix it. |
I've forgotten about color plugin, or anything else that could use spans.
FIrefox seems fine. But Chrome/Chromium not. I tried it in these browsers:
|
Can't reproduce each time, sorry I don't have the time to fix it. |
Problem is still actual, btw |
Apologies if I am missing something here. Adding
<li>
items in the editor creates<span style="line-height: 1.4em; background-color: initial;">
. How do I stop the styles from being added, or at least stop it from submitting with the styles?Great editor, btw :)
The text was updated successfully, but these errors were encountered: