mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 00:14:25 +00:00
Add preview mode
This commit is contained in:
@@ -20,6 +20,7 @@ const Editor = ({ content, onChange, onSave, filePath }) => {
|
||||
extensions: [
|
||||
basicSetup,
|
||||
markdown(),
|
||||
EditorView.lineWrapping,
|
||||
keymap.of(defaultKeymap),
|
||||
keymap.of([{
|
||||
key: "Ctrl-s",
|
||||
@@ -54,7 +55,7 @@ const Editor = ({ content, onChange, onSave, filePath }) => {
|
||||
}
|
||||
}, [content]);
|
||||
|
||||
return <div ref={editorRef} />;
|
||||
return <div ref={editorRef} className="editor-container" />;
|
||||
};
|
||||
|
||||
export default Editor;
|
||||
Reference in New Issue
Block a user