Skip to content

Excalidraw

The Excalidraw extension allows you to add an Excalidraw to your editor.

Usage

tsx
import { Excalidraw } from 'reactjs-tiptap-editor/excalidraw'; 

const extensions = [
  ...,
  // Import Extensions Here
  Excalidraw 
];

Configuration bubble menu

tsx
import { BubbleMenuExcalidraw } from 'reactjs-tiptap-editor/bubble-extra'; 

const App = () => {

  return  <RichTextEditor
    bubbleMenu={{
      render({ extensionsNames, editor, disabled }, bubbleDefaultDom) {
        return <>
          {bubbleDefaultDom}

          {extensionsNames.includes('excalidraw')  ? <BubbleMenuExcalidraw disabled={disabled}
            editor={editor}
            key="excalidraw"
          /> : null}
        </>
      },
    }}
  />
}

Source

SourceDocs

Contributors

Changelog

v0.0.31 on 9/1/2024
0a2a6 - feat: add excalidraw

Made with ❤️