Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Backspace and delete are not working until a character is entered (including enter)

#19

Hello,

I don't really know when this happened, because I've used your editor for a year now and never really noticed, but the backspace and delete keys are not working until a character is entered or a new line is created.

It looks like the culprit is Firefox (3.6.6) because it works fine with Safari and Chrome.

Have you heard about that ? Is it a bug of the design mode ?

Anyway, thank for your great and tiny editor.

Best regards,

Olivier Laviale

Reported by Olivier Laviale · July 2nd, 2010 @ 06:08 PM

State: new
Milestone: none
Assigned to: Lim Chee Aun Lim Chee Aun

Activity

  1. chentsov (at gmail)
    chentsov (at gmail)

    From: http://forums.mozillazine.org/viewtopic.php?p=1947464#p1947464

    jqp wrote:

    .designMode = "on";
    .execCommand("inserthtml", false, "fill IFRAME with stuff");
    

    I'll have to remember that for my stuff. If that fixes the backspace problem, that saves me some trouble, too.


    I put the following code after
    (Browser.Engine.trident) ? this.doc.body.contentEditable = true : this.doc.designMode = 'On';

        if (Browser.Engine.gecko) {
          // Backspace fix!
          this.doc.execCommand("inserthtml", false, "fill IFRAME with stuff");
        }
    

    It helped me!

    July 20th, 2010 @ 11:21 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.