I searched for usable way to let my clients insert embed codes (YouTube, Vimeo, Soundcloud, Google Maps, YourListen) in the content. I know it's possible by clicking the HTML-button, or using the awkward 'media' button. But those two options are not user friendly at all.
I found this TinyMCE 3.x plugin who let the user inserting an embed code by just pasting it in a text box, without asking for any more info.
It looks like this:
Installation:
- Download plugin (see attachment) and extract it
- Upload it to assets/components/tinymce/jscripts/tiny_mce/plugins/embed/
- Go to system settings > tinymce and add
to tiny.custom_buttons1: embed
and to tiny.custom_plugins: embed
- You are done.
If TinyMCE is not working anymore after installation of this plugin, there could be two things which solves this issue:
1 You have set the language in the system settings to an other value than 'en' or 'nl'. Copy the files embed/langs/en_dlg.js and embed/langs/en.js and change the file names to the value you have set in your system setting (example for french users: fr_dlg.js and fr.js). Next, open these two files and change at line 1: 'en.embed_dlg' to 'fr.embed_dlg' and in the other file 'en.embed' to 'fr.embed'
2 You have not uploaded the plugin in the correct folder. It should be like assets/components/tinymce/jscripts/tiny_mce/plugins/embed/<files> and not assets/components/tinymce/jscripts/tiny_mce/plugins/embed/embed/<files>
Enjoy!
[ed. note: michelle84 last edited this post 10 years, 11 months ago.]