I mixed both types of posts in the same editor.
This commit is contained in:
@@ -3,17 +3,17 @@ import { ref } from 'vue';
|
||||
import HTMLContentEditor from "@/views/contents/HTMLContentEditor.vue";
|
||||
import QuickyContentEditor from "@/views/contents/QuickyContentEditor.vue";
|
||||
|
||||
// Variables réactives pour gérer l'état des éditeurs
|
||||
const showQuickyEditor = ref(true); // Par défaut, Quicky Editor est affiché
|
||||
|
||||
const showQuickyEditor = ref(true);
|
||||
const showHtmlEditor = ref(false);
|
||||
|
||||
// Fonction pour afficher le Quicky Editor
|
||||
|
||||
const toggleQuickyEditor = () => {
|
||||
showQuickyEditor.value = true;
|
||||
showHtmlEditor.value = false;
|
||||
};
|
||||
|
||||
// Fonction pour afficher le HTML Editor
|
||||
|
||||
const toggleHtmlEditor = () => {
|
||||
showHtmlEditor.value = true;
|
||||
showQuickyEditor.value = false;
|
||||
@@ -28,12 +28,12 @@ const toggleHtmlEditor = () => {
|
||||
<button @click="toggleHtmlEditor">HTML</button>
|
||||
</div>
|
||||
|
||||
<!-- Conteneur qui s'affiche selon le bouton cliqué -->
|
||||
<div v-if="showQuickyEditor" class="mt-16"> <!-- Ajouter un margin-top pour éviter le chevauchement -->
|
||||
|
||||
<div v-if="showQuickyEditor" class="mt-16">
|
||||
<quicky-content-editor />
|
||||
</div>
|
||||
|
||||
<div v-if="showHtmlEditor" class="mt-16"> <!-- Ajouter un margin-top pour éviter le chevauchement -->
|
||||
<div v-if="showHtmlEditor" class="mt-16">
|
||||
<HTMLContentEditor />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user