Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Sollution will be:
if ( selection )
{
if ( selection.length > 0 )
{
if ( $.browser.msie )
this.editorDoc.execCommand('createLink', true, null);
else
{
var szURL = prompt('URL', 'http://');
if ( szURL && szURL.length > 0 )
{
this.editorDoc.execCommand('unlink', false, []);
this.editorDoc.execCommand('createLink', false,
szURL);
}
}
}
else if ( this.options.messages.nonSelection )
alert(this.options.messages.nonSelection);
}
else if ( this.options.messages.nonSelection )
{
alert(this.options.messages.nonSelection);
}
Original comment by c...@mindyourguest.nl
on 26 Mar 2009 at 9:56
Thanks, landed in
http://github.com/akzhan/jwysiwyg/commit/34cd47fb3cf43958a19d9b1dca0caaaadddb4ba
b
Original comment by akzhan.a...@gmail.com
on 27 Jun 2010 at 10:58
Original issue reported on code.google.com by
c...@mindyourguest.nl
on 26 Mar 2009 at 9:55