TinyMCE clears HTML in Umbraco

I am trying to use the Bootstrap function collapsein Umbraco, but when I edit the HTML page of the page in a text editor (TinyMCE), the attributes data-are cleared when I save the page so that the plugin does not work. I followed Allow any markup in the tinymce editor without effect. Can I stop TinyMCE by clearing my HTML?

EDIT: I reproduced the problem at http://fiddle.tinymce.com/BNcaab

Try pasting the code below into the HTML editor, and then save and click the HTML editor again.

<a class="accordion-toggle down" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
    <h4>Slide 1</h4>
    <span class="accordion-arrow"></span>
</a>  
+2
source share
2 answers

Umbraco TidyHtml / , , 100% sysnc tinyMCE valid/invalid_elements. html5, , , , <scripts> ( , !) <iframes> . , , , Umbraco 4.8.11 , , . Tidy [/config/umbracoSettings.config] :

    <!-- clean editor content with use of tidy -->
    <TidyEditorContent>False</TidyEditorContent> <!-- gross but: http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/allow-any-markup-in-the-tinymce-editor -->
+2

, : <![CDATA[*[*]]]> tinymce. config valid_elements .

+1

Source: https://habr.com/ru/post/1530206/


All Articles