Commit 05b0834b authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: add note how to extend TinyMCE valid_elements.

parent c17afb95
Pipeline #1287 passed with stage
in 1 minute and 45 seconds
......@@ -7621,4 +7621,19 @@ Javascript problem
Open the 'Webdeveloper Tools' (FF: F12, Chrome/Opera: Right mouse click > Inspect Element) in your browser, switch to
'console' and reload the page. Inspect the messages.
Glyph Icons in '<span>'
TinyMCE forbids by default HTML tag 'span' with 'class' attribute. E.g.: ::
<span class="glyphicon glyphicon-user"></span>
To allow it, add 'span' to the valid elements in the FormElement.parameter field: ::
editor-extended_valid_elements = span[class|style]
The HTML span tag has to be added via 'source' view. At least in TinyMCE 4.7.13, the glyph is still not shown in the
editor but saved.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment