HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
Parse link
Posted by: mohit (---.net)
Date: Tuesday, 05-Dec-2006, 07:34:02

Hi All,

I'm facing a problem that in one scenario I want all the html links should be converted in plain text. And in other scenario if there is a plain text that is originally a link or URL should be parced and converted into Link.

Best Regards
Mohit

Re: Parse link
Posted by: Tim Bushell (---.range86-145.btcentralplus.com)
Date: Thursday, 07-Dec-2006, 15:23:50

Mohit

Can you explain what you mean by HTML links becoming plain text. Of course HTML is plain text by nature. Are you wanting to take

Go to <a href="www.url.com/page.hml">my home page</a>

and convert it to

Go to www.url.com/page.hml

And in the other scenario convert

Go to www.url.com/page.hml

to

Go to <a href="www.url.com/page.hml">www.url.com/page.hml</a>

Please clarify your problem.

Tim Bushell

Re: Parse link
Posted by: mohit (---.net)
Date: Tuesday, 12-Dec-2006, 08:43:40

Yes Tim, you are correct I want same as the example you have given.

Re: Parse link
Posted by: Prakash (---.pacific.net.in)
Date: Wednesday, 13-Dec-2006, 08:22:52

I have not tried this but can you do this

get the text you want create a text/control range out of it. and use the execcommand with CreateLink as the command.


for an example code

check the msdn for TextRange object -> exec command show example



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
ewkun
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.