[Feature request] Support for JSON format in content import/export and HTML <-> JSON conversion
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- html, json, react-native
- Domain
- mobile
Research direction
The issue names no files, tests, or entry points. Start by tracing the library's existing HTML import/export API and reviewing the linked Tiptap JSON and HTML conversion examples; done means the requested JSON import/export and HTML↔JSON conversion behavior is clearly defined and implemented.
Written by the indexing model from the issue text.
Description
Hi there! Thanks for the great work on this library.
Currently, react-native-enriched-html only supports HTML string format for content import and export. While there is nothing inherently wrong with this, it can create challenges when storing data in server-side databases, as storing raw HTML strings is generally not considered a best practice. Other web-based editors handle this by providing JSON format support, allowing users to seamlessly import and export their content as JSON.
The main benefits of adding JSON support include:
Easier and safer database storage: It aligns much better with backend best practices.
Simplified backend validation: JSON is much easier to iterate over and validate to ensure the correctness of the state.
It would be amazing if you could consider adding JSON import/export capabilities, along with some utility functions to easily convert HTML to JSON and JSON to HTML.
For reference, here is an example of how this is solved in another web editor:
https://tiptap.dev/docs/guides/output-json-html
https://tiptap.dev/docs/editor/api/utilities/html
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 66
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 11
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/react-native-enriched-html
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
software-mansion/react-native-enriched-html#618 · 1 comment ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
software-mansion/react-native-enriched-html#798 · 2 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
software-mansion/react-native-enriched-html#797 · 2 comments ·
-
[Android] Native undo restores text but silently strips inline styles, links, and list structure Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
software-mansion/react-native-enriched-html#734 · 2 comments ·
All issues in software-mansion/react-native-enriched-html
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·