Skip to content

Commit 02410fd

Browse files
committed
Editor: add setValue DEFAULT and autorun
1 parent 2613f82 commit 02410fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

editor/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@
172172
'Backspace': cm => cm.execCommand('delCharBefore'),
173173
},
174174
});
175+
editor.setValue(DEFAULT);
176+
editor.setSize('100%', '100%');
177+
window.addEventListener('load', () => { setTimeout(runSketch, 500); });
178+
175179

176180

177181

0 commit comments

Comments
 (0)