How to initialize Editor component with a string? #3288
Unanswered
lucasdavidferrero
asked this question in
PrimeVue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm getting the initial value of the
Editor
component in a prop, like so:articuloWebEditado has a key "ar_descripcion_web" whose type is string.
When the Editor component mounts, it always starts with its body empty, ignoring the initial value of ar_descripcion_web.
Also, when you start writting text inside the editor the state
articuloWebEditado.ar_descripcion_web
actually gets updated. So, basically the component removes the initial state and I don't want that. I want that the editor's text initialize with the value ofarticuloWebEditado.ar_descripcion_web
. How to achieve this?Beta Was this translation helpful? Give feedback.
All reactions