#19 new
Olivier Laviale

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

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

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

Comments and changes to this ticket

  • chentsov (at gmail)

    chentsov (at gmail) July 20th, 2010 @ 11:21 PM

    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!

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple web-based WYSIWYG editor, written in Mootools.

Pages