Comments (5)
I've had that before. It happens only in firefox and this fixes the issue: tiff/wysihtml5#371
from wysihtml.
Thank you
from wysihtml.
What exactly is the fix? This seems like a bug that should still be fixed, and thus the issue should be re-opened. Regarding the referenced comments in xing#371, in many use cases, the textarea is hidden when the page loads (for example when a form is hidden with display:none
, and is only shown after the user clicks a button, which is my use case). Also, the proposed fix in the rangy-core.js code (which has not been officially implemented in that library) has not yet been implemented in wysihtml5x either, as done here.
Moreover, the previous proposed fix eliminates the TypeError: b.nativeSelection is null
; however, it does not eliminate a second error that occurs when the textarea is hidden during page load (in Firefox): NS_ERROR_FAILURE (on line: 12446): that.doc.execCommand("enableObjectResizing", false, "false");
.
I was using wysihtml5 version 0.3.0 and there was no error related to this. The error was introduced in version 0.4.0 and still exists in the current versions.
from wysihtml.
@pulges I think this should be re-opened, don't you think? Even with the above mentioned fix, I still get an NS_ERROR_FAILURE
when the form is hidden at page load, as mentioned above... This seems pretty critical...
from wysihtml.
I'm also hitting this, in a form that's brought in via AJAX, then initialised. Only seems to affect Firefox
from wysihtml.
Related Issues (20)
- wysihtml is not defined HOT 12
- Html is cleaned up after inserting an image or link when the composer is empty
- Update Value Of Existing Editors HOT 1
- Wyishtml crashes on IE 11 when formatting block with p HOT 1
- wysihtml.com home page textArea
- parser: whitelist `data-foo` attribute HOT 1
- Page scrolls down after document load on Firefox HOT 12
- Anchor Tag Isn't Applying href Attribute HOT 1
- loose the focus
- inserting a link are confusing control.
- Is there a way to get editor instance from the element
- Insert link with additional data
- cannot create link with href attr
- "Change" event is not triggered once a link is added/removed
- Type for parserRules
- Inserting element at start/end of line
- [QUESTION] Where I can find the CI service?
- ctrl+right/left arrow support
- Trying to get in touch regarding a security issue
- insertUnorderedList seems like it could be rolled into outdentList and indentList
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wysihtml.