Ability to remove body class on preview output
See original GitHub issueWhen you click the preview button, the class sun-editor-editable
is always added to the body. Is there a way to remove this class? I tried setting _editableClass
in the options, but that doesn’t work unfortunately.
The reason is because the CSS of SunEditor affects the eventual output. See attached video
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How can I add and remove an active class to an element in ...
Use document.querySelectorAll to find the element which currently have the active class, then you can remove that class.
Read more >How to get content from the editor and set content | TinyMCE
You can do this using the setContent() API method. There's a few different ways you can do this. If you've got one active...
Read more >Safari Technology Preview Release Notes - Apple Developer
Preview the new type of phishing-resistant credential that makes signing in to websites safer and easier. Available through Safari's WebAuthn platform ...
Read more >New features in Android Studio Preview
Discover new features and changes in Android Studio preview. ... changes such as method signature updates, adding new methods, or class hierarchy changes....
Read more >contenteditable - HTML: HyperText Markup Language | MDN
Chrome Edge
contenteditable Full support. ChromeYes. Toggle history Full suppo...
contenteditable="caret". Experimental Full support. ChromeYes. Toggle history Full suppo...
contenteditable="events". Experimental Full support. ChromeYes. Toggle history...
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 FreeTop 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
Top GitHub Comments
The 2.36.5 version has been updated. If this issue has not been resolved, please reopen this issue. Thank you.
Thanks! Just to clarify, it should only be changing the class on the body of the preview output. Not on the rest of the SunEditor.