diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index bf56c3c2..5244e7ea 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,7 @@ - `Fix` — `UI` — the Toolbar won't move on hover at mobile viewports. Resolves [#1972](https://github.com/codex-team/editor.js/issues/1972) - `Fix` — `OnChange` event invocation after block insertion. [#1997](https://github.com/codex-team/editor.js/issues/1997) - `Fix` — `ReadOnly` — the `readonly.isEnabled` API getter now works correctly after `readonly.toggle()` calling. Resolves [#1822](https://github.com/codex-team/editor.js/issues/1822) +- `Fix` — `Paste` — the inline HTML tags now will be preserved on pasting. [#1686](https://github.com/codex-team/editor.js/pull/1686) ### 2.23.2 diff --git a/src/components/modules/paste.ts b/src/components/modules/paste.ts index 178e3cc1..e901897b 100644 --- a/src/components/modules/paste.ts +++ b/src/components/modules/paste.ts @@ -662,7 +662,7 @@ export default class Paste extends Module { /** If there is no pattern substitute - insert string as it is */ if (BlockManager.currentBlock && BlockManager.currentBlock.currentInput) { - const currentToolSanitizeConfig = BlockManager.currentBlock.tool.sanitizeConfig; + const currentToolSanitizeConfig = BlockManager.currentBlock.tool.baseSanitizeConfig; document.execCommand( 'insertHTML',