-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can make use of the Alternatively, if you prefer not to use Plate for rendering, you can manually render the elements from |
Beta Was this translation helpful? Give feedback.
-
You can refer to `PlateYou can find a detailed guide here. And the complete example including export to HTML, Tailwind CSS, and Prism. |
Beta Was this translation helpful? Give feedback.
You can make use of the
readOnly
prop provided byPlate
. By setting this prop to true
, you can ensure that the content is rendered in a read-only mode.Inside Plate, the elements can use the
useEditorReadOnly
hook to adjust the rendering based on thereadOnly
prop. This allows you to display the content exactly as it appears in the editor minus editable elements.Alternatively, if you prefer not to use Plate for rendering, you can manually render the elements from
value
. You can refer to https://github.com/rockettomatooo/slate-react-presentation for guidance on how to achieve this approach.