BBCode editor allows you to select specific text from a textarea, have that text inserted into an Input field, and then add a URL string back to the textarea.
This code can be used in forum-type websites, making adding URLs to your visitor's posts easy.
- September 02, 2010 - Originally posted and shared with the Coding Source Community.
- June 20, 2012 - Updated form elements and code
- October 31, 2022 - Updated with Selected text in Textarea.
To work with an [Input] field instead of DIV, code provided by: Michel Plungjan«