mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
feat: ignore change events in readonly mode
This commit is contained in:
@@ -82,7 +82,8 @@ function TipTap(props: TipTapProps) {
|
||||
});
|
||||
},
|
||||
onUpdate: ({ editor }) => {
|
||||
if (onChange) onChange(editor.getHTML(), counter.current);
|
||||
if (onChange && editor.isEditable)
|
||||
onChange(editor.getHTML(), counter.current);
|
||||
},
|
||||
onDestroy: () => {
|
||||
configure({
|
||||
|
||||
Reference in New Issue
Block a user