autolink urls with jquery

There are occasions where you want to allow site visitors to leave feedback on your site, and we usually do this through the comment feature using a combination of paint layouts, asset builders and asset listings.

As part of the feedback the user will often include url links, after all linking is what keeps the internet connected.

To properly allow the user to link these urls you would need to use WYSIWYG functionality, but here is how you can achieve the same end result with just a few lines of JQUERY.

Include the below scrip tags in a raw html div in the paint layout where you include the nested asset builder and asset listing for the comments.

Leave a comment

Your email address will not be published. Required fields are marked *