Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execcommand + Hyperlink problem

Status
Not open for further replies.

MarkEmerson83

Technical User
Apr 14, 2002
3
GB
I am having a very odd problem with using IFrames as a wysiwyg editor

I am using the editor to enter information into a db and also edit the information in the db.

The inputting works fine and any links i add work correctly. However if i then go to edit the data when i put the info through the editor the second time it breaks the link by adding a bit at the beginning of the HREF (example below)

If the link was href=" when it is edited and saved it becomes
href='(with the beginning bit being the root of the page)

This is really annoying as this happens even when the link is not touched second time around.

Any Ideas??
 
Is the " definately present first time around? If not, I could see that the editor might prepend the protocol and local server information.

Apart from that, it would be hard to say what your editor is doing without seeing the source of the editor.

Hope this helps,
Dan
 
It definatly has the http before, Ill dig out the code and post although it is pretty bog standard text editor code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top