Hello,
I am using the scheduler with scheduler.config.readonly_form = true
.
In the lightbox I cannot select or copy the text (Ctrl+C does not work).
Is this the expected behavior?
The same happens if I set readonly only for a specific event.
Why does this happen?
Thank you.
Best regards,
Jonas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="<?php echo JS_PATH;?><?php echo 'dhtmlxScheduler_v7.2.3';?>/dhtmlxscheduler.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php echo JS_PATH;?><?php echo 'dhtmlxScheduler_v7.2.3';?>/dhtmlxscheduler.css" type="text/css">
</head>
<body>
<div id="scheduler_here" class="dhx_cal_container" style='width:100%; height:100%;'></div>
<script>
scheduler.plugins({
readonly: true
});
scheduler.config.lightbox.sections = [
{ name: "description", height: 130, map_to: "text", type: "textarea" },
{ name: "ben", height: 130, map_to: "ben", type: "textarea" },
{ name: "time", height: 72, map_to: "end_date", type: "time" }
];
scheduler.config.readonly_form = true;
scheduler.init('scheduler_here', new Date(), "week");
scheduler.parse([
{ id: 1, start_date: "2025-10-03 08:00", end_date: "2025-10-03 09:30", text: "Mathe", ben: "JOnas" },
{ id: 2, start_date: "2025-10-03 10:00", end_date: "2025-10-03 11:30", text: "Englisch", ben: "JOnas" },
{ id: 3, start_date: "2025-10-03 13:00", end_date: "2025-10-03 14:30", text: "Sport", ben: "JOnas" }
], "json");
</script>
</body>
</html>