Skip to content

Online code editor module for Edrys (use for Remote Labs)

Notifications You must be signed in to change notification settings

Cross-Lab-Project/edrys_module-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edrys Editor Module

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.

Usage

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.

Multiple files

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"
}

About

Online code editor module for Edrys (use for Remote Labs)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Other 0.6%