Giter VIP home page Giter VIP logo

Comments (11)

jordandh avatar jordandh commented on June 27, 2024

I think this happens when no text is selected and the updateToolbar method calls document.queryCommandState.

from bootstrap-wysiwyg.

xentatt avatar xentatt commented on June 27, 2024

Having the same issue (using latest version of bootsrap wysiwyg)

from bootstrap-wysiwyg.

joni-jones avatar joni-jones commented on June 27, 2024

I have the same error (line 30) in FF 23.0.1. In Chrome (28.0) all works fine.

from bootstrap-wysiwyg.

brunohulk avatar brunohulk commented on June 27, 2024

I've got the same problem with the editor tinymce in one of muy applications, I suppose that Bootstrap uses the Tinymce too, Someone found out the solution?

from bootstrap-wysiwyg.

brianherbert avatar brianherbert commented on June 27, 2024

Just putting my hand up over here to say this is also an issue for me. FF 23.0.1

from bootstrap-wysiwyg.

brianherbert avatar brianherbert commented on June 27, 2024

@jordandh For what it's worth, commit 82ccb4f in pull request #66 does seem to clear up the error. Should that be reconsidered and merged?

from bootstrap-wysiwyg.

seinoxygen avatar seinoxygen commented on June 27, 2024

Having the same issue.

from bootstrap-wysiwyg.

xinz avatar xinz commented on June 27, 2024

I have this issue on FF 30, is there any suggestions?

from bootstrap-wysiwyg.

vanquybn avatar vanquybn commented on June 27, 2024

See: http://stackoverflow.com/a/25800912/1484471

I resolve this issue as below:
find:
$(options.toolbarSelector).find(toolbarBtnSelector).each(function () {
var command = $(this).data(options.commandRole);
if (document.queryCommandState(command)) {

change this line:
if (document.queryCommandState(command))

to:
if (editor.is(':focus') && document.queryCommandState(command))

from bootstrap-wysiwyg.

cpayne22 avatar cpayne22 commented on June 27, 2024

+1 for @vanquybn suggestion. This worked for me.

from bootstrap-wysiwyg.

ducnvhn avatar ducnvhn commented on June 27, 2024

I'm having same error on the latest version. I try to insert a link but everytime I click on the textbox to insert the link, it disappear immediately.

from bootstrap-wysiwyg.

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.