|
|
|
@ -59,6 +59,7 @@ const MemoEditor = () => {
|
|
|
|
|
const tagSelectorRef = useRef<HTMLDivElement>(null);
|
|
|
|
|
const user = userStore.state.user as User;
|
|
|
|
|
const setting = user.setting;
|
|
|
|
|
const localSetting = user.localSetting;
|
|
|
|
|
const tags = tagStore.state.tags;
|
|
|
|
|
const memoVisibilityOptionSelectorItems = VISIBILITY_SELECTOR_ITEMS.map((item) => {
|
|
|
|
|
return {
|
|
|
|
@ -215,6 +216,7 @@ const MemoEditor = () => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (localSetting.enablePowerfulEditor) {
|
|
|
|
|
for (const symbol of pairSymbols) {
|
|
|
|
|
if (event.key === symbol[0]) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
@ -222,7 +224,6 @@ const MemoEditor = () => {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (event.key === "Backspace") {
|
|
|
|
|
const cursor = editorRef.current.getCursorPosition();
|
|
|
|
|
const content = editorRef.current.getContent();
|
|
|
|
@ -234,6 +235,7 @@ const MemoEditor = () => {
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const uploadMultiFiles = async (files: FileList) => {
|
|
|
|
|