My template for using custom bootbox dialogs is the entry:
message: "<div id='dialogAnchor'></div>"
in the definition of the bootbox dialog box and follow it (after creating the boot box) with
Blaze.render(Template.myDialog,$("#dialogAnchor")[0])
to embed my template in the bootbox dialog directly. This greatly simplifies the management of the contents of the boot box. I did not use cropping, but assuming you can use it in a regular template, you can use the above template to get this template in the boot box.
source
share