##// END OF EJS Templates
dblclick to unconfine on images in html output
Min RK -
Show More
@@ -588,6 +588,7 b' define(['
588 var toinsert = this.create_output_subarea(md, "output_html rendered_html", type);
588 var toinsert = this.create_output_subarea(md, "output_html rendered_html", type);
589 this.keyboard_manager.register_events(toinsert);
589 this.keyboard_manager.register_events(toinsert);
590 toinsert.append(html);
590 toinsert.append(html);
591 dblclick_to_reset_size(toinsert.find('img'));
591 element.append(toinsert);
592 element.append(toinsert);
592 return toinsert;
593 return toinsert;
593 };
594 };
@@ -603,6 +604,7 b' define(['
603 html = mathjaxutils.replace_math(html, math);
604 html = mathjaxutils.replace_math(html, math);
604 toinsert.append(html);
605 toinsert.append(html);
605 });
606 });
607 dblclick_to_reset_size(toinsert.find('img'));
606 element.append(toinsert);
608 element.append(toinsert);
607 return toinsert;
609 return toinsert;
608 };
610 };
@@ -668,7 +670,7 b' define(['
668 return toinsert;
670 return toinsert;
669 };
671 };
670
672
671 dblclick_to_reset_size = function (img) {
673 function dblclick_to_reset_size (img) {
672 /**
674 /**
673 * Double-click on an image toggles confinement to notebook width
675 * Double-click on an image toggles confinement to notebook width
674 *
676 *
General Comments 0
You need to be logged in to leave comments. Login now