用途:为 TYPO3 v12+(v14.3 LTS 内置 CKE5 v47,v13 为 41-42)开发 CKEditor 5 自定义插件、配置 RTE 预设,以及从 CKEditor 4 迁移到 5。
主要能力:覆盖插件系统、schema/conversion、命令与 UI 组件等架构知识;TYPO3 集成模式(YAML 配置、插件注册、内容元素);CKEditor 4 到 5 的完整重写迁移(无兼容层)。附带参考文件:ckeditor5-architecture.md(figcaption、view 与 DOM 元素等陷阱)、typo3-integration.md、plugin-development.md(TYPO3 接线、consumable API、无 jQuery 对话框)、migration-guide.md。
使用方式:插件注册在 ext_localconf.php 中设置 RTE 预设与 ckeditor5 插件 entryPoint;插件结构需拆分 Editing 与 UI(主文件、editing、ui、command)。schema 注册需带 allowIn/allowAttributes;转换器需同时提供 upcast 与 downcast;命令必须实现 execute() 与 refresh()。TYPO3 后端 JS 正在移除 jQuery,插件须使用原生 API(querySelector、fetch、Promise)。后端集成时注意属性名匹配,前端须与后端响应属性名一致。迁移步骤包括审计 CKE4 插件、将 CKEDITOR.plugins.add() 改为类继承 Plugin、用 schema+转换器+命令替代 editor.widgets.add()、将 PageTSConfig 转为 YAML 预设、使用 ES6 模块并移除 jQuery。
验证:运行 ./scripts/verify-ckeditor5.sh /path/to/extension。
限制:资料未提供具体版本兼容细节、收费信息或平台支持范围;迁移需完整重写插件,无兼容层可用。