Skip to content

Commit

Permalink
Since #1094 was fixed, there's no longer a need to double check eleme…
Browse files Browse the repository at this point in the history
…nt name in widget upcasts handler.

Also removed fake elements check, as fake elements are only imgs, not figures.
  • Loading branch information
mlewand authored and Comandeer committed Feb 6, 2018
1 parent cd82217 commit e0a0c6a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugins/easyimage/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@

upcasts: {
figure: function( element ) {
// http://dev.ckeditor.com/ticket/11110 Don't initialize on pasted fake objects.
if ( element.attributes[ 'data-cke-realelement' ] ) {
return;
}

if ( element.name === 'figure' && ( !figureClass || element.hasClass( figureClass ) ) ) {
if ( !figureClass || element.hasClass( figureClass ) ) {
return element;
}
}
Expand Down

0 comments on commit e0a0c6a

Please sign in to comment.