Closed neutronron closed 2 years ago
change your styleClass="trumbowyg-editor"
to styleClass="trumbowyg-textarea"
. Also change the JS DOM selection from $j('.trumbowyg-editor')
to $j('#trumbowyg-editor')
.
This happen to me too... And it fixed by changing the classid, hope it works on your issue too...
Please, do not use any trumbowyg-*
classes, since they are used internally by Trumbowyg itself.
I think you can remove the styleClass
attribute, and base your selector on the input ID as @rzlnhd said :).
Description
The editor appears to have loaded fine. All configured buttons/features appear work, except for the viewHTML button. When that is clicked, the other buttons grey out and the editor goes blank instead of displaying the HTML. Clicking it again re-enables the other buttons and the WYSIWYG view appears again (with the content showing). Have you seen this problem before?
Also, I don't see any errors in the browser console when I reproduce this issue.
Provide relevant details according to the context:
How to reproduce?
Couldn't reproduce on fiddle so I've attached a Loom recording link.
https://www.loom.com/share/6c3fd166465f4fe297bd0040ce9352a0
Code snippet (Visualforce/Salesforce):