-
Notifications
You must be signed in to change notification settings - Fork 56
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
EZP-29115: Add characters counter to RichText #741
EZP-29115: Add characters counter to RichText #741
Conversation
59273f8
to
fbe42d0
Compare
440fa04
to
beb0da3
Compare
beb0da3
to
10c4110
Compare
# Conflicts: # src/bundle/Resources/config/services/user_settings.yml
b24b93f
to
64544f8
Compare
bd29b96
to
c24476c
Compare
c24476c
to
72ebea0
Compare
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.
+1 for strings
74b7bde
to
4b869c8
Compare
User settings part was extracted to Implementation was moved from the plugin to |
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
8122a46
to
2faa4a6
Compare
2faa4a6
to
d1c4b20
Compare
@dew326 remarks applied, please take a look. |
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/js/scripts/fieldType/base/base-rich-text.js
Outdated
Show resolved
Hide resolved
src/bundle/Resources/public/scss/_alloyeditor-character-counter.scss
Outdated
Show resolved
Hide resolved
ping @adamwojs @dew326 @tischsoic |
@@ -61,6 +61,36 @@ | |||
<target state="new">Sub-items</target> | |||
<note>key: settings.subitems_limit.value.title</note> | |||
</trans-unit> | |||
<trans-unit id="98400a7e546231a994f6fea03dce3ebd52c1c33d" resname="settings.character_counter.value.description"> |
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.
Note to my self: This file should be moved to ezplatform-user
.
* EZP-29115: Add characters counter to RichText * removed implementation from plugin, moved user settings part to a separate PR * fixes after CR * fixes after review vol.2
This PR contains a proof of concept for one of the features which was requested by the customer. This is a simple characters counter which is enabled/disabled globally for RichText via User Preferences. The idea is to count all characters inside tags except:
The matter of styling and configuration could be changed, it is rather a basic idea which in my opinion seems to be consistent with the rest of the back office. However all feedback will be warmly welcomed. :) Below I attached some screenshot which presents current state of the feature:
User settings were moved to
ezplatform-user
repository, so it is dependant on: ezsystems/ezplatform-user#8Checklist:
$ composer fix-cs
)