nestor-qa / nestor

Nestor
http://nestor-qa.github.io
MIT License
3 stars 0 forks source link

Markdown editor blank until focus #98

Closed kinow closed 8 years ago

kinow commented 8 years ago

Probably the same as https://github.com/NextStepWebs/simplemde-markdown-editor/issues/313

kinow commented 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.

kinow commented 8 years ago

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.

kinow commented 8 years ago

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.

kinow commented 8 years ago

well, maybe a short blink the in the editor buttons... but good enough