-
Notifications
You must be signed in to change notification settings - Fork 337
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
Multiple instances of editor causes a console error #44
Comments
This looks like it can be resolved with the following edits: wysihtml5x-toolbar.js
to
|
Nix that. That leads to another issue. I think I've refined the problem down to dynamically adding a new wysihtml5 editor to the dom. It doesn't seem to know how to resolve what the iframe.contentWindow is when that happens. |
Can you give some more details about browser/os and how are you implementing the two editors, so I can reproduce the error? |
This error appears on Windows and Linux. The error only happens when adding another editor dynamically. Imagine using a template system like knockout.js and a button click creates a modal with an editor in it. That modal comes from another template and technically did not exist in the DOM until ko's template engine injected it. ALSO, FWIW, I am not using the editable divs. I am going to try that right now. |
The error went away when I used the DIV approach. I'll close this. |
I have a use-case where I need to create multiple editors. When the second editor is created, the following console error is logged:
The text was updated successfully, but these errors were encountered: