Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.6.2
[ckeditor.git]
/
_source
/
plugins
/
newpage
/
plugin.js
diff --git
a/_source/plugins/newpage/plugin.js
b/_source/plugins/newpage/plugin.js
index
62c5405
..
fe73dbe
100644
(file)
--- a/
_source/plugins/newpage/plugin.js
+++ b/
_source/plugins/newpage/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-19,7
+19,7
@@
CKEDITOR.plugins.add( 'newpage',
exec : function( editor )
\r
{
\r
var command = this;
\r
exec : function( editor )
\r
{
\r
var command = this;
\r
- editor.setData( editor.config.newpage_html, function()
\r
+ editor.setData( editor.config.newpage_html || '', function()
\r
{
\r
// Save the undo snapshot after all document changes are affected. (#4889)
\r
setTimeout( function ()
\r
{
\r
// Save the undo snapshot after all document changes are affected. (#4889)
\r
setTimeout( function ()
\r
@@
-29,6
+29,7
@@
CKEDITOR.plugins.add( 'newpage',
name: command.name,
\r
command: command
\r
} );
\r
name: command.name,
\r
command: command
\r
} );
\r
+ editor.selectionChange();
\r
\r
}, 200 );
\r
} );
\r
\r
}, 200 );
\r
} );
\r
@@
-46,9
+47,9
@@
CKEDITOR.plugins.add( 'newpage',
});
\r
/**
\r
* The HTML to load in the editor when the "new page" command is executed.
\r
});
\r
/**
\r
* The HTML to load in the editor when the "new page" command is executed.
\r
+ * @name CKEDITOR.config.newpage_html
\r
* @type String
\r
* @default ''
\r
* @example
\r
* config.newpage_html = '<p>Type your text here.</p>';
\r
*/
\r
* @type String
\r
* @default ''
\r
* @example
\r
* config.newpage_html = '<p>Type your text here.</p>';
\r
*/
\r
-CKEDITOR.config.newpage_html = '';
\r