contextualcode/ezplatform-alloyeditor-element-width

eZ Platform 扩展包,提供在线编辑器中编辑元素宽度的用户界面

v2.0.1 2020-05-18 10:59 UTC

This package is not auto-updated.

Last update: 2024-09-17 06:19:08 UTC


README

此扩展包允许在 eZ Platform 在线编辑器中编辑任何 HTML 元素的宽度样式。

安装

  1. 通过 Composer 安装

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

使用方法

  1. 安装此扩展包后,默认情况下应能编辑表格单元格的宽度。但如果您正在使用 在线编辑器工具栏的自定义配置,或者您想要编辑除表格单元格之外的其他元素的宽度,只需将 element-width 按钮添加到所需的工具栏中。示例
     alloy_editor:
         extra_buttons:
             table: [element-width]
             ol: [element-width]
             ul: [element-width]
             th: [element-width]
             td: [element-width]
    
  2. 打开在线编辑器,应该会在启用的工具栏中看到“编辑宽度”按钮: edit_source_modal