Skip to content

Commit

Permalink
Disable image resize
Browse files Browse the repository at this point in the history
It does save the linked image correctly, so until fixed, just disable the ability to resize and generate `<img` html
  • Loading branch information
TomNUSDS committed Mar 8, 2024
1 parent 9673ffa commit 6ba34ba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@
z-index: 100;
}

.cm-searchMatch {
background-color: rgba(250, 247, 2, 0.27) !important;
}

.cm-tooltip-below, .cm-tooltip {
background-color: rgba(255, 254, 218, 0.95) !important;
}

.zoom-05 {
zoom: 0.5;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mdxcomponents/ImageDialogCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const ImageDialogCustom: React.FC = () => {
{/*</div>*/}

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

Expand Down
2 changes: 1 addition & 1 deletion src/pages/BlogEditorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const BlogEditorPage = () => {
frontmatterCustomPlugin(),
diffSourcePlugin({diffMarkdown: oldMarkdown, viewMode: 'rich-text'}),
headingsPlugin({allowedHeadingLevels: [2, 3, 4]}),
imagePlugin({imageUploadHandler, disableImageResize: false, ImageDialog: ImageDialogCustom}),
imagePlugin({imageUploadHandler, disableImageResize: true, ImageDialog: ImageDialogCustom}),
linkDialogPlugin(),
linkPlugin(),
listsPlugin(),
Expand Down
8 changes: 8 additions & 0 deletions src/styles/mdxeditor.custom.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ div[contenteditable="true"] {
}
}


.cm-searchMatch {
background-color: rgba(250, 247, 2, 0.27) !important;
}

.cm-tooltip-below, .cm-tooltip {
background-color: rgba(255, 254, 218, 0.95) !important;
}

0 comments on commit 6ba34ba

Please sign in to comment.