aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-12-09 13:50:39 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-12-09 13:55:00 +0100
commitfd04fe03fa340b4f65b316b4dff6920bda6ca910 (patch)
tree76d1b969861056bee46bee18d7638e0586bfa980 /resources
parent9721cd67b6f0566e88418020ac17189951d7666e (diff)
set editor data from `content.content` and HTML from `content.html`, fixes #6097
Closes #6097 Merge request studip/studip!4635
Diffstat (limited to 'resources')
-rw-r--r--resources/vue/components/WikiEditor.vue14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/vue/components/WikiEditor.vue b/resources/vue/components/WikiEditor.vue
index ff3e2eb..dcca606 100644
--- a/resources/vue/components/WikiEditor.vue
+++ b/resources/vue/components/WikiEditor.vue
@@ -255,20 +255,20 @@ export default {
JSUpdater.register(
'wiki_editor_status',
(content) => {
- this.onlineUsers = content.users;
- this.isEditing = content.editing;
-
if ('chdate' in content) {
this.lastSaveDate = new Date(content.chdate);
}
- if ('content' in content) {
- this.html = content.content;
+ if ('html' in content) {
+ this.html = content.html;
}
- if (!this.isEditing && 'wysiwyg' in content) {
- this.editor.setData(content.wysiwyg);
+ if (!this.isEditing && 'content' in content) {
+ this.editor.setData(content.content);
}
+
+ this.onlineUsers = content.users;
+ this.isEditing = content.editing;
},
() => this.getUpdaterData()
)