Giter Site home page Giter Site logo

Comments (6)

kasoban avatar kasoban commented on July 29, 2024

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.

Themonkey180 avatar Themonkey180 commented on July 29, 2024

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.

bhaak avatar bhaak commented on July 29, 2024

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.

Nyholm avatar Nyholm commented on July 29, 2024

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.

naoisegolden avatar naoisegolden commented on July 29, 2024

+1

from wysihtml.

kieranklaassen avatar kieranklaassen commented on July 29, 2024

+1

from wysihtml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.