MyGit

novel@0.2.9

steven-tey/novel

版本发布时间: 2024-03-07 20:10:13

steven-tey/novel最新发布版本:novel@0.5.0(2024-07-26 06:16:06)

## 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.

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/novel@0.2.8...novel@0.2.9

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-03-07发行的版本