fix html (old) mods editing #192

Merged
enes merged 3 commits from 182-old-mods-edit into staging 2025-01-15 16:07:43 +00:00
Showing only changes of commit 094b7349b3 - Show all commits

View File

@ -4,6 +4,8 @@ import {
codeBlockPlugin, codeBlockPlugin,
CodeToggle, CodeToggle,
CreateLink, CreateLink,
diffSourcePlugin,
DiffSourceToggleWrapper,
directivesPlugin, directivesPlugin,
headingsPlugin, headingsPlugin,
imagePlugin, imagePlugin,
@ -68,6 +70,8 @@ export const Editor = React.memo(
() => [ () => [
toolbarPlugin({ toolbarPlugin({
toolbarContents: () => ( toolbarContents: () => (
<DiffSourceToggleWrapper
children={
<> <>
<UndoRedo /> <UndoRedo />
<Separator /> <Separator />
@ -93,9 +97,15 @@ export const Editor = React.memo(
<Separator /> <Separator />
<InsertCodeBlock /> <InsertCodeBlock />
</> </>
}
/>
) )
}), }),
headingsPlugin(), headingsPlugin(),
diffSourcePlugin({
viewMode: 'rich-text',
diffMarkdown: markdown
}),
quotePlugin(), quotePlugin(),
imagePlugin({ imagePlugin({
ImageDialog: ImageDialog ImageDialog: ImageDialog
@ -118,6 +128,7 @@ export const Editor = React.memo(
codeBlockEditorDescriptors: [PlainTextCodeEditorDescriptor] codeBlockEditorDescriptors: [PlainTextCodeEditorDescriptor]
}) })
], ],
// eslint-disable-next-line react-hooks/exhaustive-deps
[] []
) )