Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NS_ERROR_FAILURE: in firefox #1061

Open
zoinx2010 opened this issue Apr 14, 2016 · 7 comments
Open

NS_ERROR_FAILURE: in firefox #1061

zoinx2010 opened this issue Apr 14, 2016 · 7 comments

Comments

@zoinx2010
Copy link

zoinx2010 commented Apr 14, 2016

I tried align text via medium-editor, this not work. I got error NS_ERROR_FAILURE on lines

return this.options.ownerDocument.execCommand(action, false, null);

You can try here: http://vh17725.hv4.ru/
How to fix it? Sorry for my english) Iam from Russia

@j0k3r
Copy link
Contributor

j0k3r commented Apr 15, 2016

I'll close that issue because it's a duplicate of #1000

@j0k3r j0k3r closed this as completed Apr 15, 2016
@j0k3r
Copy link
Contributor

j0k3r commented Apr 15, 2016

Sorry, might not be a duplicate, apologies 🙏

@josefromsanjose
Copy link

I am having the same issue but when using he ordered list and unordered list buttons when the editor is used in angular. Any ideas on the issue?

@khanhlh
Copy link

khanhlh commented Sep 14, 2016

I get the same issue. You can reproduce the issue with this sample code. When click on the text to edit, the cursor is set to start or end of the text (cannot set the cursor to a specify position using mouse click). Use left/right arrow to move the cursor and you will see the error message in console.

<a href="#"><span class="editable">This is link</span></a>
<script>var editor = new MediumEditor('.editable');</script>

@codiak
Copy link

codiak commented Mar 2, 2017

I've been getting this issue with various interactions when using Medium Editor inside Angular 2 on Firefox.

@codiak
Copy link

codiak commented Mar 2, 2017

For reference, after simply typing, this error looks like:
"EXCEPTION: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://**********/main.bundle.js :: handleKeyup :: line 12390" data: no]"

Just to re-iterate, this is only when used inside Angular 2 on Firefox.

@codiak
Copy link

codiak commented Mar 3, 2017

So, I was able to resolve this on: https://github.com/codiak/angular2-medium-editor

When using Angular 2 in Firefox, the element that Medium Editor is applied on needs to be separate from anything Angular is trying to bind an input or output to.

At least in the case of Angular 2, I wouldn't say this is a Medium Editor bug, more of a conflict between the two (which only occurs in Firefox!).

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

No branches or pull requests

6 participants