mirror of https://github.com/fantasticit/think.git
tiptap: disable edit mind if is not editable
parent
c5462efcb4
commit
d7a7527a8f
|
@ -111,6 +111,10 @@ export const MindWrapper = ({ editor, node, updateAttributes }) => {
|
||||||
minder.execCommand('theme', theme);
|
minder.execCommand('theme', theme);
|
||||||
minder.execCommand('zoom', parseInt(zoom));
|
minder.execCommand('zoom', parseInt(zoom));
|
||||||
|
|
||||||
|
if (!isEditable) {
|
||||||
|
minder.disable();
|
||||||
|
}
|
||||||
|
|
||||||
$mind.current = minder;
|
$mind.current = minder;
|
||||||
minder.on('contentChange', onChange);
|
minder.on('contentChange', onChange);
|
||||||
toggleLoading(false);
|
toggleLoading(false);
|
||||||
|
|
Loading…
Reference in New Issue