/* * JCE Editor 2.2.7.2 * @package JCE * @url http://www.joomlacontenteditor.net * @copyright Copyright (C) 2006 - 2012 Ryan Demmer. All rights reserved * @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html * @date 12 September 2012 * 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 2 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. * * NOTE : Javascript files have been compressed for speed and can be uncompressed using http://jsbeautifier.org/ */ var PasteDialog={settings:{},init:function(){var self=this,ed=tinyMCEPopup.editor,el=document.getElementById('container'),title=document.getElementById('title'),ifr,doc,css,cssHTML='';$.Plugin.init();$('#insert').click(function(e){self.insert();e.preventDefault;});$('#cancel').click(function(e){tinyMCEPopup.close();e.preventDefault;});var cmd=tinyMCEPopup.getWindowArg('cmd');title.innerHTML=ed.getLang('paste_dlg.title','Use CTRL+V on your keyboard to paste text into the window.');if(cmd=='mcePaste'){document.title=ed.getLang('paste.paste_desc');el.innerHTML='';ifr=document.getElementById('content');doc=ifr.contentWindow.document;css=tinymce.explode(ed.settings.content_css)||[];css.push(ed.baseURI.toAbsolute("themes/"+ed.settings.theme+"/skins/"+ed.settings.skin+"/content.css"));css.push(ed.baseURI.toAbsolute("plugins/paste/css/blank.css"));tinymce.each(css,function(u){cssHTML+='';});doc.open();doc.write('
'+row+'
';} else{h+=row+'