diff --git a/src/model/documentselection.js b/src/model/documentselection.js index 814e9f29b..0ebf2f1aa 100644 --- a/src/model/documentselection.js +++ b/src/model/documentselection.js @@ -733,11 +733,13 @@ class LiveSelection extends Selection { setTo( selectable, optionsOrPlaceOrOffset, options ) { super.setTo( selectable, optionsOrPlaceOrOffset, options ); this._updateAttributes( true ); + this._updateMarkers(); } setFocus( itemOrPosition, offset ) { super.setFocus( itemOrPosition, offset ); this._updateAttributes( true ); + this._updateMarkers(); } setAttribute( key, value ) { @@ -873,7 +875,7 @@ class LiveSelection extends Selection { } if ( changed ) { - this.fire( 'change:marker', { oldMarkers } ); + this.fire( 'change:marker', { oldMarkers, directChange: false } ); } }