0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-03 05:00:13 -05:00

Make isPaste optional for Squire.insertHTML

This aligns the interface with the spec
This commit is contained in:
Callum Skeet 2023-07-31 11:49:26 +10:00
parent 39b759de1c
commit c9f10b297b
3 changed files with 5 additions and 5 deletions

4
dist/squire.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/squire.mjs.map vendored

File diff suppressed because one or more lines are too long

View file

@ -1038,7 +1038,7 @@ class Squire {
* insertTreeFragmentIntoRange will delete the selection so that it is * insertTreeFragmentIntoRange will delete the selection so that it is
* replaced by the html being inserted. * replaced by the html being inserted.
*/ */
insertHTML(html: string, isPaste: boolean): Squire { insertHTML(html: string, isPaste?: boolean): Squire {
// Parse // Parse
const config = this._config; const config = this._config;
let frag = config.sanitizeToDOMFragment(html, this); let frag = config.sanitizeToDOMFragment(html, this);