ubc-web-services/apsc_ckeditor_widgets
此包的最新版本(1.0.1)没有提供许可证信息。
一个用于向CKeditor添加一些常用小部件的Drupal模块
1.0.1
2023-09-05 21:23 UTC
This package is auto-updated.
Last update: 2024-09-05 23:25:12 UTC
README
一个用于向CKeditor添加一些常用小部件的Drupal模块
使用JavaScript
插件源代码应添加到js/ckeditor5_plugins/{pluginNameDirectory}/src
,构建工具期望此目录包含一个导出一个或多个CKEditor 5插件的index.js
文件。请注意,在CKEditor 5或Drupal中要求index.js
位于{pluginNameDirectory}/src
内不是固定要求,而是此起始模板的要求,可以根据需要修改webpack.config.js
。
在模块目录中,运行yarn install
以设置必要的资产。第一次运行install
可能需要几分钟,但后续构建将更快。
安装依赖项后,可以使用yarn build
或yarn watch
构建插件。它们将被构建到js/build/{pluginNameDirectory}.js
。
CKEditor API
- v4: https://ckeditor.npmjs.net.cn/docs/ckeditor4/latest/api/CKEDITOR.html
- v5: https://ckeditor.npmjs.net.cn/docs/ckeditor5/latest/api/index.html