mirror of
https://github.com/fantasticit/think.git
synced 2026-11-03 08:43:16 +08:00
tiptap: disable edit mind if is not editable
This commit is contained in:
@@ -111,6 +111,10 @@ export const MindWrapper = ({ editor, node, updateAttributes }) => {
|
||||
minder.execCommand('theme', theme);
|
||||
minder.execCommand('zoom', parseInt(zoom));
|
||||
|
||||
if (!isEditable) {
|
||||
minder.disable();
|
||||
}
|
||||
|
||||
$mind.current = minder;
|
||||
minder.on('contentChange', onChange);
|
||||
toggleLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user