We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cdb40d commit d7fdc18Copy full SHA for d7fdc18
src/components/Editor/Editor.js
@@ -46,6 +46,11 @@ class _Editor extends Component {
46
setTimeout(() => {
47
this.editor.refresh();
48
}, 0);
49
+
50
+ // Terrible hack to force Firefox into displaying the editor:
51
+ setTimeout(() => {
52
+ this.editor.refresh();
53
+ }, 250);
54
}
55
56
componentDidUpdate(prevProps, prevState) {
@@ -129,6 +134,7 @@ class _Editor extends Component {
129
134
130
135
let options = {
131
136
...this.props.options,
137
+ defaultValue: ' ',
132
138
mode: 'javascript',
133
139
viewportMargin : Infinity,
140
gutters : [GUTTER_ID,'CodeMirror-linenumbers'],
0 commit comments