Empty config.initialData
is overwritten with data from DOM
#8974
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
package:editor-balloon
package:editor-classic
package:editor-decoupled
package:editor-inline
squad:collaboration
Issue to be handled by the Collaboration team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
To reproduce the error you need DOM element with some data and then create an editor on that DOM element and use
initialData: ''
in config.In such configuration, I'd expect that the editor will be empty, but it actually is inited with the data from the DOM. That's because this code:
Which is incorrect. This code treats empty and unset initial data the same way.
The text was updated successfully, but these errors were encountered: