question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to remove body class on preview output

See original GitHub issue

When 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

https://user-images.githubusercontent.com/16164800/107636959-b8a52d80-6c6d-11eb-93f8-584d02a6c619.mp4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JiHong88commented, Mar 5, 2021

The 2.36.5 version has been updated. If this issue has not been resolved, please reopen this issue. Thank you.

0reactions
guido-vissercommented, Mar 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found