question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insert image and Insert link modals closing all modals

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

6reactions
chopstikcommented, Jul 20, 2016

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:

dialogsInBody: true,
dialogsFade: false,
4reactions
hardikvaishnavcommented, Dec 17, 2015

Hello,

I think you have to set below option. That might be solve your problem.

dialogsInBody: true,

Ex. (‘#HtmlContent’).summernote( { dialogsInBody: true, });

Thanks, Hardik

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert image and Insert link modals closing all modals
I launch Summernote in a Bootbox modal, the Insert image and Insert link buttons fire their own modal on top. If you then...
Read more >
Dynamically insert image source into modal - Stack Overflow
My goal is to insert the thumbnail image URL into the modal without having to assign each thumbnail image with an ID or...
Read more >
How to fit the image into modal popup using Bootstrap?
Images can be fitted in modal popup using Bootstrap by including <img> tag in the “modal-body” div. The “modal-body” div determines the main ......
Read more >
How To Create Modal Images - W3Schools
Learn how to create responsive Modal Images with CSS and JavaScript. ... Get the image and insert it inside the modal - use...
Read more >
Modal - Bootstrap
Use Bootstrap's JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content. How it works. Before ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found