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

Firefox 3.6 - Can't delete inserted items from dialog

1 Answer 14 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brian Garson
Top achievements
Rank 2
Brian Garson asked on 19 Oct 2010, 03:35 PM
Hello,

I have a pretty unique case, that I've only been able to reproduce in Firefox 3.6:

  • create a sample project with a rad Editor
  • load the page with the radEditor, you must start from a freshly loaded page, with no content in the editor.
  • before doing anything else insert a link by using the link manager, or a photo using the photo manager, or paste from word using the dialog.. basically anything that allows you to enter content into the editor without actually typing it there yourself.
  • once inserted, try to hit the backspace to erase it, or select it with the mouse to delete it.

As soon as you type another letter you can then erase everything.  I've been able to reproduce it using a button to insert content into the editor via javascript and the editor.pasteHTML() and/or editor.set_html().  I've tried to set the focus, or add something else after, it doesn't seem to make a difference.

Any ideas?

thanks,

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Oct 2010, 10:49 AM
Hi Brian,

I have already answered your support ticket on the subject. For convenience I will paste my answer here as well.

Thank you for bringing this problem to our attention. This is indeed very odd behavior. I have logged it into our ToDo for further investigation and we will do our best to fix it for one of the upcoming releases.

For the time being, as a workaround you can set some dummy content to the editor, if it is empty, during the OnClientLoad event using set_html() method, for example a single space ( ), e.g.:
function OnClientLoad(editor, args)
{
    if ($telerik.isFirefox)
    {
        var content = editor.get_html(true);
        if (content != "")
            editor.set_html(content);
        else
            editor.set_html(" ");
    }
 }

As a small token of gratitude I have updated your Telerik points.


Greetings,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Brian Garson
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or