editor.setData() doesn't visually show the updated data in Source mode editor #15957
Labels
domain:v4-compatibility
This issue reports a CKEditor 4 feature/option that's missing in CKEditor 5.
package:source-editing
type:improvement
This issue reports a possible enhancement of an existing feature.
📝 Provide detailed reproduction steps (if any)
editor.setData('<p>Data in Source mode</p>')
editor.getData()
gives the updated data.This is resulting into inconsistency. Data seen on editor is different that what is actually present.
setData()
does reflect the updated data on editor immediately.✔️ Expected result
setData()
should reflect the updated data visually also in thesource
mode immediately and should be consistent with data fetched bygetData()
.❌ Actual result
editor.getData()
has the updated data but source mode visually doesn't show the updated data.❓ Possible solution
Workaround:
Do
setData()
in sourceMode, toggle to design mode and come back to source mode to visually see the updated data.📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: