-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Changed the default icon for BallonEditor. #14914
Changed the default icon for BallonEditor. #14914
Conversation
const editBlockLabel = t( 'Edit block' ); | ||
|
||
const isDragDropBlockToolbarPluginLoaded = editor.plugins.has( 'DragDropBlockToolbar' ); | ||
const label = isDragDropBlockToolbarPluginLoaded ? `${ editBlockText } \n${ dragToMoveText }` : editBlockLabel; |
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.
Why the space before new line? Does it help to adjust the text?
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.
No, a leftover - nice catch 👍 will fix it right away.
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.
Fixed in 5ec1cb5
Suggested merge commit message (convention)
Other (ui): Changed the default icon for BallonEditor and add ability to customize it.
Closes #14646 .
Additional information
For example – encountered issues, assumptions you had to make, other affected tickets, etc.
Answer on question about
icons
: 👉 #14646 (comment)That's why i decided to extend the
NESTED_TOOLBAR_ICONS
with only two more icons.