Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal backdrop for link glitches often #142

Closed
skipperguy12 opened this issue Jan 24, 2016 · 2 comments
Closed

Modal backdrop for link glitches often #142

skipperguy12 opened this issue Jan 24, 2016 · 2 comments

Comments

@skipperguy12
Copy link

I'm not sure if anyone's experienced this, but for my editor when the link-button is pressed often pressing cancel, inserting, editing an existing link, or some variation of these ultimately leads to the modal backdrop persisting. I tried doing some basic research, and I'm not totally sure if this is right, but apparently the modal backdrop issue is commonly caused by multiple modal instances not closing correctly.

@Nerian
Copy link
Owner

Nerian commented Feb 11, 2016

Hi,

You may want to ask here: https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg

@Nerian Nerian closed this as completed Feb 11, 2016
@duarme
Copy link

duarme commented Oct 13, 2016

Happens to me too, solved with this quick fix:

$(document).ready(function() {
  $('[data-wysiwyg]').wysihtml5({
    toolbar: {
      "link": true
    }
  });
  // this ensures the modal-backdrop is removed when the dialog is closed
  $('[data-wysihtml5-dialog]').on('hidden.bs.modal', function(){
    $('.modal-backdrop').remove();
  })
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants