bergie / hallo

Simple rich text editor (contentEditable) for jQuery UI

Home Page:http://hallojs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

list buttons don't work in Firefox

JonathanReeve opened this issue · comments

The FF console error message is "NS_ERROR_FAILURE" in hallo.js:230. This is using Hallo 1.0.4. Lines 230-232 are:

if (document.execCommand(command, false, value)) {
    return this.element.trigger("change");
}

It turns out this might be a bug in Firefox. I should also note that this only happens if you try to make a list out all the lines in a contenteditable. If you select just a portion of the lines, it works fine.

Have the same problem: NS_ERROR_FAILURE

I have the same issue in my website, but the demo (http://hallojs.org/) does work in the same browser. Does anyone have any idea what could be wrong? I tried reproducing the environment to no avail.

👍