Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

146
Visualizações
Froala Instance not working on edit mode of my vueJS3 application

I have a crud page, it is only a one file that works for both editing existing content and creating a new one, I am using froala editor on product description. I did the config of the froala, and it works fine when i try to create a new product but it is not working on the editing side also not throwing any error. Here is what i did:

I am using Vue3 for the project, Firstly i defined and imported froala,

data() {
return {
  product: undefined as Product<Populated>,
  froala: {
    instance: null as FroalaTypes.FroalaEditor,
    config: froala.baseConfig
  }
}

},

Then i did the config on mounted hook

mounted() {
   this.froala.instance = FroalaEditor(
     '.froala-editor',
     froala.extendBase({
       events: {
         contentChanged: () => {
           this.product.description = this.froala.instance.html.get()
           this.$forceUpdate()
         }
       }
     })
   )
 },
 unmounted() {
   froala.destroyAllInstances()
 },

When i print out this.froala.instance on console, it prints an empty array But all works fine on create mode What is the problem with this?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda