I am trying to add an <iframe> tag in a textfield (TinyMCE) of umbraco v
4.7.0, but this gets filtered! The application runs on ASP. net 4.0 and IIS 7.
I know there are many similar topics in this forum, but I could not manage to fix the problem by following other suggested solutions.
If you can't get the above suggestions from Peter to work then you can go to the /config/umbracoSettings.config folder of the website and change the line <TidyEditorContent>True</TidyEditorContent> to "False".
That way custom HTML tags wont get stripped and in newer Umbraco releases it has been disabled by default.
However I personally think it's beneficial to keep the setting set to true since by disabling it opens up for the content editors to add a lot of bad markup like <font> tags and other messy stuff. Therefore I only think you should try this as a last resort if adding the iframe element to the TidyConfig does not work.
Alternatively you could also create a macro that inserts the iframe when the page is rendered.
HTML filtering in TinyMCE
Hello Everybody,
I am new to Umbraco CMS.
I am trying to add an <iframe> tag in a textfield (TinyMCE) of umbraco v 4.7.0, but this gets filtered! The application runs on ASP. net 4.0 and IIS 7.
I know there are many similar topics in this forum, but I could not manage to fix the problem by following other suggested solutions.
Could you please explain this to me? Thank you.
Hi Lore
You need to look at the TinyMCEConfig.config in the /config folder and add it to the list of allowed elements in the
Hope that helps.
Hi Peter,
I went to that file and now that looks like the following:
Still when I click on "save and publish" nothing gets displayed! I don't understand why that happens.
Try changing it to read
iframe[*]
I think it might be rejecting it because you have other attributes that are not on the list of valid attributes.
Hi Lore and welcome to our :)
If you can't get the above suggestions from Peter to work then you can go to the /config/umbracoSettings.config folder of the website and change the line <TidyEditorContent>True</TidyEditorContent> to "False".
That way custom HTML tags wont get stripped and in newer Umbraco releases it has been disabled by default.
However I personally think it's beneficial to keep the setting set to true since by disabling it opens up for the content editors to add a lot of bad markup like <font> tags and other messy stuff. Therefore I only think you should try this as a last resort if adding the iframe element to the TidyConfig does not work.
Alternatively you could also create a macro that inserts the iframe when the page is rendered.
Just my 2 cents.
/Jan
is working on a reply...