aboutsummaryrefslogtreecommitdiff
path: root/resources/vue
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-12-09 13:50:39 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2025-12-09 13:50:39 +0100
commit7bc552bb856cd5ce09b352510ee922b1b9b7b7ea (patch)
tree75f86c3d427c2cd974eaa998a27f41df69414999 /resources/vue
parentc096814bed20ffd95b86322561b2f012c61118c6 (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/vue')
-rw-r--r--resources/vue/apps/WikiEditor.vue14
1 files changed, 7 insertions, 7 deletions
diff --git a/resources/vue/apps/WikiEditor.vue b/resources/vue/apps/WikiEditor.vue
index dda34ba..5e0c350 100644
--- a/resources/vue/apps/WikiEditor.vue
+++ b/resources/vue/apps/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()
);