A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix readonly title editable
Ammar Ahmedae751cdd658c
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsxindex b8b096da5..8bf675098 100644--- a/packages/editor-mobile/src/components/editor.tsx+++ b/packages/editor-mobile/src/components/editor.tsx@@ -174,7 +174,7 @@ const Tiptap = ({element: getContentDiv(),editable: !tab.session?.readonly,editorProps: {- editable: () => !tab.session?.readonly,+ editable: () => !tabRef.current.session?.readonly,handlePaste: (view, event) => {const hasFiles = event.clipboardData?.types?.some((type) =>type.startsWith("Files")@@ -602,7 +602,7 @@ const Tiptap = ({<TitletitlePlaceholder={controller.titlePlaceholder}- readonly={settings.readonly}+ readonly={tab.session?.readonly || settings.readonly || false}controller={controllerRef}title={controller.title}fontFamily={settings.fontFamily}diff --git a/packages/editor-mobile/src/components/title.tsx b/packages/editor-mobile/src/components/title.tsxindex 3ae2e4b7f..fe09f6db0 100644--- a/packages/editor-mobile/src/components/title.tsx+++ b/packages/editor-mobile/src/components/title.tsx@@ -111,7 +111,7 @@ function Title({id="editor-title"rows={1}contentEditable={!readonly}- disabled={readonly}+ readOnly={readonly}defaultValue={title}style={{height: 40,