soumaeda 2 лет назад
Родитель
Сommit
2ba78bbe5b
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      packages/editor/src/components/CodeMirrorEditor/Toolbar/TextFormatTools.tsx

+ 6 - 2
packages/editor/src/components/CodeMirrorEditor/Toolbar/TextFormatTools.tsx

@@ -45,9 +45,13 @@ export const TextFormatTools = (props: TextFormatToolsType): JSX.Element => {
     setOpen(bool => !bool);
     setOpen(bool => !bool);
   }, []);
   }, []);
 
 
-  const onClickInsertMarkdownElements = (prefix: string, suffix: string) => codeMirrorEditor?.insertMarkdownElements(prefix, suffix);
+  const onClickInsertMarkdownElements = (prefix: string, suffix: string) => {
+    codeMirrorEditor?.insertMarkdownElements(prefix, suffix);
+  };
 
 
-  const onClickInsertPrefix = (prefix: string) => codeMirrorEditor?.insertPrefix(prefix);
+  const onClickInsertPrefix = (prefix: string) => {
+    codeMirrorEditor?.insertPrefix(prefix);
+  };
 
 
   return (
   return (
     <div className="d-flex">
     <div className="d-flex">