andrewdoro
released this
07 Mar 12:10
·
91 commits
to main
since this release
## 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
- Show grabbing cursor when grabbing drag handle by @haydenbleasel in #334
- feat: add custom upload config by @andrewdoro in #335
Full Changelog: https://github.com/steven-tey/novel/compare/[email protected]@0.2.9