contextualcode/ezplatform-default-custom-tag-configs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

contextualcode/ezplatform-default-custom-tag-configs

Composer 安装命令:

composer require contextualcode/ezplatform-default-custom-tag-configs

包简介

eZ Platform bundle which adds default toolbar custom tag configs

关键字:

README 文档

README

Typically when setting up a new custom tag, my_custom_tag for example, you must set these configs:

ezrichtext:
  custom_tags:
    my_custom_tag:
      template: '@ezdesign/custom_tag/my_custom_tag.html.twig'
      icon: '/assets/build/shared/images/custom-tag-icons.svg#my_custom_tag'
      is_inline: false
      attributes: {  }

ezplatform:
  system:
    admin_group:
      fieldtypes:
        ezrichtext:
          custom_tags:
            - my_custom_tag
          toolbars:
            my_custom_tag:
              buttons:
                ezmoveup:
                  priority: 80
                ezmovedown:
                  priority: 70
                ezcustomtagedit:
                  priority: 60
                ezanchor:
                  priority: 50
                ezembedleft:
                  priority: 40
                ezembedcenter:
                  priority: 30
                ezembedright:
                  priority: 20
                ezblockremove:
                  priority: 10
            ezadd:
              buttons:
                my_custom_tag:
                  priority: 1
                  visible: true

This is a lot of configuration for each custom tag, for what should be default behavior.

This bundle solves that problem!

It automatically adds toolbars and ezadd config that is the same for each custom tag. So adding a new custom tag becomes a matter of only adding this config:

ezrichtext:
  custom_tags:
    my_custom_tag:
      template: '@ezdesign/custom_tag/my_custom_tag.html.twig'
      icon: '/assets/build/shared/images/custom-tag-icons.svg#my_custom_tag'
      is_inline: false
      attributes: {  }

ezplatform:
  system:
    admin_group:
      fieldtypes:
        ezrichtext:
          custom_tags:
            - my_custom_tag

Installation

  1. Require via composer

     composer require contextualcode/ezplatform-default-custom-tag-configs
    
  2. Phew!

统计信息

  • 总下载量: 5.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2020-07-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固