-
Within the How can I go about getting the <PlateProvider
plugins={plugins}
initialValue={props?.initialValue ?? undefined}
onChange={(newValue) => {
if (props.autoSave?.enabled) {
// Do not save or serialize if only selection changes
if (editor.operations.filter((op) => op.type !== "set_selection").length > 0) {
save(newValue);
}
}
}}
> |
Beta Was this translation helpful? Give feedback.
Answered by
12joan
Aug 11, 2023
Replies: 2 comments 2 replies
-
Use one of the approaches here: https://platejs.org/docs/accessing-editor |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mstelz
-
@zbeyens An |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use one of the approaches here: https://platejs.org/docs/accessing-editor