文件名称:editorjs-undo:Editor.js的UndoRedo功能
文件大小:6.13MB
文件格式:ZIP
更新时间:2024-05-21 08:56:58
JavaScript
EditorJS撤消插件 撤消/重做功能。 安装 通过NPM安装 取得包裹 $ npm i --save-dev editorjs-undo 在您的应用程序中包含模块 import Undo from 'editorjs-undo' ; 用法 const editor = new EditorJS ( { onReady : ( ) => { new Undo ( { editor } ) ; } , } ) ; 在编辑器上,使用Ctrl + Z或⌘ + Z来撤消,或使用Ctrl + Y或⌘ + Y来重做。 用数据初始化插件 要使用数据初始化插件,请在编辑器的onReady回调中使用initialize方法。 const editor = new EditorJS ( { onReady : ( ) => { const undo = new Undo (
【文件预览】:
editorjs-undo-master
----.gitignore(62B)
----README.md(2KB)
----CHANGELOG.md(761B)
----.github()
--------FUNDING.yml(68B)
----test()
--------fixtures()
--------undo.test.js(3KB)
--------config()
----LICENSE(1KB)
----package.json(1KB)
----babel.config.json(47B)
----CONTRIBUTING.md(619B)
----dist()
--------bundle.js(5KB)
----src()
--------observer.js(3KB)
--------index.js(5KB)
----.npmignore(90B)
----webpack.config.js(460B)
----yarn.lock(286KB)
----.eslintrc.js(248B)
----assets()
--------demo.gif(6.07MB)