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 committed Nov 6, 2017
1 parent 3f1e745 commit 063a77d
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 063a77d

Please sign in to comment.