editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Looks like tool sanitize config merged with inline tools should be used for processHTML

Open mrigne opened this issue 3 years ago • 0 comments

https://github.com/codex-team/editor.js/blob/39018e07e4a9657ed1b3fe57a9c509e85fb1bffd/src/components/modules/paste.ts#LL663C20-L663C20

here used only combined inline and tunes config, and tool config is ignored. For ex. if my tool support br and I specified it - during paste event br will be sanitized. Looks like here should this.sanitizeConfig should be used instead of this.baseSanitizeConfig

Steps to reproduce:

  1. paste

Expected behavior: tool sanitize config should be applied too

Screenshots:

Device, Browser, OS: any

Editor.js version: 2.0

Plugins you use with their versions:

mrigne avatar Jun 16 '23 13:06 mrigne