How do I remove inline styles from generated HTML
See original GitHub issueApologies 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 😃
Issue Analytics
- State:
- Created 8 years ago
- Comments:19 (11 by maintainers)
Top Results From Across the Web
Remove inline styles - Html-cleaner.com
Using inline styles means that the styles of the elements are not given by classes or ids but it's specified within the HTML...
Read more >Remove inline css of an HTML elements - javascript
Use the removeAttribute method, if you want to delete all the inline style you added manually with javascript. element.
Read more >How to Fix & Remove Inline CSS - YouTube
Learn how to fix inline CSS in your code, and speed up both your development time and website in the process. Test your...
Read more >How to clear all inline styles from an HTML element - Evan Hahn
In short: set the styles to the empty string to clear all styles (for example, myElement.style.cssText = ""; ).
Read more >remove-style - npm
You can pass HTML strings as argument to Remove-Style to remove inline styles. In that case, Remove-Style returns the removed styles' HTML ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
In my case. Temporary hack is below. but it’s very dirty. I’m waiting for better solution.
Can’t reproduce each time, sorry I don’t have the time to fix it.