X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fnewpage%2Fplugin.js;h=96c13eda31048ac58d03091c63acc0411f1b4363;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=62c5405126bffe1c6eac66dc33a5b0601e22c4dc;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/newpage/plugin.js b/_source/plugins/newpage/plugin.js index 62c5405..96c13ed 100644 --- a/_source/plugins/newpage/plugin.js +++ b/_source/plugins/newpage/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -19,16 +19,17 @@ CKEDITOR.plugins.add( 'newpage', exec : function( editor ) { var command = this; - editor.setData( editor.config.newpage_html, function() + editor.setData( editor.config.newpage_html || '', function() { // Save the undo snapshot after all document changes are affected. (#4889) setTimeout( function () { editor.fire( 'afterCommandExec', { - name: command.name, + name: 'newpage', command: command } ); + editor.selectionChange(); }, 200 ); } ); @@ -46,9 +47,9 @@ CKEDITOR.plugins.add( 'newpage', }); /** * The HTML to load in the editor when the "new page" command is executed. + * @name CKEDITOR.config.newpage_html * @type String * @default '' * @example * config.newpage_html = '<p>Type your text here.</p>'; */ -CKEDITOR.config.newpage_html = '';