I am upgrading a site to Umbraco 8 and am having difficultly with the Rich Text Editor either not rendering the HTML or rewriting it to the point that it does not function. Escaping the HTML used to work, but this no longer seems to be the case in Version 8. Any suggestions?
No Change removing Html.Raw. Right now, I am looking for a way to disable the RTE from reformatting the code. For example, if I don't escape the video tags, RTE completely removes it. If I do escape, it is changing &rt; to &rt;
I found my solution. In the file config\tinyMceConfig.config, add the html video tag to the safe list using video[*]. Once this is done, the html no longer has to be escaped.
For the html Button, I was using i tags for font awesome icons, which tinymce is removing. Changing them to span works
Rich Text Editor re-writing HTML Code
I am upgrading a site to Umbraco 8 and am having difficultly with the Rich Text Editor either not rendering the HTML or rewriting it to the point that it does not function. Escaping the HTML used to work, but this no longer seems to be the case in Version 8. Any suggestions?
Hi, While rendering RTE content the code should be as
Is this the same you were using in your code?
Yes. The RTE content is part of the umbraco grid and looks like:
If its a umbraco grid try only with
No need for @Html.Raw()
No Change removing Html.Raw. Right now, I am looking for a way to disable the RTE from reformatting the code. For example, if I don't escape the video tags, RTE completely removes it. If I do escape, it is changing
&rt; to &rt;
I found my solution. In the file config\tinyMceConfig.config, add the html video tag to the safe list using video[*]. Once this is done, the html no longer has to be escaped.
For the html Button, I was using i tags for font awesome icons, which tinymce is removing. Changing them to span works
Change:
<a id="btnSignIn" href="#" class="btn btn-zpm-default"><i class="fa fa-download"></i> Download</a>
To
<a id="btnSignIn" href="#" class="btn btn-zpm-default"><span class="fa fa-download"></span> Download</a>
is working on a reply...