Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • wadew 10 posts 20 karma points
    Feb 12, 2009 @ 07:12
    wadew
    0

    TinyMce Removing Html Tags

    Ok, My Problem is that when html tags are put into tinymce html view it removes the html tags :(

    Thanks in advance if you can help me :)
    Thanks,
    Wade

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 12, 2009 @ 08:48
    Dirk De Grave
    0

    Hi Wade,

    TinyMCE cleans up invalid xhtml, and your html is probably not valid in that way. tinyMceConfig.config in the config folder holds a

  • wadew 10 posts 20 karma points
    Feb 12, 2009 @ 19:13
    wadew
    0

    Hi Dirk,

    I had a look at the config file and the tag i wanted to put in was there 'span'
    Thanks,
    Wade

  • wadew 10 posts 20 karma points
    Feb 17, 2009 @ 19:40
    wadew
    0

    Anyone?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Feb 17, 2009 @ 21:06
    Dan Diplo
    0

    Could you give an example of the HTML content before and then after, so we can see more clearly what is happening?

  • wadew 10 posts 20 karma points
    Feb 19, 2009 @ 19:28
    wadew
    0

    Ok i added a 'span' tag in the the html view and then when you save and publish it doesnt save the 'span' tag.
    Is there someway to disable the html cleaner thingy?

  • Alex 35 posts 55 karma points
    Nov 25, 2010 @ 01:32
    Alex
    0

    I am having the same problem. Did you find a solution for that?

  • Mark Mitchell 35 posts 60 karma points
    Mar 12, 2011 @ 03:16
    Mark Mitchell
    0

    I am having the same issue.  I need to be able to insert an iframe in the tinyMCEditor so that I can insert the YouTube embedded player snippits.

    I have partial success, but not a complete fix yet.

    At first tinyMCE would not accept the iframe at all. I found in the tinyMceConfig.config file a block of elements called "validElements" and I added the iframe and the necessary parameters.  This defintely helped (cycle your app pool to apply the new settings), because now I can insert the code in the source view of TinyMCE and it will apply it to the preview area. Howeve when I save to Umbraco the iframe is still purged.

    I think there is an additional HTML sanitizer in the works somewhere.

  • Mark Mitchell 35 posts 60 karma points
    Mar 12, 2011 @ 03:45
    Mark Mitchell
    0

    Hmm.... my last post seems to have been dropped.

    I found that there is an additional HTML sanitizer being used. It is TidyNET.dll.  It can be disabled in the Umbraco.config.

    I am not sure if there is any way to update the whitelist for Tidy so that we don't have to completely disable it. If anyone does know a way to update the Tidy whitelist, that would be very helpful!

    Mark

Please Sign in or register to post replies

Write your reply to:

Draft