codex-team / codex-team/editor.js
[Bug]
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
When using an inline tool the editor worked not correct when the inline tag is removed completely (e.g. using backspace) and then you type again.
I created my own version of the mark-inline-tool which adds some data attributes to the mark-tag. When I remove the highlighted tag and re-type again, it inserts a tag with some styling.
The bold and italic tool is working but I guess that is only the case as it is not adding some classes or other attributes to the inserted tag. The official mark inline tool has this bug also.
Steps to reproduce:
1. use an inline tool to mark some text
2. delete all marked characters with backspace
3. start to type new characters
Expected behavior:
One of these:
after deleting all inline marked characters and typing new characters
- the new characters are **not** marked by the used inline tool
- the new characters are marked **exactly** as the removed ones. With the same tag with the same attributes
Screenshots:

Device, Browser, OS:
Chrome (Chromium: 90.0.4430.212), Ubuntu 04.2021
Editor.js version:
"@editorjs/editorjs": "^2.22.2",
Plugins you use with their versions:
own version of inline tool
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.