Forum Moderators: open

Message Too Old, No Replies

Dynamically Add Links To A Text Box?

         

joe in nantucket

6:13 am on Feb 1, 2008 (gmt 0)

10+ Year Member



I'm not sure if I am posting this in the right area or not, but what I am looking for is a way to dynamically add links to a text box, similar to how Wordpress does it. What I would like my client to do is to select the text he types into a text box, like I am doing now, then highlight the text, click on a button that would bring up a box where he could add in the url for the text and create the appropriate code. I've never done this before so I don't know how it could be done.

I would normally just have him type a style code around the url which would be easiest but they need to be able to add anchor text to the links. Perhaps there is an easier way to do what I need other than what I asked for, I just don't know.

I apologize if it sounds confusing.

Fotiman

3:32 pm on Feb 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There are several editors available that will give you this type of control. Check out the Yahoo UI Library's Rich Text Editor (currently in Beta):
[developer.yahoo.com...]

Another popular one is FCKEditor:
[fckeditor.net...]

And TinyMCE:
[tinymce.moxiecode.com...]

[edited by: Fotiman at 3:33 pm (utc) on Feb. 1, 2008]

joe in nantucket

7:10 am on Feb 2, 2008 (gmt 0)

10+ Year Member



Thanks for your help, I'll take a look into those.