-
I have some basic knowledge of Slate and schemas. I want to adopt Plate for a project and would like to know if it's possible to enforce a structured document. For example, we want to always have the Description and Location headers. Users can edit anything else in between.
Force schema example
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no way with that plugin as it's targeting a fixed path. A solution would be to add an option |
Beta Was this translation helpful? Give feedback.
There is no way with that plugin as it's targeting a fixed path.
plate/packages/editor/normalizers/src/withNormalizeTypes.ts
Line 26 in 410aac2
A solution would be to add an option
getNode
so it can override that one.