diff --git a/packages/blocks-editor/src/Editor/BlocksEditor.tsx b/packages/blocks-editor/src/Editor/BlocksEditor.tsx index 9c576a707..5a96b6615 100644 --- a/packages/blocks-editor/src/Editor/BlocksEditor.tsx +++ b/packages/blocks-editor/src/Editor/BlocksEditor.tsx @@ -2,7 +2,6 @@ import {FunctionComponent, useCallback, useState} from 'react'; import {RichTextPlugin} from '@lexical/react/LexicalRichTextPlugin'; import {ContentEditable} from '@lexical/react/LexicalContentEditable'; import {OnChangePlugin} from '@lexical/react/LexicalOnChangePlugin'; -import {AutoFocusPlugin} from '@lexical/react/LexicalAutoFocusPlugin'; import {CheckListPlugin} from '@lexical/react/LexicalCheckListPlugin'; import {ClearEditorPlugin} from '@lexical/react/LexicalClearEditorPlugin'; import {MarkdownShortcutPlugin} from '@lexical/react/LexicalMarkdownShortcutPlugin'; @@ -121,7 +120,6 @@ export const BlocksEditor: FunctionComponent = ({ - diff --git a/packages/web/src/javascripts/Components/NoteView/SuperEditor/SuperEditor.tsx b/packages/web/src/javascripts/Components/NoteView/SuperEditor/SuperEditor.tsx index c86eb08f5..b76bf6314 100644 --- a/packages/web/src/javascripts/Components/NoteView/SuperEditor/SuperEditor.tsx +++ b/packages/web/src/javascripts/Components/NoteView/SuperEditor/SuperEditor.tsx @@ -27,6 +27,7 @@ import { useCommandService } from '@/Components/ApplicationView/CommandProvider' import { SUPER_SHOW_MARKDOWN_PREVIEW } from '@standardnotes/ui-services' import { SuperNoteMarkdownPreview } from './SuperNoteMarkdownPreview' import { ExportPlugin } from './Plugins/ExportPlugin/ExportPlugin' +import { AutoFocusPlugin } from '@lexical/react/LexicalAutoFocusPlugin' const NotePreviewCharLimit = 160 @@ -157,6 +158,7 @@ export const SuperEditor: FunctionComponent = ({ + {controller.isTemplateNote ? : null}