codex-team / codex-team/editor.js
💡 Standardization of block types (names)
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
Currently there's no standart for block types. This causes problems with automatic parsing. I created a library to parse Editor.js output and by default, library tries to resolve block type by class name of the block. For example;
We have a block named `ImageBlock`, library gets the class name and converts into `image`. But what is Editor.js expected is `Image`. I know that type provided by plugin, but Editor.js should try to standardize it. It's not nice to declare block type every single time. If you want to look how library tries to resolve the type, [please click](https://github.com/bumpcore/editor.php/blob/4a35777f6e80c2ca681e8578d5e316c489cc044b/src/Parser.php#L77).
Probably I should remove lowering the string, and certainly such a change could cause lots of problems but at next big update, I would like to see that.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.