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.3.2
[ckeditor.git]
/
_source
/
plugins
/
pagebreak
/
plugin.js
diff --git
a/_source/plugins/pagebreak/plugin.js
b/_source/plugins/pagebreak/plugin.js
index
3daef0c
..
5587330
100644
(file)
--- a/
_source/plugins/pagebreak/plugin.js
+++ b/
_source/plugins/pagebreak/plugin.js
@@
-32,10
+32,10
@@
CKEDITOR.plugins.add( 'pagebreak',
'clear: both;' +
\r
'display: block;' +
\r
'float: none;' +
\r
'clear: both;' +
\r
'display: block;' +
\r
'float: none;' +
\r
- 'width:100%;_width:99.9%;' +
\r
+ 'width:100% !important; _width:99.9% !important;' +
\r
'border-top: #999999 1px dotted;' +
\r
'border-bottom: #999999 1px dotted;' +
\r
'border-top: #999999 1px dotted;' +
\r
'border-bottom: #999999 1px dotted;' +
\r
- 'height: 5px;' +
\r
+ 'height: 5px !important;' +
\r
'page-break-after: always;' +
\r
\r
'}' );
\r
'page-break-after: always;' +
\r
\r
'}' );
\r
@@
-100,6
+100,11
@@
CKEDITOR.plugins.pagebreakCmd =
range.moveToPosition( breakObject, CKEDITOR.POSITION_AFTER_END );
\r
range.select();
\r
}
\r
range.moveToPosition( breakObject, CKEDITOR.POSITION_AFTER_END );
\r
range.select();
\r
}
\r
+
\r
+ var previous = breakObject.getPrevious();
\r
+
\r
+ if ( CKEDITOR.dtd[ previous.getName() ].div )
\r
+ breakObject.move( previous );
\r
}
\r
\r
editor.fire( 'saveSnapshot' );
\r
}
\r
\r
editor.fire( 'saveSnapshot' );
\r