-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace text angular editor with trix editor in About Us and Shopfront message fields #12734
Merged
rioug
merged 15 commits into
openfoodfoundation:master
from
cillian:replace-text-angular-with-trix
Sep 29, 2024
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a6d3909
Replace text-angular editor with trix editor in fields for shop messa…
cillian 2d6ffc0
Reuse 'Please insert a URL' translation from text angular editor in t…
cillian 7961ff7
Don't add translations for Trix buttons and functions we are not using
cillian 70ca031
Add Trix translations for all the different English locale regions
cillian 429e2b0
Fix issue where Trix editor translations were not being set correctly…
cillian a2c3ac2
Fix expected placeholder in test after updating translation
cillian b174080
Fix Layout/LineLength Rubocop violation in spec/system/admin/enterpri…
cillian ae2e92f
Don't need to set value on hidden fields for Trix editors, it will be…
cillian 08ab405
Rename method for looking up trix attribute or action by translation key
cillian 63c62ca
Simplify setting of Trix editor translations
cillian a745249
Revert "Reuse 'Please insert a URL' translation from text angular edi…
cillian 9895116
Revert "Add Trix translations for all the different English locale re…
cillian dd51755
Don't make any changes to non :en locales.
cillian 60afa4d
Revert whitespace changes in config/locales/en.yml
cillian f474afa
Merge in latest :master and resolve conflict in app/models/enterprise.rb
cillian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/assets/javascripts/admin/enterprise_groups/enterprise_groups.js.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
angular.module("admin.enterprise_groups", ["admin.side_menu", "admin.users", "textAngular"]) | ||
angular.module("admin.enterprise_groups", ["admin.side_menu", "admin.users", "ngSanitize"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
angular.module("admin.products", ["textAngular", "admin.utils", "OFNShared"]) | ||
angular.module("admin.products", ["ngSanitize", "admin.utils", "OFNShared"]) |
6 changes: 0 additions & 6 deletions
6
app/assets/javascripts/admin/utils/directives/textangular_links_target_blank.js.coffee
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
app/assets/javascripts/admin/utils/directives/textangular_strip.js.coffee
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
%fieldset.alpha.no-border-bottom#about_panel{ data: { "tabs-and-panels-target": "panel" } } | ||
%legend= t('.about') | ||
= f.field_container :long_description do | ||
%text-angular{'id' => 'enterprise_group_long_description', 'name' => 'enterprise_group[long_description]', 'class' => 'text-angular', "textangular-links-target-blank" => true, | ||
'ta-toolbar' => "[['h1','h2','h3','h4','p'],['bold','italics','underline','clear'],['insertLink']]"} | ||
!= @enterprise_group[:long_description] | ||
= f.hidden_field :long_description, id: "enterprise_group_long_description" | ||
%trix-editor{ input: "enterprise_group_long_description", "data-controller": "trixeditor" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prevents horizontal scrollber on Trix button toolbar in smaller screens.