feat: additional style system setting (#444)

* feat: additional style system setting

* feat: remove editor font setting
This commit is contained in:
boojack
2022-11-11 23:42:44 +08:00
committed by GitHub
parent 67691d1e99
commit a142d975d7
13 changed files with 72 additions and 78 deletions

View File

@ -55,7 +55,6 @@ const MemoEditor: React.FC = () => {
const prevGlobalStateRef = useRef(editorState);
const editorRef = useRef<EditorRefActions>(null);
const tagSeletorRef = useRef<HTMLDivElement>(null);
const editorFontStyle = user?.setting.editorFontStyle || "normal";
const mobileEditorStyle = user?.setting.mobileEditorStyle || "normal";
const memoVisibilityOptionSelectorItems = VISIBILITY_SELECTOR_ITEMS.map((item) => {
return {
@ -395,14 +394,14 @@ const MemoEditor: React.FC = () => {
const editorConfig = useMemo(
() => ({
className: `memo-editor ${editorFontStyle}`,
className: `memo-editor`,
initialContent: getEditorContentCache(),
placeholder: t("editor.placeholder"),
fullscreen: state.fullscreen,
onContentChange: handleContentChange,
onPaste: handlePasteEvent,
}),
[state.fullscreen, i18n.language, editorFontStyle]
[state.fullscreen, i18n.language]
);
return (