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

IBX-824: Fixed triggering closing link popup on formatted text #1872

Merged
merged 3 commits into from
Aug 27, 2021

Conversation

konradoboza
Copy link
Member

Question Answer
Tickets IBX-824
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

It seems that text formatted with bold, italic, or underline doesn't trigger popup closing after adding a link. I added proper condition ensuring that and implemented a method for moving the caret to the end of the text element. This aims to preserve the consistency with the behavior observed for the non-formatted text when the link is associated. Otherwise, the caret will be moved to the beginning of bold/italic/underline each time which might be inconvenient for the editors.

PR targetting v3 will be done once this solution gets approval.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@sonarcloud
Copy link

sonarcloud bot commented Aug 25, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@kacper-wieczorek-ibexa kacper-wieczorek-ibexa left a comment

Choose a reason for hiding this comment

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

Qa - approved.
Tested on v2.5.22

@lserwatka lserwatka merged commit 6601492 into 1.5 Aug 27, 2021
@lserwatka
Copy link
Member

You can merge it up now.

@lserwatka lserwatka deleted the ibx-824-trigger-link-popup-close-on-formatted-text branch August 27, 2021 10:22
@konradoboza
Copy link
Member Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants