When loading a game page, editor code is set but it is cleared right after with getEditor().clearSelection();. This isnt called when theme is updated and editor code is updated (chapter 1 task 1 for instance)
Here is when a page is first loaded:
ui.js function createGamePage()
window.addEventListener('load', function () {
setEditorCode()
getEditor().clearSelection();
createTaskButtons();
});
When loading a game page, editor code is set but it is cleared right after with getEditor().clearSelection();. This isnt called when theme is updated and editor code is updated (chapter 1 task 1 for instance)
Here is when a page is first loaded: ui.js function createGamePage() window.addEventListener('load', function () { setEditorCode() getEditor().clearSelection(); createTaskButtons(); });