Skip to content

Commit

Permalink
Use writer.cloneElement() in getSelectedContent().
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Jun 4, 2020
1 parent 21b4569 commit fda2593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function getSelectedContent( model, selection ) {
if ( item.is( 'textProxy' ) ) {
writer.appendText( item.data, item.getAttributes(), frag );
} else {
writer.append( item._clone( true ), frag );
writer.append( writer.cloneElement( item, true ), frag );
}
}

Expand Down

0 comments on commit fda2593

Please sign in to comment.