Skip to content

Commit

Permalink
Merge branch 't/11872'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Apr 30, 2014
2 parents 41e48b3 + 3c6ade9 commit 06bdff1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Fixed Issues:
* [#11848](http://dev.ckeditor.com/ticket/11848): Fixed: [`editor.insertElement()`](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-method-insertElement) throwing an exception in IE, when there was no selection in editor.
* [#11801](http://dev.ckeditor.com/ticket/11801): Fixed: Editor anchors unavailable when linking [Enhanced Image](http://ckeditor.com/addon/image2) widget.
* [#11626](http://dev.ckeditor.com/ticket/11626): Fixed: [Table Resize](http://ckeditor.com/addon/tableresize) sets invalid width.
* [#11872](http://dev.ckeditor.com/ticket/11872): Made [`element.addClass()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-addClass) chainable symmetrically to [`element.removeClass()`](http://docs.ckeditor.com/#!/api/CKEDITOR.dom.element-method-removeClass).

Other changes:

Expand Down
3 changes: 3 additions & 0 deletions core/dom/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype, {
* element.addClass( 'classB' ); // <div class="classA classB">
* element.addClass( 'classA' ); // <div class="classA classB">
*
* @chainable
* @param {String} className The name of the class to be added.
*/
addClass: function( className ) {
Expand All @@ -144,6 +145,8 @@ CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype, {
c += ' ' + className;
}
this.$.className = c || className;

return this;
},

/**
Expand Down

0 comments on commit 06bdff1

Please sign in to comment.