Hi,
I'm using a rich text editor component inside a form. I set the value in the success event of a query api resource. When I want to submit the form I get a different value in the submit event for the rich text editor value then the state value of the component? The returned value is some kind of default value.
Is this a bug?
Hey @Robby_Ceyssens!
This actually looks very similar to the bug mentioned in this thread which we've had some trouble reproducing
Do you notice the same issue if you reference the rich text editor's value before submitting the form?
Also, are you seeing this behavior consistently? If we could step into your app and take similar steps to reproduce the behavior that would be great!
Hi,
In my app it happens almost every time. I added an onfocus event with a simple console.log of the value on the rich editor component and the value is still wrong.
In the state view the value is correct. In my opinion there is something wrong with getting the value of the rich editor component.
I'm also setting the value of the rich editor component depending on the selected row in the overview table similar to the users in the other topic.
You can look into our app "Tuinklussen" to reproduce the issue.
Thanks for that @Robby_Ceyssens! That helps a lot for recreating the issue. We can let you know here when it's fixed - in the meantime can you try using setValue
on a temporary state instead of the Rich Text Editor itself and then pass {{ yourTempState.value }}
as the "Default value" for the component:

Let me know if that works!
Thanks for the workaround. Using the temp state seems to work.
I also noticed now I used the value currentRow.text to get the selected value in my table. For the temp state workaround I needed to use selectedRow.text because currentRow.text didn't have the correct value. Maybe this is related to the bug?
Ah, that is also something on the dev team's radar. It may be related but some of the other reports for the bug you originally reported weren't referencing currentRow
so it seems as though the scope is a bit broader as well.
Thanks for surfacing it either way! I'll report back on both bugs here 
Hi, any update on these bugs?
Hi @Robby_Ceyssens, no updates just yet, sorry 
Hi,
We just started to use a few more apps with the rich text editor but the workaround using the temp state value is still causing very regular errors. A lot of times no content at all is showing in the rich text editor so this is not usable at this time for us.
You can reproduce the error in this app: Partnerberichten - copy
When you search for the id "18768" and select the row, the value of the field "NewsitemDescription" (Beschrijving) is not displayed although it based on a temp state value.
This problem is very urgent for us as the rich text editor is not usable at the moment and is causing unpredictable results and data errors.