Considering to have Slate Editor in Wagtail? #10151
Jianxuan-Li
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Slate Editor saves a JSON object of rich text content, I use it in one of my project to create PDF files.
We can use the JSON styled content for multi-purposes, for example, we create a page, then use it to generate a HTML page, to render a React component, or generate a PDF, and etc... So wagtail becomes a publishing tool.
Because JSON has no render limitation like HTML. I pretty like to use the JSON style for rich text content now, since I can render the content as I want, it's more easier to control than HTML + CSS. The most important thing for me is this extremely easy to use in a React App
The editor:
The saved JSON content:
The generated PDF file:
We don't need to replace current rich text field, just add a new
RichTextJsonField
. How do you think about this?Thanks
Beta Was this translation helpful? Give feedback.
All reactions