-
so I created a form in the plate editor, besides using the readonly property, I want to add an additional property for example named “mode” where this mode has 2 values, namely form or pdf. but I don't know how to add a custom property to the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can do it on |
Beta Was this translation helpful? Give feedback.
-
@bahrijar One way to do it is via PlatePlugin. See docs here https://platejs.org/docs/plugin-context#getOption You can define a plugin, and
|
Beta Was this translation helpful? Give feedback.
@bahrijar One way to do it is via PlatePlugin. See docs here https://platejs.org/docs/plugin-context#getOption
You can define a plugin, and
setOption
as whatever you want and then access it easily like this