Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

t/23: The editing UI should show up when the selection encloses a link #122

Merged
merged 1 commit into from
May 17, 2017

Conversation

oleq
Copy link
Member

@oleq oleq commented May 16, 2017

Suggested merge commit message (convention)

Fix: The editing UI should show up when the selection encloses a link. Closes ckeditor/ckeditor5#4730.

@oleq oleq requested review from Reinmar and oskarwrobel May 16, 2017 07:36

if ( selection.isCollapsed ) {
return findLinkElementAncestor( selection.getFirstPosition() );
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would follow this rule http://eslint.org/docs/rules/no-else-return but it's only a preference.

@oskarwrobel oskarwrobel merged commit ae43103 into master May 17, 2017
@oskarwrobel oskarwrobel deleted the t/23 branch May 17, 2017 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The link panel is not displayed when selection spans the entire link element
2 participants