X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fpagebreak%2Fplugin.js;h=3daef0c7f1a41d31d819b44482b5a78fe6eac581;hp=b73fbcf82296247b5164ad00b40dd31526c65db1;hb=8665a7c6c60586526e32e8941fe2896739b6ebfb;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1 diff --git a/_source/plugins/pagebreak/plugin.js b/_source/plugins/pagebreak/plugin.js index b73fbcf..3daef0c 100644 --- a/_source/plugins/pagebreak/plugin.js +++ b/_source/plugins/pagebreak/plugin.js @@ -32,7 +32,7 @@ CKEDITOR.plugins.add( 'pagebreak', 'clear: both;' + 'display: block;' + 'float: none;' + - 'width: 100%;' + + 'width:100%;_width:99.9%;' + 'border-top: #999999 1px dotted;' + 'border-bottom: #999999 1px dotted;' + 'height: 5px;' + @@ -84,6 +84,8 @@ CKEDITOR.plugins.pagebreakCmd = var ranges = editor.getSelection().getRanges(); + editor.fire( 'saveSnapshot' ); + for ( var range, i = 0 ; i < ranges.length ; i++ ) { range = ranges[ i ]; @@ -99,5 +101,7 @@ CKEDITOR.plugins.pagebreakCmd = range.select(); } } + + editor.fire( 'saveSnapshot' ); } };