codex-team / codex-team/editor.js
Clear formatting
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
At some point I had the issue that texts being saved had empty inline tags (for example bold or italics. I only noticed because it broke another custom inline tag I have (showing tooltips). Hence I made a simple clear formatting inline tool. However, it needs further improvements as it does not cover all the cases in which formatting should/can be cleared yet. This is quite complex actually. That's why I was looking at the [Rangy library](https://github.com/timdown/rangy). But that would also cause duplicate code as the core of editor.js does have some functionality already implemented that Rangy also provides.
Hence, it would be good if clearing formatting would be within the core of editor.js such that there is no need to include additional libraries.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.