TinyMce for posts
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<div class="w-full h-full">
|
||||
<div class="w-full h-full">
|
||||
<v-btn class="flex justify-end" @click="createHtmlContent">Create Custom</v-btn>
|
||||
<v-btn class="flex justify-end" @click="createContent">Create</v-btn>
|
||||
<div v-if="brandingStore.value.loading">
|
||||
<v-progress-linear indeterminate></v-progress-linear>
|
||||
</div>
|
||||
@@ -13,5 +15,16 @@
|
||||
<script async setup>
|
||||
import {useBrandingStore} from "@/stores/brandingStore.js";
|
||||
import ContentList from "@/views/contents/ContentList.vue";
|
||||
import {useRouter} from "vue-router";
|
||||
const brandingStore = useBrandingStore()
|
||||
const router = useRouter();
|
||||
|
||||
const createHtmlContent = () => {
|
||||
router.push('/content/editor');
|
||||
}
|
||||
|
||||
const createContent = () => {
|
||||
router.push('/content/post');
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user