Closed kinow closed 8 years ago
Hmm, from the looks of it, it seems more like CodeMirror is blank, not SimpleMDE. Even toggling full screen in JS won't change anything.
Also, projects view works fine. While test suite doesn't. Even after making the code of the two of them very similar.
Learned about the refresh method at http://stackoverflow.com/questions/10575833/codemirror-has-content-but-wont-display-until-keypress
Does the trick, but you can shortly see the editor blinking.
All right. So the value needs to be set in the JS code, not in the HTML template. Then after the value has been set, you call refresh (with a setTimeout).
You get the value displayed once, without screen blinks/refresh's, and that's it.
well, maybe a short blink the in the editor buttons... but good enough
Probably the same as https://github.com/NextStepWebs/simplemde-markdown-editor/issues/313