注册命令
import GGEditor, { Flow, RegisterCommand } from 'gg-editor';
<GGEditor>
<Flow />
<RegisterCommand name={...} config={...} extend={...} />
</GGEditor>| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| name | 命令名称 | string |
- |
| config | 命令配置 | object |
- |
| extend | 继承命令,内置命令 | string |
- |
注册命令
import GGEditor, { Flow, RegisterCommand } from 'gg-editor';
<GGEditor>
<Flow />
<RegisterCommand name={...} config={...} extend={...} />
</GGEditor>| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| name | 命令名称 | string |
- |
| config | 命令配置 | object |
- |
| extend | 继承命令,内置命令 | string |
- |