♻️(frontend) adapt BlockNote to the last version
A recent relase of the BlockNote component has changed the way it is used. This commit adapts the BlockNoteEditor and BlockNoteToolbar components to the new version of the BlockNote.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { BlockNoteEditor as BlockNoteEditorCore } from '@blocknote/core';
|
||||
import '@blocknote/core/fonts/inter.css';
|
||||
import { BlockNoteView } from '@blocknote/mantine';
|
||||
import '@blocknote/react/style.css';
|
||||
import '@blocknote/mantine/style.css';
|
||||
import React, { useEffect, useMemo } from 'react';
|
||||
import { WebrtcProvider } from 'y-webrtc';
|
||||
|
||||
|
||||
@@ -6,9 +6,7 @@ import {
|
||||
CreateLinkButton,
|
||||
FormattingToolbar,
|
||||
FormattingToolbarController,
|
||||
ImageCaptionButton,
|
||||
NestBlockButton,
|
||||
ReplaceImageButton,
|
||||
TextAlignButton,
|
||||
UnnestBlockButton,
|
||||
useBlockNoteEditor,
|
||||
@@ -27,9 +25,6 @@ export const BlockNoteToolbar = () => {
|
||||
{/* Extra button to convert from markdown to json */}
|
||||
<MarkdownButton key="customButton" />
|
||||
|
||||
<ImageCaptionButton key="imageCaptionButton" />
|
||||
<ReplaceImageButton key="replaceImageButton" />
|
||||
|
||||
<BasicTextStyleButton basicTextStyle="bold" key="boldStyleButton" />
|
||||
<BasicTextStyleButton
|
||||
basicTextStyle="italic"
|
||||
|
||||
Reference in New Issue
Block a user