发现全网都没有关于tinymce富文本编辑器的两端缩进插件,于是自己就写了一个。
实现word文档或者公众号文本编辑的两端缩进
效果图:
安装流程:
1.找到 node_modules\tinymce\plugins 文件夹;
2.将以下仓库的文件下载并放到如上指定文件夹;
KaleidosChen/tinymcePlugin_indent: tinymce Plugin indent of both ends 富文本编辑器 两端缩进 word (github.com)https://github.com/KaleidosChen/tinymcePlugin_indent3.在tinymce的init时,在plugins和toolbar中添加endsIndent;
4.删除node_modules文件夹中的.vite文件夹(用于清除缓存)或者启动项目时输入npm run server --force;
5.打开页面使用吧。