mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-21 23:03:11 -05:00
Make isPaste optional for Squire.insertHTML
This aligns the interface with the spec
This commit is contained in:
parent
39b759de1c
commit
c9f10b297b
3 changed files with 5 additions and 5 deletions
4
dist/squire.js.map
vendored
4
dist/squire.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/squire.mjs.map
vendored
4
dist/squire.mjs.map
vendored
File diff suppressed because one or more lines are too long
|
@ -1038,7 +1038,7 @@ class Squire {
|
|||
* insertTreeFragmentIntoRange will delete the selection so that it is
|
||||
* replaced by the html being inserted.
|
||||
*/
|
||||
insertHTML(html: string, isPaste: boolean): Squire {
|
||||
insertHTML(html: string, isPaste?: boolean): Squire {
|
||||
// Parse
|
||||
const config = this._config;
|
||||
let frag = config.sanitizeToDOMFragment(html, this);
|
||||
|
|
Loading…
Reference in a new issue