Skip to content
Permalink
Browse files

Merge branch 't/9761'

  • Loading branch information...
oleq committed May 22, 2013
2 parents beb5383 + 56df89a commit 3b38fe9c4e0f6e039aac115aa5326425564350a1
Showing with 10 additions and 1 deletion.
  1. +1 −0 CHANGES.md
  2. +5 −1 core/editable.js
  3. +4 −0 core/editor.js
@@ -4,6 +4,7 @@ CKEditor 4 Changelog
## CKEditor 4.1.2

* [#10389](http://dev.ckeditor.com/ticket/10389): Invalid closing tag </tr> in a sample "Text and Table" template.
* [#9761](http://dev.ckeditor.com/ticket/9761): Update BACKSPACE key state in blockedKeystrokes when using editor.setReadOnly().

## CKEditor 4.1.1

@@ -432,7 +432,11 @@

// Setup editor keystroke handlers on this element.
var keystrokeHandler = editor.keystrokeHandler;
keystrokeHandler.blockedKeystrokes[ 8 ] = editor.readOnly;

// If editor is read-only, then make sure that BACKSPACE key
// is blocked to prevent browser history navigation.
keystrokeHandler.blockedKeystrokes[ 8 ] = +editor.readOnly;

editor.keystrokeHandler.attach( this );

// Update focus states.
@@ -840,6 +840,10 @@
if ( this.readOnly != isReadOnly ) {
this.readOnly = isReadOnly;

// Block or release BACKSPACE key according to current read-only
// state to prevent browser's history navigation (#9761).
this.keystrokeHandler.blockedKeystrokes[ 8 ] = +isReadOnly;

this.editable().setReadOnly( isReadOnly );

// Fire the readOnly event so the editor features can update

0 comments on commit 3b38fe9

Please sign in to comment.
You can’t perform that action at this time.