Skip to content

Commit

Permalink
Merge branch 't/10146'
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed May 28, 2013
2 parents a4c8d0f + 632f03e commit 89d7407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CKEditor 4 Changelog
* [#10360](http://dev.ckeditor.com/ticket/10360): ARIA role="application" should not be used for dialogs.
* [#10339](http://dev.ckeditor.com/ticket/10339): Error thrown when inserting custom element.
* [#10367](http://dev.ckeditor.com/ticket/10367): Fixed: editable#insertText loses characters if RegExp replace controls are inserted.
* [#10146](http://dev.ckeditor.com/ticket/10146): [Firefox] Empty lines are being removed while config#enterMode is ENTER_BR.

## CKEditor 4.1.1

Expand Down
4 changes: 3 additions & 1 deletion plugins/wysiwygarea/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@
var data = fullPage ? doc.getDocumentElement().getOuterHtml() : doc.getBody().getHtml();

// BR at the end of document is bogus node for Mozilla. (#5293).
if ( CKEDITOR.env.gecko )
// Prevent BRs from disappearing from the end of the content
// while enterMode is ENTER_BR (#10146).
if ( CKEDITOR.env.gecko && config.enterMode != CKEDITOR.ENTER_BR )
data = data.replace( /<br>(?=\s*(:?$|<\/body>))/, '' );

if ( editor.dataProcessor )
Expand Down

0 comments on commit 89d7407

Please sign in to comment.