jhollingworth / bootstrap-wysihtml5

Simple, beautiful wysiwyg editor
http://jhollingworth.github.com/bootstrap-wysihtml5/
MIT License
4.14k stars 1.01k forks source link

Insert image or link will close all active modals on a page #46

Open magnusart opened 12 years ago

magnusart commented 12 years ago

I have a wysihtml5-bootstrap enabled textarea in a modal. When I click the insert link or image I get a new modal box on top of my existing modal box. Now click I close or save and all modals gets dismissed instead of the top on that I would expect.

I have not looked into the code but from the top of my head a solution would be to create modal box and close the modal box with a jQuery snippet like so: $("#wysihtml5-add-image").modal('hide'); instead of using data-dismiss="modal"

panosru commented 12 years ago

same here for me...

magnusart commented 12 years ago

FYI: I forgot to mention here that I added this issue in Twitter Bootstrap, where I think it should be fixed, please comment there if you want to push for a fix: https://github.com/twitter/bootstrap/issues/3233

In the end I choose to go with CKEditor instead with a Twitter Bootstrap css layout. It uses different libraries for it's popups so it works but adds extra deps. The image and URL dialog was a bit too simple in bootstrap-wysihtml5 for my needs. But I'll be keeping an eye on this project as it matures...