Giter Site home page Giter Site logo

Comments (5)

brunobg avatar brunobg commented on July 29, 2024

I've had that before. It happens only in firefox and this fixes the issue: tiff/wysihtml5#371

from wysihtml.

Themonkey180 avatar Themonkey180 commented on July 29, 2024

Thank you

from wysihtml.

rayrigam avatar rayrigam commented on July 29, 2024

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.

rayrigam avatar rayrigam commented on July 29, 2024

@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.

jebw avatar jebw commented on July 29, 2024

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)

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.