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

198
Visualizações
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 Respostas
Responde à pergunta

0

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

about 4 years ago · Santiago Trujillo Relatório
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