ph
@aomao/plugin-hr
npm i @aomao/plugin-hr
ph

@aomao/plugin-hr

一个富文本实时协同编辑器框架,可以使用React和Vue自定义插件。A rich text collaborative editor framework that can use React and Vue custom plug-ins

by me@aomao.com

2.9.28 (see all)License:MITTypeScript:Built-In
npm i @aomao/plugin-hr
Readme

@aomao/plugin-hr

分割线插件

安装

$ yarn add @aomao/plugin-hr

添加到引擎

import Engine, { EngineInterface } from '@aomao/engine';
import Hr , { HrComponent } from '@aomao/plugin-hr';

new Engine(...,{ plugins:[Hr] , cards:[HrComponent]})

可选项

快捷键

默认快捷键 mod+shift+e

hotkey?:string;//默认mod+shift+e

//使用配置
new Engine(...,{
    config:{
        "hr":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

命令

engine.command.execute('hr');

Downloads/wk

88

GitHub Stars

611

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

6

OPEN ISSUES

13

OPEN PRs

0
VersionTagPublished
2.9.28
latest
4mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate