phone-tag | Server-side repo for mobile , geolocation-based game of tag | Frontend Framework library
kandi X-RAY | phone-tag Summary
kandi X-RAY | phone-tag Summary
Phone Tag (working title) - Server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of phone-tag
phone-tag Key Features
phone-tag Examples and Code Snippets
Community Discussions
Trending Discussions on phone-tag
QUESTION
Am trying to match email,phone,email,hashtags and mention tag
in a message and insert them inside a hyper link. But am having problem with my regex as it doesn't match emails as mail instead it match as a link.
Below is a working example.
...ANSWER
Answered 2019-Apr-21 at 15:10I think the problem is that search for the "chat-message-link" is "eating" the domain in the email-address. I don't know if that's generally applicable, but I changed the search so that if would start at the beginning of the line...
QUESTION
I am using AEM 6.1 SP2 , I am trying to enable 'tel' attribute in the href of anchor tag to make the click to call functionality work. I have already added 'htmlRules' node and links node under htmlRules node with 'protocols' property as [http://, https://, ftp://, tel:, mailto:, file://]
as specified in the link - http://labs.6dglobal.com/blog/2013-01-11/configuring-telephone-tags-within-rich-text-components-and-link-checker/
The 'validateHref' function in rte.js does read the 'protocols' property and validates the 'tel ' attribute as valid, but not sure why the 'tel' attribute does not persist in the markup when 'ok' is clicked in the author dialog.
this is the anchor tag -
and this is how it renders as markup on page -
...ANSWER
Answered 2017-Aug-01 at 07:20It seems that the solution you linked in the question is not applicable for the latest versions of AEM.
The mechanism that is now responsible for removing href
starting with tel
is HTL XSS protection that scans properties before being written. The simplest way to avoid that is disabling it in your Rich Text component: ${properties.text @ context='unsafe'}
. That is not the safest solution though and instead it is better to extend XSS protection configuration with these steps:
- Overlay XSS configuration files by copying it from libs to apps:
/libs/cq/xssprotection/config.xml
-> /apps/cq/xssprotection/config.xml
/libs/sling/xss/config.xml
-> /apps/sling/xss/config.xml
- Add protocol with new regexp for tel:
- Add
telURL
toregexp-list
of anchorhref
attribute:
- It might be also required to restart AEM instance after doing these changes.
In the case of issues, you can read more about it on this blog page and this Stackoverflow post.
Additionally, Link Checker mechanism may still mark your link as invalid on edit mode, and on publish it can be removed.
Depending if you need it to make it work to one or all specific anchors or all anchors in your app, you can either:
- add
x-cq-linkchecker="skip"
attribute to your anchor, as i.net suggested in the comment under your post - or if you would like to allow adding
tel
to any possible anchor on the page, add exceptiontel:
Special Link Prefixes in Day CQ Link Checker Service OSGI service. Please note that then the service configuration needs to be applied on all author and publish instances.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install phone-tag
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page