1 /* 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 */ 5 6 /** 7 * @file Horizontal Page Break 8 */ 9 10 // Register a plugin named "newpage". 11 CKEDITOR.plugins.add( 'newpage', 12 { 13 init : function( editor ) 14 { 15 editor.addCommand( 'newpage', 16 { 17 modes : { wysiwyg:1, source:1 }, 18 19 exec : function( editor ) 20 { 21 editor.setData( editor.config.newpage_html ); 22 editor.focus(); 23 } 24 }); 25 26 editor.ui.addButton( 'NewPage', 27 { 28 label : editor.lang.newPage, 29 command : 'newpage' 30 }); 31 } 32 }); 33 34 CKEDITOR.config.newpage_html = ''; 35