Comments (6)
Are you sure this is related to the upgrade to 0.4.12? I encountered a very similar problem before which was related to the rangy core module. I can not find the issue/pull request where I fetched this solution from, but look for the line
sel._ranges.length = sel.rangeCount = sel.nativeSelection.rangeCount;
and change it to
sel._ranges.length = sel.rangeCount = (sel.nativeSelection ? sel.nativeSelection.rangeCount : 0);
This fixed my firefox issues.
Edit: Now I remember where I've seen this before. You already had that same error before and reported it here: #32
It just looks different at first because you used the minified version at the time.
from wysihtml.
Thank you for that fixes. It fixed the Firefox issues which were the biggest issue, but I still have the one in chrome to fix.
from wysihtml.
The nativeSelection issue seems to be related to these Firefox bugs: https://bugzil.la/495230, https://bugzil.la/827585
Although Firefox is violating the spec, judging from the last comment in the second bug report, it's not likely to get fixed soon in Firefox, so the workaround @kasoban used seems to be the way to go for the time being.
from wysihtml.
Any updates on this? I'm using version 0.5.0-beta8 and I do also get the following error in Chrome.
The given range and the current selection belong to two different document fragments.
from wysihtml.
+1
from wysihtml.
+1
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.