wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

Handle URL / link clicks? #981

Closed hansemannn closed 2 years ago

hansemannn commented 2 years ago

First things first: This is an amazing library. We migrated from another one in no time and it works much more smoothly compared to anything else! Thanks everyone for putting time into this!

Expected

A user would expect that links are clickable once inserted. Maybe, even a dialog could be shown to switch between opening or editing the link.

Observed

This is not the case right now. It is handled like normal text.

Reproduced

  1. Open the Aztec demo
  2. Insert a link
  3. Attempt to click on it

Tested

Google Pixel 5 (Android 11) with Aztec 1.5.4

hansemannn commented 2 years ago

Nevermind! It can be done by setting the property linkTapEnabled: true and the onLinkTappedListener. Thanks again!