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

Updated focus behavior for heading and code. #404

Merged

Conversation

mateuszzagorski
Copy link
Contributor

Focus and selection will now remain on the text when the Heading or Code buttons are pressed. Closes #380.

@mlewand mlewand self-requested a review October 20, 2022 08:15
src/app/plugins/headingdropdown.js Outdated Show resolved Hide resolved
src/app/plugins/headingdropdown.js Outdated Show resolved Hide resolved
@@ -84,6 +86,14 @@ export default class HeadingDropdown extends Plugin {
] );
dropdown.toolbarView.fillFromConfig( toolbarConfig.items, editor.ui.componentFactory );

dropdown.on( 'change:isOpen', ( evt, name, isOpen ) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I miss a reference comment to the origin issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

But why do you focus the editable upon closing heading dropdown? This behavior would be inconsistent with other features (and a little disruptive quite frankly).

@mlewand mlewand self-requested a review October 21, 2022 14:10
Copy link
Contributor

@mlewand mlewand left a comment

Choose a reason for hiding this comment

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

I addressed my previous review points to keep it going.

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.

2 participants