Skip to content

Commit 213d91c

Browse files
committed
Merge branch 't/11250'
2 parents 4cdcded + 4f3a7f0 commit 213d91c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Fixed Issues:
3333
* [#11011](http://dev.ckeditor.com/ticket/11011): Fixed: Method applyStyle removes attributes from nested elements.
3434
* [#11179](http://dev.ckeditor.com/ticket/11179): Fixed: editor.destroy() does not cleanup content generated by [TableResize plugin](http://ckeditor.com/addon/tableresize) for inline editors.
3535
* [#11237](http://dev.ckeditor.com/ticket/11237): Fixed: Table border attribute's value is deleted when pasting content from MS Word.
36+
* [#11250](http://dev.ckeditor.com/ticket/11250): Fixed: HTML entities inside `<textarea>` element are not encoded.
3637

3738
## CKEditor 4.3
3839

plugins/entities/plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
table[ org ] = result;
6868
regex.push( org );
6969
return '';
70-
});
70+
} );
7171

7272
if ( !reverse && entities ) {
7373
// Transforms the entities string into an array.
@@ -147,14 +147,14 @@
147147
return baseEntitiesTable[ character ];
148148
}
149149

150-
htmlFilter.addRules({
150+
htmlFilter.addRules( {
151151
text: function( text ) {
152152
return text.replace( baseEntitiesRegex, getChar ).replace( entitiesRegex, getEntity );
153153
}
154-
});
154+
}, { applyToAll: true } );
155155
}
156156
}
157-
});
157+
} );
158158
})();
159159

160160
/**

0 commit comments

Comments
 (0)