JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
93237d551f15d14720fc1c4bd9f637a333781275
[ckeditor.git] / plugins / newpage / plugin.js
1 /*\r
2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 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='';\r