Is there a way to set TinyMCE so it won't print the HTML tags literally and use what is put in the field as plain text instead? Even when I switch to code view and paste it there it will still mess it up when the question is saved.
Any guidance is appreciated, thanks.
Hello Matt,
In most, if not all, question types and with the Atto and TinyMCE editors, you can directly type tags such as <p>, <br>, etc., while in display mode, as shown here. This appearance is preserved when you save the question. Notice the difference when you switch to the source code mode: the '<' character is represented as the HTML character entity reference '<', and the '>' character is represented as '>'. However, real HTML tags in the source code are displayed as '<p>', '<br>', etc.
If you are using the TinyMCE editor and you want to add HTML, you have to first select "View" then "< > Source code" in the editor's menu.
If you are using the Atto editor and you want to add HTML, you have to first click on the "⮧" button then on the "< / >" button in the editor's menu.
empty lines,
either tag p
or tag br
(can't type them fully, as it doesn't display them here)
are visible when typed either in the WYSIWYG editor (enter or shift enter) or in the source code,
but not printed out after saving.
They are still there, in the code, just not displayed.
I am putting this here as the subject of the thread seems adequate.
This is the reason I am considering going back to Atto.
And this is definitely TinyMCE related:
when switched back to Atto, all empty lines are printed fine after save.
When switching to TMCE again, they are shown fine until opened in Tiny, and saved.
Then they are gone from the output.
Does anybody know any workaround?
There are obvious pros to use TinyMCE, and I would like to keep it if possible.