Modify TinyMCE's capabilities
  • Hi,

    I've found that TinyMCE rejects the iframe tag when it is pasted into the HTML area by default. I tried fixing this by editing init.js in the \application\modules\editor\assets\js folder, adding "iframe[src|width|height|name|align]" to the "extended_valid_elements" keyword. I saved and uploaded the file, purged the cache of TangoCMS, but the iframe tag is still rejected. What else do I need to do? Using TangoCMS 2.6.1, with a heavily modified purity theme.

    Thanks!
  • Are you sure you edited init.js and not init.src.js? The latter will only be used when TangoCMS is running in development mode.
  • Hmm, yeah: init.src.js doesn't exist in my folder of TangoCMS :) Was I on the right track and should I persevere a bit more?

    Thanks for the reply
  • Ah yes, the production packages have the source files removed - I forgot about that :P

    Yes that should be correct, although you would have to look in the TinyMCE docs to ensure this is correct. Maybe you need to add a new plugin?
  • I got it working this time, by disabling the use of Google's CDN. Was that necessary or is it just a coincidence? I simply tried again exactly what I've written above, but now also turning off Google's service.
  • Hum, that shouldn't effect anything. When Google CDN is enabled the only file we get from Google CDN is jQuery, when disabled it uses a local copy of jQuery. Strange =)
  • Well, let's just assume it's a coincidence :) It's working, that's the most important.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion