Allow parent to add comments on submitted documents
Build and Push Docker Image / build-and-push (push) Successful in 38s

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 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 4.6 committed 2026-10-19 15:44:07 -04:00
1 parent 3d1e887c19
commit 3e53efd752
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -3346,9 +3346,11 @@ async function openAdminDocViewer(id, key, filename, title) {
frame.innerHTML = `<div class="docs-error">Could not load document config.</div>`;
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);