Skip to content

Commit

Permalink
#5285 The Not allowed to load local resource exception is thrown on a…
Browse files Browse the repository at this point in the history
…n attempt to insert a script to a form's title (#5292)

Fixes #5285
  • Loading branch information
novikov82 committed Mar 1, 2024
1 parent 9dc9252 commit b7a150c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ export class StringEditorViewModelBase extends Base {
// get text representation of clipboard
var text = event.clipboardData.getData("text/plain");
// insert text manually
document.execCommand("insertHTML", false, text);
document.execCommand("insertText", false, text);
}
}
public onKeyDown(event: KeyboardEvent): boolean {
Expand Down

0 comments on commit b7a150c

Please sign in to comment.