Merge remote-tracking branch 'origin/form_participant_print' into 2026-autumn-test-scalable

This commit is contained in:
yflory 2026-09-07 17:07:53 +02:00
commit a8ea9af861
2 changed files with 20 additions and 0 deletions

View File

@ -1556,3 +1556,15 @@
.charts_main();
}
@media print {
html,
body {
height: auto !important;
overflow: visible !important;
}
.cp-form-creator-container {
max-height: none !important;
overflow-y: visible !important
}
}

View File

@ -125,6 +125,14 @@ define([
return cancelBlock;
};
window.addEventListener('keydown', function (e) {
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') {
e.preventDefault();
window.print();
}
});
var editTextOptions = function (opts, setCursorGetter, cb) {
var evOnSave = Util.mkEvent();