contextualcode/ezplatform-default-custom-tag-configs
最新稳定版本:v2.0.1
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
Require via composer
composer require contextualcode/ezplatform-default-custom-tag-configsPhew!
统计信息
- 总下载量: 4.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2020-07-24