Skip to content
Permalink
Browse files

Merge branch 't/11872'

  • Loading branch information...
Reinmar committed Apr 30, 2014
2 parents 41e48b3 + 3c6ade9 commit 06bdff1b4fe45b5d40ffda6881b9b5c346bade81
Showing with 4 additions and 0 deletions.
  1. +1 −0 CHANGES.md
  2. +3 −0 core/dom/element.js
@@ -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:

@@ -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 ) {
@@ -144,6 +145,8 @@ CKEDITOR.tools.extend( CKEDITOR.dom.element.prototype, {
c += ' ' + className;
}
this.$.className = c || className;

return this;
},

/**

0 comments on commit 06bdff1

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