We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19328
    • 433 Posts
    I wondered why this is never documented before, so here is a short tutorial about how to add a YouTube button to TinyMCE 3.x:




    - Download the TinyMCE 3.x YouTube button plugin from here: http://www.vierkante-meter.nl/rommelmap/tinymce-youtube/youtube.zip or download the attatchment.

    - Extract the zip and upload it to assets/components/tinymce/jscripts/tiny_mce/plugins/youtube (So the files are in the folder youtube, and not youtube/youtube)

    - Go to the MODX system settings section TinyMCE and add 'youtube' to tiny.custom_buttons1 and tiny.custom_plugins

    - Clear the MODX cache and your browser cache

    - Enjoy smiley

    PS: If TinyMCE is not showing up in the manager that's because the language file for the plugin could not be found. You have to create two language files in assets/components/tinymce/jscripts/tiny_mce/plugins/youtube/langs/ (xx.js and xx_dlg.js), the same as your MODX manager language setting. The following langauge files are included in the plugin: de, en, fr, ru, nl

    PPS: My YouTube plugin is based on the YouTube plugin below, but I've made some modifications so it does accept https:// URL's. And I've included Dutch translation. http://magix-cjquery.com/post/2012/05/11/plugin-youtube-v1.4-pour-tinyMCE [ed. note: michelle84 last edited this post 12 years, 2 months ago.]