We have moved to GitHub Issues
Created by Laurence Gillian 18 Oct 2013, 11:16:55 Updated by Laurence Gillian 22 Oct 2013, 09:12:40
When a content editor hits save, the data inside the richtext editor is processed to ensure it is valid. Due to a two step process, it seems some valid tags are not allowed with TidyEditorContent is set to true.
From reading the code, I believe the process flows like this:
This works nicely, until adding support for a custom element or fix the broken handling on an existing element.
I expected to be able to add a new element to the TinyMceConfig
You can test this by adding ',+umbraco[*]' to the TinyMceConfig.config
To solve this issue, would require TidyNet.Net to understand the contents of
A real world example of this is for the
I tested a selection of different iframe tags:
The only successful tag, is number 9.
Most content editors, would want to create an iframe in the following format.
No adjustment of the
My proposed solution, would be to make
Could you explain: "it completely changes the 'known' behaviour of how the TinyMCE data is processed. (suddenly everything is wrapped in p tags)"?
So I guess instead of br's you suddenly get p's? Not sure if that's a side-effect of disabling tidy but you can configure that: http://www.tinymce.com/wiki.php/Configuration3x:force_br_newlines
So in tinyMce.config:
And as I already said: the umbraco embed plugin in TinyMCE allows your editors to just copy/paste a youtube url so they don't need to know about iframes at all! :-)
Update to the above:
Use the embed plugin but don''t enter the youtube URL, paste the iframe there (as you requested without width and height) and voilá!
Thanks :) That is working nicely.
Backwards Compatible: True
Affected versions: 4.11.10
Due in version: