/*! # -- BEGIN LICENSE BLOCK ---------------------------------- # # This file is part of tinyMCE. # YouTube for tinyMCE # Copyright (C) 2011 - 2013 Gerits Aurelien - # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # -- END LICENSE BLOCK ----------------------------------- */ !function(e){e.PluginManager.requireLangPack("youtube"),e.PluginManager.add("youtube",function(e,n){function i(){e.windowManager.open({title:"YouTube Title",file:n+"/youtube.html",width:800,height:530,inline:1,resizable:!0,maximizable:!0})}e.addButton("youtube",{icon:!0,image:n+"/img/youtube.gif",tooltip:"Youtube insert",onclick:i,onPostRender:function(){var n=this;e.on("NodeChange",function(e){n.active("IMG"===e.element.nodeName)})}})})}(tinymce);