X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=plugins%2Fnewpage%2Fplugin.js;h=d336ba07471dd3c7fed7f4530de7f5fb17f9ba65;hp=93237d551f15d14720fc1c4bd9f637a333781275;hb=8761695d9b70afe75905deaac88f78c1f8aeb32d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/plugins/newpage/plugin.js b/plugins/newpage/plugin.js index 93237d5..d336ba0 100644 --- a/plugins/newpage/plugin.js +++ b/plugins/newpage/plugin.js @@ -3,4 +3,4 @@ Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ -CKEDITOR.plugins.add('newpage',{init:function(a){a.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(b){var c=this;function d(){setTimeout(function(){b.fire('afterCommandExec',{name:c.name,command:c});},500);};if(b.mode=='wysiwyg')b.on('contentDom',function(e){e.removeListener();d();});b.setData(b.config.newpage_html);b.focus();if(b.mode=='source')d();},async:true});a.ui.addButton('NewPage',{label:a.lang.newPage,command:'newpage'});}});CKEDITOR.config.newpage_html=''; +CKEDITOR.plugins.add('newpage',{init:function(a){a.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(b){var c=this;b.setData(b.config.newpage_html,function(){b.fire('afterCommandExec',{name:c.name,command:c});});b.focus();},async:true});a.ui.addButton('NewPage',{label:a.lang.newPage,command:'newpage'});}});CKEDITOR.config.newpage_html='';