CodeMirror Showed My HTML. The Published Post Was Empty.
DEV Community
CodeMirror Showed My HTML. The Published Post Was Empty.
A script filled a blog editor's CodeMirror with setValue(), confirmed the fill by reading the same CodeMirror value back, and two posts went public with a title and a 0-byte body. The editor's onChange ignored setValue changes, so the Redux store the publish payload is built from stayed empty.
0 comments
No comments yet.