Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Froala text editor not working


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??


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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>


Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(