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 Dec 20, 2017
1 parent d121fac commit c96a832
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 c96a832

Please sign in to comment.