# youtube-embed-plus/10.8/scripts/embedplus_mce_prefs.js

Embed Plus for YouTube Gallery, Livestream and Lazy Loading with Facades, version 10.8. 30 lines.

- Page: https://pluginprobe.com/plugins/youtube-embed-plus/10.8/code/scripts/embedplus_mce_prefs.js
- Raw: https://pluginprobe.com/plugins/youtube-embed-plus/10.8/raw/scripts/embedplus_mce_prefs.js
- Modified: 2015-10-02T04:50:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/youtube-embed-plus/10.8/code/scripts/embedplus_mce_prefs.js#L10-L20`.

```javascript
(function() {
    
    tinymce.create('tinymce.plugins.Embedplus_youtubeprefs', {
        init : function(ed, url) {
            var plep = new Image();
            plep.src = url+'/../images/btnprefsoff.png';
            ed.addButton('embedplus_youtubeprefs', {
                title : "YouTube Settings Page Shortcut (Opens new tab to leave this editor tab intact)",
                onclick : function(ev) {                    
                    window.open(eppluginadminurl);
                }
            });
        },
        createControl : function(n, cm) {
            return null;
        },
        getInfo : function() {
            return {
                longname : "YouTube Settings",
                author : 'EmbedPlus',
                authorurl : 'http://www.embedplus.com/',
                infourl : 'http://www.embedplus.com/',
                version : epversion
            };
        }
    });
    
    tinymce.PluginManager.add('embedplus_youtubeprefs', tinymce.plugins.Embedplus_youtubeprefs);

})();
```
