Explorar o código

add default isGmfmode value

yuken %!s(int64=3) %!d(string=hai) anos
pai
achega
06824ea878
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      packages/app/src/components/PageEditor/Editor.tsx

+ 2 - 1
packages/app/src/components/PageEditor/Editor.tsx

@@ -39,7 +39,7 @@ type DropzoneRef = {
 
 const Editor = React.forwardRef((props: EditorPropsType, ref): JSX.Element => {
   const {
-    onUpload, isUploadable, isUploadableFile, indentSize,
+    onUpload, isUploadable, isUploadableFile, indentSize, isGfmMode = true,
   } = props;
 
   const [dropzoneActive, setDropzoneActive] = useState(false);
@@ -298,6 +298,7 @@ const Editor = React.forwardRef((props: EditorPropsType, ref): JSX.Element => {
                     onMarkdownHelpButtonClicked={() => { setIsCheatsheetModalShown(true) }}
                     onAddAttachmentButtonClicked={addAttachmentHandler}
                     editorSettings={editorSettings}
+                    isGfmMode={isGfmMode}
                     {...props}
                   />
                 )}