Skip to content
Compare
Choose a tag to compare
@andrewdoro andrewdoro released this 07 Mar 12:10
· 91 commits to main since this release
7499182

## Update to 0.2.10, this version is missing type definitions

Breaking Changes

defaultEditorProps was removed from the library
It was broken into multiple functions that have to be passed in the editorProps.

  • handleImageDrop, handleImagePaste require a custom uploadFn for uploading images (See guide here)
import { handleImageDrop, handleImagePaste } from "novel/plugins";
import { handleCommandNavigation } from "novel/extensions";

<EditorContent
   editorProps={{
        handleDOMEvents: {
          keydown: (_view, event) => handleCommandNavigation(event),
        },
        handlePaste: (view, event) =>
          handleImagePaste(view, event, uploadFn),
        handleDrop: (view, event, _slice, moved) =>
          handleImageDrop(view, event, moved, uploadFn),
      
      }}

What's Changed

Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.9