contextualcode/ezplatform-alloyeditor-special-characters

eZ Platform 包,提供在在线编辑器中插入特殊字符的 UI

v2.0.1 2020-05-15 13:43 UTC

This package is not auto-updated.

Last update: 2024-09-28 10:09:44 UTC


README

此包允许在 eZ Platform 在线编辑器中插入特殊字符。

edit_source_modal

安装

  1. 通过 composer 需求

     composer require contextualcode/ezplatform-alloyeditor-special-characters
    
  2. 清除浏览器缓存并享受吧!

在 eZ Platform UI 中使用 CKEditor 插件

此包是使用 CK Editor 插件在 eZ Platform 中展示的好例子。它依赖于 Special Characters CKEditor 插件。

如果您想为任何其他 CKEditor 插件创建类似的包,只需遵循以下步骤

  1. 将 CKEditor 插件添加到您的源: src/bundle/Resources/public/js/alloyeditor/plugins/specialchar.
  2. 为之前添加的插件创建外部源: src/bundle/Resources/public/js/alloyeditor/externals.js
  3. 将插件外部源添加到 encore 配置: src/bundle/Resources/encore/ez.config.manager.js
  4. 在 eZ Platform 管理界面中注册添加的插件: src/bundle/Resources/config/ezrichtext.yaml
  5. 大多数情况下,CKEditor 插件都有自己的按钮,但它们需要在 eZ Platform 管理界面中进行一些 CSS 修复才能变得美观。或者,您可以创建一个新的按钮: src/bundle/Resources/public/js/alloyeditor/buttons/special-characters.js
  6. 在所需的在线编辑器工具栏中启用上一步中创建的按钮: src/bundle/Resources/config/ezpublish.yaml

更多详细信息请参阅扩展 eZ Platform 在线编辑器博客文章。