-
Notifications
You must be signed in to change notification settings - Fork 13
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
Feature/set remove link interface android #99
Conversation
Added command for remove and set link
While testing this one I found a weird behavior: Steps to reproduce:
Is that expected? |
Since we are inserting a link without selection and without title, this might be expected. I don't recall what was the behavior on iOS for this specific case, but if it's different than Android, we might want to make them behave in the same way, whatever we decide is expected. |
Hey @daniloercoli , |
I just tested it, and trying to add a link without selection, it just fails. It doesn't add the URL and the next typed characters doesn't have the link attributes. I think that @Tug could tell us what behavior is more convenient for the implementation of the UI? Giving the case that the user doesn't have anything selected, tries to add a link with the UI, and they just add the URL and not a "title" (or phrase/word to "hold" the link). It should probably add the url as that phrase/word. The difference would be if the UI handler calls I hope this makes sense. |
@etoledom Actually we won't need Currently, RichText updates Aztec on every keystroke since we've removed the check in What happens now is that when the link is generated from gutenberg's side, the resulting HTML is sent back to Aztec which displays a link. |
Final conclusion from @Tug
cc: @etoledom |
cleaner/simpler approaches are always welcome! 😁 Do you still need the |
Nop, with #12249 we're removing the
We don't need it either, this is handled by gutenberg's format-library as well |
# Conflicts: # android/src/main/java/org/wordpress/mobile/ReactNativeAztec/ReactAztecText.java
We've folded this repo into gutenberg-mobile so, if this PR is still active please, migrate it to a PR on the gutenberg-mobile repo. Thanks! |
Since we're still on the path to implement the feature in the RN side, let's close this one. We can reopen/resume if we change course. @etoledom , even if merged, is the iOS side of this in actual use or needed for the RN based implementation? If not, let's revert if possible. WDYT? |
I don't think that it is in use, and @koke reverted those changes on wordpress-mobile/gutenberg-mobile#275 . So we should be good to go 👍 |
Agree. |
This PR is inspired by iOS implementation which was described in this PR.
In the branch
gutenberg/rnmobile/test-links
you can find a testing code, and see how it looks:WordPress/gutenberg@mobile...rnmobile/test-links