Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

NS_ERROR_UNEXPECTED on FF #23

Open
uBaze opened this issue Apr 8, 2013 · 11 comments
Open

NS_ERROR_UNEXPECTED on FF #23

uBaze opened this issue Apr 8, 2013 · 11 comments

Comments

@uBaze
Copy link

uBaze commented Apr 8, 2013

Hi,

I've noticed an error into the firebug console :

Erreur : NS_ERROR_UNEXPECTED: Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLDocument.queryCommandState]
Fichier Source : http://mindmup.github.io/bootstrap-wysiwyg/bootstrap-wysiwyg.js
Ligne : 49

Just for the report.

Cheers.

@jordandh
Copy link
Contributor

I think this happens when no text is selected and the updateToolbar method calls document.queryCommandState.

@xentatt
Copy link

xentatt commented Jun 20, 2013

Having the same issue (using latest version of bootsrap wysiwyg)

@joni-jones
Copy link

I have the same error (line 30) in FF 23.0.1. In Chrome (28.0) all works fine.

@brunohulk
Copy link

I've got the same problem with the editor tinymce in one of muy applications, I suppose that Bootstrap uses the Tinymce too, Someone found out the solution?

@brianherbert
Copy link

Just putting my hand up over here to say this is also an issue for me. FF 23.0.1

@brianherbert
Copy link

@jordandh For what it's worth, commit 82ccb4f in pull request #66 does seem to clear up the error. Should that be reconsidered and merged?

@seinoxygen
Copy link

Having the same issue.

@xinz
Copy link

xinz commented Jun 20, 2014

I have this issue on FF 30, is there any suggestions?

@vanquybn
Copy link

See: http://stackoverflow.com/a/25800912/1484471

I resolve this issue as below:
find:
$(options.toolbarSelector).find(toolbarBtnSelector).each(function () {
var command = $(this).data(options.commandRole);
if (document.queryCommandState(command)) {

change this line:
if (document.queryCommandState(command))

to:
if (editor.is(':focus') && document.queryCommandState(command))

@cpayne22
Copy link

+1 for @vanquybn suggestion. This worked for me.

@ducnvhn
Copy link

ducnvhn commented Jan 26, 2015

I'm having same error on the latest version. I try to insert a link but everytime I click on the textbox to insert the link, it disappear immediately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests