This fork of Edrys Module-Code provides a simplified version, a general editor module that can be connected via the Edrys promiscuous pub-sub feature to different external modules and thus be used for different purposes.
Use this URL to add the module to your class:
https://cross-lab-project.github.io/edrys_module-editor/index.html
You may optionally specify any of the following module config, the runCommand is the only setting that is required:
{"editorText": "Starting text in editor...","runCommand": "execute","language": "cpp","theme": "light"}runCommand defines the subject under which the current editor-input will be published.
Other modules such as the edrys_module-pyxtermjs can be configured to listen to this specific subject and execute some action when they receive this event.
It is also possible to define multiple files like this.
{"file": {"main.cpp": "Hello world...","main.h": "another file another day"},"runCommand": "execute","language": "cpp","theme": "light"}