codex-team / codex-team/editor.js
💡A way to pass in existing HTML
- Dominant language
- TypeScript
- Stars
- 31.9k
- Forks
- 2.2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 1
Description
1. Describe a problem.
We have an existing project which is using an HTML editor, so we have HTML stored in our database.
We would like to move to using EditorJS, but we can not import or programmatically paste the existing HTML content into EditorJS.
2. Describe the solution you'd like. Mockups are welcome.
Ideally, the config would take either data (as it does now), or the new HTML parameter. The HTML parameter could then be translated internally to data structure using the Paste API.
Another option would be to expose a utility function, which converts HTML to data manually.
3. Are there any alternatives?
None that I could think of (I've tried to see, if I could access the Paste API in any way through the editor instance, and couldn't find it)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.