-
Notifications
You must be signed in to change notification settings - Fork 160
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
[Rich text editor] Add link functionality to rich text editor #1309
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
62cba38
to
5922785
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1309 +/- ##
===========================================
- Coverage 57.81% 57.74% -0.07%
===========================================
Files 1120 1123 +3
Lines 29774 29970 +196
Branches 6114 6174 +60
===========================================
+ Hits 17213 17307 +94
- Misses 9876 9940 +64
- Partials 2685 2723 +38
☔ View full report in Codecov by Sentry. |
Should the link dialog pre-set the selected text (if any) as the text for the link? It doesn't seem to be working. |
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.
Besides the possible issue with inserting a link not taking the selected text, I have a few questions and suggestions.
...c/main/kotlin/io/element/android/libraries/designsystem/components/list/TextFieldListItem.kt
Outdated
Show resolved
Hide resolved
.../textcomposer/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposer.kt
Outdated
Show resolved
Hide resolved
...ser/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposerLinkDialog.kt
Outdated
Show resolved
Hide resolved
...ser/impl/src/main/kotlin/io/element/android/libraries/textcomposer/TextComposerLinkDialog.kt
Outdated
Show resolved
Hide resolved
|
The rich text editor is still limited in that respect and it's not possible to preview or edit the selected text when editing links. However, in the version you tested there is a bug where the dialog may incorrectly display an empty text field when selecting text; this makes the problem much worse UX wise and I suspect this is what you saw. I've since updated to version 2.10.2 which contains a fix for this if you wanted to try this. |
0cf8d84
to
f4baec2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@jmartinesp / @bmarty thanks for your reviews - I have addressed the issues |
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.
Tested OK, thanks. There are conflict on the strings (sorry), maybe run again the localazy script?
Type of change
Content
Motivation and context
Screenshots / GIFs
See screenshot tests
Tests
Tested devices
Checklist