Skip to content

Commit

Permalink
Rebranded Richtext configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Jan 28, 2022
1 parent fb31b4c commit 1660376
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 43 deletions.
18 changes: 9 additions & 9 deletions features/setup/richtextConfiguration/custom_styles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
Feature: Example scenarios showing how to set custom styles configuration

Scenario: Add Highlighted Block custom styles configuration
Given I "append" configuration to "ezrichtext.custom_styles"
Given I "append" configuration to "ibexa_fieldtype_richtext.custom_styles"
"""
highlighted_block_test:
template: '@ezdesign/field_type/ezrichtext/custom_style/highlighted_block.html.twig'
template: '@ibexadesign/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_block.html.twig'
inline: false
"""
And I "append" configuration to "default" siteaccess under "fieldtypes.ezrichtext.custom_styles" key
"""
highlighted_block_test
"""
And I create a file "templates/themes/standard/field_type/ezrichtext/custom_style/highlighted_block.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_block.html.twig"
And I create a file "templates/themes/admin/field_type/ezrichtext/custom_style/highlighted_block.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_block.html.twig"
And I create a file "templates/themes/standard/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_block.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_block.html.twig"
And I create a file "templates/themes/admin/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_block.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_block.html.twig"
And I create a file "translations/custom_styles.en.yaml" with content from "Files/Richtext/CustomStyle/translations/highlighted_block.en.yaml"

Scenario: Add Highlighted Word custom styles configuration
Given I "append" configuration to "ezrichtext.custom_styles"
Given I "append" configuration to "ibexa_fieldtype_richtext.custom_styles"
"""
highlighted_word_test:
template: '@ezdesign/field_type/ezrichtext/custom_style/highlighted_word.html.twig'
template: '@ibexadesign/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_word.html.twig'
inline: true
"""
And I "append" configuration to "default" siteaccess under "fieldtypes.ezrichtext.custom_styles" key
"""
highlighted_word_test
"""
And I create a file "templates/themes/standard/field_type/ezrichtext/custom_style/highlighted_word.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_word.html.twig"
And I create a file "templates/themes/admin/field_type/ezrichtext/custom_style/highlighted_word.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_word.html.twig"
And I append to "translations/custom_styles.en.yaml" file "Files/Richtext/CustomStyle/translations/highlighted_word.en.yaml"
And I create a file "templates/themes/standard/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_word.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_word.html.twig"
And I create a file "templates/themes/admin/field_type/ibexa_fieldtype_richtext/custom_style/highlighted_word.html.twig" with content from "Files/Richtext/CustomStyle/twig/highlighted_word.html.twig"
And I append to "translations/custom_styles.en.yaml" file "Files/Richtext/CustomStyle/translations/highlighted_word.en.yaml"
20 changes: 10 additions & 10 deletions features/setup/richtextConfiguration/custom_tags.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Feature: Example scenarios showing how to set custom tags configuration

Scenario: Add YouTube custom tag configuration
Given I "append" configuration to "ezrichtext.custom_tags"
Given I "append" configuration to "ibexa_fieldtype_richtext.custom_tags"
"""
ezyoutube_test:
# The template used for front-end rendering of the custom tag
template: field_type/ezrichtext/custom_tag/ezyoutube.html.twig
template: field_type/ibexa_fieldtype_richtext/custom_tag/ezyoutube.html.twig
# An icon for the custom tag as displayed in the Online Editor's toolbar.
icon: '/bundles/ezplatformrichtext/assets/images/custom_tags/admin/icons/video.svg#video'
attributes:
Expand Down Expand Up @@ -38,14 +38,14 @@ Feature: Example scenarios showing how to set custom tags configuration
"""
ezyoutube_test
"""
And I create a file "templates/field_type/ezrichtext/custom_tag/ezyoutube.html.twig" with content from "Files/Richtext/CustomTag/twig/ezyoutube.html.twig"
And I create a file "templates/field_type/ibexa_fieldtype_richtext/custom_tag/ezyoutube.html.twig" with content from "Files/Richtext/CustomTag/twig/ezyoutube.html.twig"
And I create a file "translations/custom_tags.en.yaml" with content from "Files/Richtext/CustomTag/translations/ezyoutube.en.yaml"

Scenario: Add Twitter custom tag configuration
Given I "append" configuration to "ezrichtext.custom_tags"
Given I "append" configuration to "ibexa_fieldtype_richtext.custom_tags"
"""
eztwitter_test:
template: field_type/ezrichtext/custom_tag/eztwitter.html.twig
template: field_type/ibexa_fieldtype_richtext/custom_tag/eztwitter.html.twig
icon: '/bundles/ezplatformrichtext/assets/images/custom_tags/admin/icons/twitter.svg#twitter'
attributes:
tweet_url:
Expand Down Expand Up @@ -83,14 +83,14 @@ Feature: Example scenarios showing how to set custom tags configuration
"""
eztwitter_test
"""
And I create a file "templates/field_type/ezrichtext/custom_tag/eztwitter.html.twig" with content from "Files/Richtext/CustomTag/twig/eztwitter.html.twig"
And I create a file "templates/field_type/ibexa_fieldtype_richtext/custom_tag/eztwitter.html.twig" with content from "Files/Richtext/CustomTag/twig/eztwitter.html.twig"
And I append to "translations/custom_tags.en.yaml" file "Files/Richtext/CustomTag/translations/eztwitter.en.yaml"

Scenario: Add Facebook custom tag configuration
Given I "append" configuration to "ezrichtext.custom_tags"
Given I "append" configuration to "ibexa_fieldtype_richtext.custom_tags"
"""
ezfacebook_test:
template: field_type/ezrichtext/custom_tag/ezfacebook.html.twig
template: field_type/ibexa_fieldtype_richtext/custom_tag/ezfacebook.html.twig
icon: '/bundles/ezplatformrichtext/assets/images/custom_tags/admin/icons/facebook.svg#facebook'
attributes:
post_url:
Expand All @@ -103,5 +103,5 @@ Feature: Example scenarios showing how to set custom tags configuration
"""
ezfacebook_test
"""
And I create a file "templates/field_type/ezrichtext/custom_tag/ezfacebook.html.twig" with content from "Files/Richtext/CustomTag/twig/ezfacebook.html.twig"
And I append to "translations/custom_tags.en.yaml" file "Files/Richtext/CustomTag/translations/ezfacebook.en.yaml"
And I create a file "templates/field_type/ibexa_fieldtype_richtext/custom_tag/ezfacebook.html.twig" with content from "Files/Richtext/CustomTag/twig/ezfacebook.html.twig"
And I append to "translations/custom_tags.en.yaml" file "Files/Richtext/CustomTag/translations/ezfacebook.en.yaml"
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

ezrichtext.custom_styles.highlighted_block_test.label: Highlighted block
ibexa_fieldtype_richtext.custom_styles.highlighted_block_test.label: Highlighted block
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

ezrichtext.custom_styles.highlighted_word_test.label: Highlighted word
ibexa_fieldtype_richtext.custom_styles.highlighted_word_test.label: Highlighted word
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

ezrichtext.custom_tags.ezfacebook_test.label: Facebook
ezrichtext.custom_tags.ezfacebook_test.description: ''
ezrichtext.custom_tags.ezfacebook_test.attributes.post_url.label: 'Post URL'
ezrichtext.custom_tags.ezfacebook_test.attributes.width.label: Width
ibexa_fieldtype_richtext.custom_tags.ezfacebook_test.label: Facebook
ibexa_fieldtype_richtext.custom_tags.ezfacebook_test.description: ''
ibexa_fieldtype_richtext.custom_tags.ezfacebook_test.attributes.post_url.label: 'Post URL'
ibexa_fieldtype_richtext.custom_tags.ezfacebook_test.attributes.width.label: Width
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

ezrichtext.custom_tags.eztwitter_test.label: Twitter
ezrichtext.custom_tags.eztwitter_test.description: ''
ezrichtext.custom_tags.eztwitter_test.attributes.cards.label: Cards
ezrichtext.custom_tags.eztwitter_test.attributes.conversation.label: Conversation
ezrichtext.custom_tags.eztwitter_test.attributes.dnt.label: DNT
ezrichtext.custom_tags.eztwitter_test.attributes.lang.label: Lang
ezrichtext.custom_tags.eztwitter_test.attributes.link_color.label: 'Link color'
ezrichtext.custom_tags.eztwitter_test.attributes.theme.label: Theme
ezrichtext.custom_tags.eztwitter_test.attributes.tweet_url.label: 'Tweet url'
ezrichtext.custom_tags.eztwitter_test.attributes.width.label: Width
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.label: Twitter
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.description: ''
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.cards.label: Cards
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.conversation.label: Conversation
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.dnt.label: DNT
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.lang.label: Lang
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.link_color.label: 'Link color'
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.theme.label: Theme
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.tweet_url.label: 'Tweet url'
ibexa_fieldtype_richtext.custom_tags.eztwitter_test.attributes.width.label: Width
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ezrichtext.custom_tags.ezyoutube_test.label: Youtube
ezrichtext.custom_tags.ezyoutube_test.description: ''
ezrichtext.custom_tags.ezyoutube_test.attributes.autoplay.label: Autoplay
ezrichtext.custom_tags.ezyoutube_test.attributes.height.label: Height
ezrichtext.custom_tags.ezyoutube_test.attributes.title.label: Title
ezrichtext.custom_tags.ezyoutube_test.attributes.video_url.label: Video url
ezrichtext.custom_tags.ezyoutube_test.attributes.width.label: Width
ezrichtext.custom_tags.ezyoutube_test.attributes.align.label: Align
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.label: Youtube
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.description: ''
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.autoplay.label: Autoplay
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.height.label: Height
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.title.label: Title
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.video_url.label: Video url
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.width.label: Width
ibexa_fieldtype_richtext.custom_tags.ezyoutube_test.attributes.align.label: Align

0 comments on commit 1660376

Please sign in to comment.