We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17548
    • 74 Posts
    Hi: I tried a search but don’t see anything answered.

    I have a new revo install with TinyMCE package loaded. It works fine (just like on my old evo sites) but when I try to paste a google maps iFrame it strips out the iframe tag.

    I checked in the tinymce docs and they talk about adding:

    extended_valid_elements : "iframe[src|width|height|name|align]"

    to the init. But I can’t figure out where the init is managed.

    I also noticed that the xconfig.js in the tinymce directory of my components directory already has iframe defined.

    Any help/pointers would be appreciated. I know I can use a tv with no rte enabled for the maps, but it’s kind of a pain in the butt at the moment.

    TinyMCE Package 4.2.1 RC1
    Modx Revolution 2.0.4 pl2
      • 17548
      • 74 Posts
      Ok, so I went through all this with Evolution, and now I’m trying to figure out the new world order.

      Did some digging around with the forums and now I’ve tried adding a custom property set to the plugin and then creating a custom property set and adding a property called:

      extended_valid_elements

      with a text value of:

      iframe[src|width|height|name|align]


      I thought I was clever, but of course, this hasn’t worked.

      Pointers? Anyone?

      This is TinyMCE 4.1.2-pl plugin on MODx Revolution 2.0.5pl
        • 17548
        • 74 Posts
        After doing some trial and error, I managed to create a custom property set for TinyMCE and add a new property:

        extended_valid_elements

        with a value of

        iframe[src|width|height|name|align] and it seems to work.