Skip to content
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

Merged
merged 11 commits into from
Sep 11, 2023

Conversation

pszczesniak
Copy link
Contributor

@pszczesniak pszczesniak commented Sep 1, 2023

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.

const editBlockLabel = t( 'Edit block' );

const isDragDropBlockToolbarPluginLoaded = editor.plugins.has( 'DragDropBlockToolbar' );
const label = isDragDropBlockToolbarPluginLoaded ? `${ editBlockText } \n${ dragToMoveText }` : editBlockLabel;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5ec1cb5

@arkflpc arkflpc merged commit 238665a into master Sep 11, 2023
@arkflpc arkflpc deleted the ck/14646-drag-and-drop-change-the-default-icon branch September 11, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Drag & drop + Balloon block, intro] Change the default icon
2 participants