Editor Bootstrap: wrong result for editor.displayed() after close

Editor Bootstrap: wrong result for editor.displayed() after close

aachevalieraachevalier Posts: 8Questions: 0Answers: 0

I'm using Bootstrap as the display controller for Editor and whenever I close the form, the editor.displayed() method returns all the fields, even though they are not displayed anymore. This does not happen with the default Lightbox display controller.

So for now I added this line in the close method of the Bootstrap plug-in and it seems to do the trick:

$(self._dom.content).detach();

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin

    Thanks for letting me know about that. I've just committed the fix which is to remove the Bootstrap modal from the DOM when it has finished hiding.

    Int he Bootstrap integration file:

    $(self._dom.content).modal('hide');

    Becomes:

            $(self._dom.content)
                .one( 'hidden.bs.modal', function () {
                    $(this).detach();
                } )
                .modal('hide');
    

    This will be in the 1.4.1 package :-)

    Regards,
    Allan

  • aachevalieraachevalier Posts: 8Questions: 0Answers: 0

    Nice thanks!

This discussion has been closed.