FCKEditor does not handle phonenumber-links properly
----------------------------------------------------
Key: MAGNOLIA-4133
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4133
Project: Magnolia
Issue Type: Bug
Security Level: Public
Components: fckeditor
Affects Versions: 4.4.5
Environment: Linux
Reporter: Daniel Wijk
Priority: Major
Attachments: mgnl_fix.txt
I am trying to use tel-links
(http://www.marketingtechblog.com/hyperlink-phone-number/) in the FCKEditor.
Magnolia interprets them as internal links and mangles them up.
It make maintaining a mobile-site a bit of a pain.
The problem is that tel-links is not detected in the
LinkUtil.EXTERNAL_LINK_PATTERN and thus is categorized as an internal link and
treated as such.
Since the problem is occurring in the Loader for the FCKEditor you can still
create the link and have it work if you refrain from editing the text
afterwards. If you do edit the text however, the link will be corrupted.
Fix:
info.magnolia.link.LinkUtil.EXTERNAL_LINK_PATTERN should be changed from:
Pattern.compile("^(\\w*://|mailto:|javascript:).*");
to this:
Pattern.compile("^(\\w*://|mailto:|javascript:|tel:).*");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------