sgilboy,
I just wrote a fix for this. And I've tested it. It works. You can test it in our online demo.
In WinIE.js, you will find the following code from line 481 to line 494.
if (FSrc&&(selectedRange.htmlText != ""))
{
editor.document.execCommand("unlink");
var sHTML = '<a href='
+ FSrc['href']
+ attr("target", FSrc['Target'])
+ attr("Title", FSrc['Title'])
+ attr("Title", FSrc['Title'])
+ (FSrc['linkcolor'] ? attr("style", "color:"+FSrc['linkcolor']) : "")
+ '>'
+ selectedRange.htmlText
+ '</a>';
insertHTML(editing.EditorID,sHTML);
} |
Please replace it with the following code:
if (FSrc)
{
var temp;
if (selectedRange.htmlText != "")
temp = selectedRange.htmlText;
else
temp = FSrc['href'];
editor.document.execCommand("unlink");
var sHTML = '<a href='
+ FSrc['href']
+ attr("target", FSrc['Target'])
+ attr("Title", FSrc['Title'])
+ attr("Title", FSrc['Title'])
+ (FSrc['linkcolor'] ? attr("style", "color:"+FSrc['linkcolor']) : "")
+ '>'
+ temp
+ '</a>';
insertHTML(editing.EditorID,sHTML);
} |
Thanks for pointing it out. I will add it to the next release.
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx