updated empty page notification
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user