Implemented Forum

This commit is contained in:
Torsten Schulz
2024-10-24 11:22:40 +02:00
parent 663564aa96
commit f74a16e58e
8 changed files with 270 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
<input type="text" v-model="newTitle" />
</label>
</div>
<editor v-model="newEntryContent" :init="tinymceInitOptions" :api-key="apiKey"
<editor v-model="newContent" :init="tinymceInitOptions" :api-key="apiKey"
tinymce-script-src="/tinymce/tinymce.min.js"></editor>
<button @click="saveNewTopic">{{ $t('socialnetwork.forum.createNewTopic') }}</button>
</div>
@@ -148,7 +148,10 @@ export default {
openProfile(id) {
this.$root.$refs.userProfileDialog.userId = id;
this.$root.$refs.userProfileDialog.open();
}
},
openTopic(topicId) {
this.$router.push(`/socialnetwork/forumtopic/${topicId}`);
},
}
}
</script>