mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Merge pull request #187 from InteractiveIntelligence/insertElement-input-for-old-browsers
insertElement should register as input for older browsers
This commit is contained in:
commit
bcb24f1865
3 changed files with 12 additions and 2 deletions
|
@ -3732,6 +3732,11 @@ proto.insertElement = function ( el, range ) {
|
||||||
this.focus();
|
this.focus();
|
||||||
this.setSelection( range );
|
this.setSelection( range );
|
||||||
this._updatePath( range );
|
this._updatePath( range );
|
||||||
|
|
||||||
|
if ( !canObserveMutations ) {
|
||||||
|
this._docWasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1518,6 +1518,11 @@ proto.insertElement = function ( el, range ) {
|
||||||
this.focus();
|
this.focus();
|
||||||
this.setSelection( range );
|
this.setSelection( range );
|
||||||
this._updatePath( range );
|
this._updatePath( range );
|
||||||
|
|
||||||
|
if ( !canObserveMutations ) {
|
||||||
|
this._docWasChanged();
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue