nested-list icon indicating copy to clipboard operation
nested-list copied to clipboard

Paste not working because of sanitize

Open medzhidov opened this issue 3 years ago • 4 comments

Just add this:

static get sanitize() {
        return {
            ol: {},
            ul: {},
            li: {}
        };
    }

medzhidov avatar Dec 27 '22 07:12 medzhidov

cannot reproduce a problem in the main branch. pasting works correctly.

please add more information.

talyguryn avatar Dec 27 '22 10:12 talyguryn

@talyguryn I use it in "next" branch

medzhidov avatar Dec 27 '22 18:12 medzhidov

in the next branch I still don't see any problems

image

talyguryn avatar Dec 28 '22 09:12 talyguryn

It occurs to my application too. Content of tag a, code, b are removed after pasted. Replacing with an inherited class as suggested above does NOT fix. I use version v2.26.5.

export class EnhancedNestedListTool extends NestedListTool {
  static get sanitize(){
    return {
      a: {},
      b: {},
      code: {},
      i: {},
    }
  }
}

notaloop0000 avatar Mar 18 '23 09:03 notaloop0000