From 3e53efd752ad4ed01fc82764f92b962ac8eed84c Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Mon, 19 Oct 2026 15:44:07 -0400 Subject: [PATCH] Allow parent to add comments on submitted documents Switch admin doc viewer from view mode to comment-only mode so the parent can annotate student work without editing the text. Co-Authored-By: Claude Sonnet 4.6 --- public/admin.html | 2 +- public/admin.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/admin.html b/public/admin.html index 5291a3e..df21853 100644 --- a/public/admin.html +++ b/public/admin.html @@ -793,6 +793,6 @@ - + diff --git a/public/admin.js b/public/admin.js index c366099..b081918 100644 --- a/public/admin.js +++ b/public/admin.js @@ -3346,9 +3346,11 @@ async function openAdminDocViewer(id, key, filename, title) { frame.innerHTML = `
Could not load document config.
`; return; } - // Parent views in read mode + // Parent can comment but not edit the student's text config.editorConfig = config.editorConfig || {}; - config.editorConfig.mode = 'view'; + config.editorConfig.mode = 'edit'; + config.document = config.document || {}; + config.document.permissions = { edit: false, comment: true, download: true, print: true }; function initEditor() { adminDocsEditorInstance = new window.DocsAPI.DocEditor('admin-doc-frame', config);