Skip to content

Commit

Permalink
🔒 #1085
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Sep 21, 2021
1 parent 30891f9 commit 1b2382d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/util/fixBrowserBehavior.ts
Expand Up @@ -1355,7 +1355,7 @@ export const paste = async (vditor: IVditor, event: (ClipboardEvent | DragEvent)
if (doc.body) {
textHTML = doc.body.innerHTML;
}

textHTML = Lute.Sanitize(textHTML);
vditor.wysiwyg.getComments(vditor);

// process code
Expand Down
3 changes: 3 additions & 0 deletions types/index.d.ts
Expand Up @@ -118,6 +118,8 @@ declare class Lute {

public static NewNodeID(): string;

public static Sanitize(html: string): string;

private constructor();

public SetJSRenderers(options?: {
Expand Down Expand Up @@ -232,6 +234,7 @@ declare const webkitAudioContext: {

interface ITips {
[index: string]: string;

alignCenter: string;
alignLeft: string;
alignRight: string;
Expand Down

0 comments on commit 1b2382d

Please sign in to comment.