Hi,
I use metronic with Vite.
I'm trying to use the Froala editor. However, I can't get it to work; I'm following the instructions, but it's not working. Here's the link I'm following: https://froala.com/wysiwyg-editor/docs/framework-plugins/vue-js-3/. What should I fix??
Hi,
Thank you for reaching out to us.
If you install and use the plugin correctly it should work in the latest Metronic version.
Do you get any error in your browser console?
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi,
I'm trying to configure metronic + vite.js + froala.
Can you show me an example configuration of metronic + vite.js + any external plugin ?
Hi,
If you are still getting any errors you can try to use an alternative text editor solution.
Our Metronic Vue demos with Vue-TinyMCE editor. Here is an example of how you can use it in your Vue component:
<template>
<Editor
apiKey="ktu1mpe12zfnohqoq3fm63rfq917q3euky0e3x7ch15q7ql1"
initialValue="<p>Initial editor content</p>"
:init="{
height: 500,
menubar: false,
plugins: [
`advlist autolink lists link image charmap`,
`searchreplace visualblocks code fullscreen`,
`print preview anchor insertdatetime media`,
`paste code help wordcount table`,
],
toolbar:
`undo redo | formatselect | bold italic | \
alignleft aligncenter alignright | \
bullist numlist outdent indent | help`,
}"
/>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import Editor from "@tinymce/tinymce-vue";
export default defineComponent({
name: "editors-tinymce",
components: {
Editor,
},
});
</script>