editor.js
editor.js copied to clipboard
Looks like tool sanitize config merged with inline tools should be used for processHTML
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:
- paste
Expected behavior: tool sanitize config should be applied too
Screenshots:
Device, Browser, OS: any
Editor.js version: 2.0