Allow parent to add comments on submitted documents
Build and Push Docker Image / build-and-push (push) Successful in 38s
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:
1 parent
3d1e887c19
commit
3e53efd752
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -793,6 +793,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="admin.js?v=3"></script>
|
||||
<script src="admin.js?v=4"></script>
|
||||
</body>
|
||||
</html>
|
||||
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user