aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Allow replacing editor content in editing mode #376

Closed aroberge closed 6 years ago

aroberge commented 6 years ago

By default, the Code Editor content is not replaced when a world (json file) with content saved in the editor is loaded. This default should be changed when we are in editing mode, to allow world creators to more easily create worlds - in particular, when creating menus with content in the onload editor. When a world creator wants to edit such a json file, she can edit it locally (with a file editor) to replace "onload" by "editor", load it in Reeborg's World, make changes as desired, and save it with the revised content in the Code Editor. Then, using a file editor, change the string "editor" by "onload".