-
Hey! I can see that my state is updating after user click "insert input" (in console) but I can't figure it out how to update editor. I tried to reset editor with useResetPlateEditor hook but it didn't work. Could anyone help me with my problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've solved this placing my input button in Toolbar and calling this function on click: import { const VARIABLE_NODE = "variable-node";
}); |
Beta Was this translation helpful? Give feedback.
I've solved this placing my input button in Toolbar and calling this function on click:
import {
getPluginType,
insertNodes,
PlateEditor,
Value,
withoutNormalizing
} from "@udecode/plate-core";
const VARIABLE_NODE = "variable-node";
export const insertInput = (editor: PlateEditor) => {
withoutNormalizing(editor, () => {
});
};