File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ const GUARD_TEXT = "\uFEFF";
77class Embed extends Parchment . Embed {
88 constructor ( node ) {
99 super ( node ) ;
10- const wrapper = document . createElement ( 'span' ) ;
11- wrapper . setAttribute ( 'contenteditable' , false ) ;
10+ this . contentNode = document . createElement ( 'span' ) ;
11+ this . contentNode . setAttribute ( 'contenteditable' , false ) ;
1212 [ ] . slice . call ( this . domNode . childNodes ) . forEach ( function ( childNode ) {
13- wrapper . appendChild ( childNode ) ;
13+ this . contentNode . appendChild ( childNode ) ;
1414 } ) ;
1515 this . leftGuard = document . createTextNode ( GUARD_TEXT ) ;
1616 this . rightGuard = document . createTextNode ( GUARD_TEXT ) ;
1717 this . domNode . appendChild ( this . leftGuard ) ;
18- this . domNode . appendChild ( wrapper ) ;
18+ this . domNode . appendChild ( this . contentNode ) ;
1919 this . domNode . appendChild ( this . rightGuard ) ;
2020 }
2121
You can’t perform that action at this time.
0 commit comments