Install YouTube plugin into TinyMCE
- Unpack archived files directly to
tinymce/plugins
. - Turn on the plugin in
initialization script:
plugins: 'jsplusYouTube'
- Add these buttons to the toolbar definition:
- Insert or edit YouTube video
jsplusYouTube
- Now you can use your installed plugins. Do not forget to sure that browser cache was cleared.
Configuration
Optionally, you can configure the plugin for your needs. A number of parameters are available for that. Parameters are a key-value structure that's passed along with the main config of TinyMCE.
Pass the parameters as follows:
tinymce.init({
selector: 'textarea',
jsplusYouTube: {
key1: "value1",
key2: true
}
});
Explore the list of available options to see what settings are available to you.