This is a migrated thread and some comments may be shown as answers.

[Solved] CustomDialog Bug

2 Answers 83 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Konstantin Golovchenko
Top achievements
Rank 1
Konstantin Golovchenko asked on 15 Jul 2009, 08:47 AM
Hi!
I'm trying to make my custom dialog like in http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx
The problem is your example doesn't correctly works in firefox (particulary in versions 3.0 and 3.5) - when you select text and try to make it a link, the link is always inserted at the beginning of the whole text.
I think the problem is exactly in your example 'cause the builtin tootip tool for links works fine.
Can you say what to change in your example to make it workable in firefox?


2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Jul 2009, 03:05 PM
Hi Konstantin,

I examined the code of the custom dialog and fixed the problem in Firefox by replacing the following line:

editor.pasteHtml(String.format("<a href={0} target='{1}' class='{2}'>{3}</a> ", args.href, args.target, args.className, args.name))

with this one:

editor.pasteHtml("<a href='" + args.href + "' target='" + args.target + "' class='" + args.className + "'>" + args.name + "</a>");

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Konstantin Golovchenko
Top achievements
Rank 1
answered on 22 Jul 2009, 10:38 AM
Thank you very much. It really helped. I think you should update your example on the site.
Tags
Editor
Asked by
Konstantin Golovchenko
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Konstantin Golovchenko
Top achievements
Rank 1
Share this question
or