Replies: 2 comments 1 reply
-
Hi, the code below is just as an idea and not implemented completely. Only header, paragraph, code, and list are implemented. For unhandled blocks the plain json object is rendered. You can add the other required cases easily. Ideally it needs some kind of data validation and caching. :) The database field of the Post Model is named Filament form
Post ModelAdd the method
Use it in your frontendOutput HTML: I use the prose helper of TailwindCSS to automatically format the output.
Get Plain Text
Have a nice day. |
Beta Was this translation helpful? Give feedback.
-
Why not use the editor.js it self in read only mode? it's doing all the work for you! |
Beta Was this translation helpful? Give feedback.
-
I know there are a few lib to do this but what is your recommendation?
I've some difficulty using codex-team/editor.js, for example it doesn't support image block (i tried to configure it but no success)
Beta Was this translation helpful? Give feedback.
All reactions