Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!