-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Insert image and Insert link modals closing all modals #1512
Comments
Hello, I think you have to set below option. That might be solve your problem. dialogsInBody: true, Ex. Thanks, |
Tried that, and it didn't solve it. The dialog's aren't in the body. I'll try it again to be sure and thanks for the comment. |
+1 |
If I 'Select Files' instead of entering an Image URL, that process works 100% OK - the local image file is selected, the Image modal closes and leaves the Summernote container in the first modal still open and the image has been inserted in the editor as expected. It's only as you enter an Image URL (or Link URL) that both modals close when you click the 'Insert' button. |
Any thoughts/ideas for the developers? |
@hardikvaishnav |
I take it all back, I've re-tested and tried the following options on initialisation and the Insert Image and Insert URL dialog's do return their content to the summernote editable area in the already open dialog that called the inserts:
|
It didn't work for me, but adding this css line solved it : |
I launch Summernote in a Bootbox modal, the Insert image and Insert link buttons fire their own modal on top. If you then add an image URL or a Link as you click 'Insert'
self.$dialog.modal('hide');
on line 5772 is closing both the top and bottom modals when it should only be closing the top most modal leaving the summernote container still visible and containing the new image or link. Any thoughts on how that might be fixed?The text was updated successfully, but these errors were encountered: