开发者

How do I turn off codetidy in TinyMCE editor in Umbraco?

开发者 https://www.devze.com 2023-02-12 21:27 出处:网络
I am running Umbraco 4.5.2. In config/umbracosettings I have made the change <TidyEditorContent>False</TidyEditorContent>

I am running Umbraco 4.5.2. In config/umbracosettings I have made the change

<TidyEditorContent>False</TidyEditorContent>

In TinyMCEConfig I have de开发者_开发百科leted the valid elements and replaced with

 <validElements><![CDATA[*[*]]]></validElements>

I have gone into web.config, added a space and resaved - to get Umbraco to reload the config files.

In Umbraco when I add content, it is still being 'tidied' and stripping out tags that I want left in. I just want to turn the code tidy off completely.


You have to explicatively define the valid elements in the validElements section in the TinyMCE config. The behavior you are experiencing is not related to Tidy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号