updated empty page notification

This commit is contained in:
2026-05-14 12:26:34 +02:00
parent 5c106b7e28
commit 187970c929
2 changed files with 6 additions and 8 deletions
@@ -92,9 +92,7 @@ export default function Editor({ editSlug }: Props) {
const [showModal, setShowModal] = useState(false);
const [showPreview, setShowPreview] = useState(false);
const [mobileView, setMobileView] = useState<'edit' | 'preview'>('edit');
const [vimEnabled, setVimEnabled] = useState(() =>
typeof window !== 'undefined' && window.innerWidth > 768
);
const [vimEnabled, setVimEnabled] = useState(false);
const [showAutocomplete, setShowAutocomplete] = useState(false);
const [autocompleteAssets, setAutocompleteAssets] = useState<Asset[]>([]);
const [autocompletePos, setAutocompletePos] = useState({ top: 0, left: 0 });
@@ -120,7 +118,7 @@ export default function Editor({ editSlug }: Props) {
const state = EditorState.create({
doc: '',
extensions: [
vimCompartment.of(window.innerWidth > 768 ? vim() : []),
vimCompartment.of([]),
keymap.of([...defaultKeymap, ...searchKeymap, indentWithTab]),
search(),
closeBrackets(),