8 Star 129 Fork 30

易阳/am-editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

@aomao/plugin-orderedlist

有序列表插件

安装

$ yarn add @aomao/plugin-orderedlist

添加到引擎

import Engine, { EngineInterface } from '@aomao/engine';
import Orderedlist from '@aomao/plugin-orderedlist';

new Engine(...,{ plugins:[Orderedlist] })

可选项

快捷键

默认快捷键mod+shift+7

//快捷键
hotkey?: string | Array<string>;//默认mod+shift+7
//使用配置
new Engine(...,{
    config:{
        "orderedlist":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

命令

有一个参数 start:number 默认为 1,表示列表开始序号

//使用 command 执行插件、并传入所需参数
engine.command.execute('orderedlist', 1);
//使用 command 执行查询当前状态,返回 false 或者当前列表插件名称 orderedlist tasklist unorderedlist
engine.command.queryState('orderedlist');
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/aomao/am-editor.git
git@gitee.com:aomao/am-editor.git
aomao
am-editor
am-editor
master

搜索帮助