linagora / esn-frontend-calendar

Calendar SPA for the OpenPaaS Suite - https://open-paas.org/
Other
8 stars 15 forks source link

Links in note’s event not clickable #630

Open asmaNode opened 2 years ago

asmaNode commented 2 years ago

Priority: high

Description: we are unable to detect links ( mails also ) in notes area

Environment: Production

Steps to reproduce:

1. Create an event  in openpaas
2. Create text with links in notes
3. Click on a link

Expected result:

Links must be clickable Example from google calendar experience :

notes with clickable link

Demo of the bug:

https://user-images.githubusercontent.com/43316837/150966166-06a66560-92e4-4f50-809e-4679675f8c94.mp4

fabienmoyon commented 2 years ago

cases that expect a link :

For this you can use directives already present in ESN like op-inbox-compose and DomPurity

mailto : a(ng-href='mailto:{{user.address}}', op-inbox-compose, op-inbox-compose-users='[user]')

link and hyperlinks with target:_blank : https://github.com/linagora/esn-frontend-common-libs/blob/1781b81f788cd33d6c7f4ddea27ab1fe68ee9ac9/src/frontend/js/modules/core.js#L255

asmaNode commented 2 years ago

I suggest this solution https://github.com/gregjacobs/Autolinker.js , will test it

asmaNode commented 2 years ago

PR: https://github.com/linagora/esn-frontend-calendar/pull/631