Skip to content

Commit

Permalink
Do not remove data-* attributes in nested elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Jasiun committed Dec 4, 2013
1 parent 5ab09d0 commit 47c4514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/style.js
Expand Up @@ -1204,6 +1204,9 @@ CKEDITOR.STYLE_OBJECT = 3;
// The 'class' element value must match (#1318).
if ( ( attName == 'class' || this._.definition.fullMatch ) && element.getAttribute( attName ) != normalizeProperty( attName, attributes[ attName ] ) )
continue;
// Do not touch data-* attributes (#11011).
if ( attName.substr( 0, 5 ) == 'data-' )
continue;
removeEmpty = element.hasAttribute( attName );
element.removeAttribute( attName );
}
Expand Down

0 comments on commit 47c4514

Please sign in to comment.