Skip to content

Commit 6ba34ba

Browse files
committed
Disable image resize
It does save the linked image correctly, so until fixed, just disable the ability to resize and generate `<img` html
1 parent 9673ffa commit 6ba34ba

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/App.css

-8
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@
3131
z-index: 100;
3232
}
3333

34-
.cm-searchMatch {
35-
background-color: rgba(250, 247, 2, 0.27) !important;
36-
}
37-
38-
.cm-tooltip-below, .cm-tooltip {
39-
background-color: rgba(255, 254, 218, 0.95) !important;
40-
}
41-
4234
.zoom-05 {
4335
zoom: 0.5;
4436
}

src/mdxcomponents/ImageDialogCustom.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const ImageDialogCustom: React.FC = () => {
8787
{/*</div>*/}
8888

8989
<div className={styles.formField}>
90-
<label htmlFor="altText">Alt (Accessibility: detailed image description):</label>
90+
<label htmlFor="altText">Alt (508/Accessibility: detailed image description):</label>
9191
<input autoComplete={"nope"} type="text" {...register('altText')} className={styles.textInput}/>
9292
</div>
9393

src/pages/BlogEditorPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const BlogEditorPage = () => {
106106
frontmatterCustomPlugin(),
107107
diffSourcePlugin({diffMarkdown: oldMarkdown, viewMode: 'rich-text'}),
108108
headingsPlugin({allowedHeadingLevels: [2, 3, 4]}),
109-
imagePlugin({imageUploadHandler, disableImageResize: false, ImageDialog: ImageDialogCustom}),
109+
imagePlugin({imageUploadHandler, disableImageResize: true, ImageDialog: ImageDialogCustom}),
110110
linkDialogPlugin(),
111111
linkPlugin(),
112112
listsPlugin(),

src/styles/mdxeditor.custom.module.css

+8
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,11 @@ div[contenteditable="true"] {
3939
}
4040
}
4141

42+
43+
.cm-searchMatch {
44+
background-color: rgba(250, 247, 2, 0.27) !important;
45+
}
46+
47+
.cm-tooltip-below, .cm-tooltip {
48+
background-color: rgba(255, 254, 218, 0.95) !important;
49+
}

0 commit comments

Comments
 (0)