Skip to content

Commit

Permalink
Merge branch 't/10537'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jul 8, 2013
2 parents 5b01dc0 + 684e2fc commit c72892f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@
// Force ENTER_BR for blockless editable.
this.enterMode = enterMode = ( editor.blockless ? CKEDITOR.ENTER_BR : editor.config.enterMode );

this.allow( 'br ' + ( enterMode == CKEDITOR.ENTER_P ? 'p' : enterMode == CKEDITOR.ENTER_DIV ? 'div' : '' ), 'default', 1 );
var defaultRules = [ 'br' ],
shiftEnterMode = editor.blockless ? CKEDITOR.ENTER_BR : editor.config.shiftEnterMode;

if ( enterMode == CKEDITOR.ENTER_P || shiftEnterMode == CKEDITOR.ENTER_P )
defaultRules.push( 'p' );
if ( enterMode == CKEDITOR.ENTER_DIV || shiftEnterMode == CKEDITOR.ENTER_DIV )
defaultRules.push( 'div' );

this.allow( defaultRules.join( ' ' ), 'default', 1 );
this.allow( allowedContent, 'config', 1 );
this.allow( editor.config.extraAllowedContent, 'extra', 1 );

Expand Down

0 comments on commit c72892f

Please sign in to comment.