I've been building a custom journal application for my website which has a reply sub-app where visitors can post responses to my frequent posts.
In the response sub-app I want to be able to incorporate formatting buttons (bold, link, colour, etc) that will take selected text within the textbox and add the appropriate format codes on either end of it.
While I've been trying to keep the application 100% C#/ASP.Net I am curious if anyone has any suggestions on how to go about getting a SelectedText type replace where I can take, for example "visit my site" as a selected segment within the textbox and through a button within the page convert it to [l http://mysite.com]visit my site[/l]. For this example I would also need some sort of pop-up input field where the user could enter their URL.
I've seen some examples of how to (just using C#/ASP.Net) open a child window, enter a variable, and return the variable to the parent but I haven't yet found a way to work on only a selected portion of a textbox's content.
I haven't added any code here simply because this is a prospective addition to my app and not something that's currently coded and in place.
Any help would be appreciated :)