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

196
Views
How to set initial data for CKEditor5?

I can't find a simple example on how to set initial data in CKEditor 5.

In some SO questions, it's said that we should use setData API. But those examples are AJAX based.

In CKEditor 4, I would simply set the value of the textarea and that was it.

In CKEditor 5, the HTML is not textarea but a simple <div>.

I tried to put the content inside the <div> and it did not work.

I also can't find an example in the docs.

So, how can I set initial data in CKEditor 5?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can provide the initialData field in your config object during initialization. Doc reference

about 4 years ago · Santiago Trujillo Report
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!