要下载和引入 Quill Gantt 插件,可以按照以下步骤进行:
-
打开 Quill Gantt 的 GitHub 仓库:https://github.com/chenjianhui1010/quill-gantt
-
点击页面右上方的 “Code” 按钮,然后选择 “Download ZIP” 下载插件的源代码。
-
解压下载的 ZIP 文件。
-
在你的 Angular 项目中,找到
node_modules/quill
目录。 -
将解压后的源代码中的
dist/quill-gantt.js
文件复制到node_modules/quill
目录下。 -
打开你的 Angular 组件,使用
import
语句引入 Quill Gantt 插件:
import Quill from 'quill';
import Gantt from 'quill-gantt';
Quill.register('modules/gantt', Gantt);
现在,你已经成功下载并引入了 Quill Gantt 插件。你可以按照之前的步骤继续配置 ngx-quill,并在富文本编辑器中使用甘特图功能。