This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
ToDos
Full documentation for future changes
Usage
Users can copy openRoberta program links to add a block to Edtr.
openRoberta data format
The openRoberta links contain an XML rendering of the created program.
Future changes to openRoberta for storing student data in Edtr.io
OpenRoberta does currently not support any output via window.postMessage to enable the storage of edited programs. This could be resolved with a few changes in the openRoberta code. Preparations for such a feature are commented out in this plugin.
See below:
Um aus dem eingebetteten iFrame von openRoberta im Edtr Daten erhalten zu können, muss openRoberta um eine Schnittstelle erweitert werden, die auf window.postMessage()-Nachrichten reagiert.
Der Code zu openRoberta findet sich in folgendem Repository:
https://github.com/OpenRoberta/openroberta-lab
Und kann nach der dort gegebenen Anleitung installiert werden.
An diesem Repository muss die Datei
ca. in Zeile 365 um folgende Funktionen erweitert werden:
Funktionsweise der Datenübertragung an das Plugin
Das Plugin sendet im Intervall von 5 Sekunden (bei Bedarf anpassen) eine Nachricht "getLink" an den iFrame. im iFrame erzeugt openRoberta den entsprechenden Link und sendet ein JSON-Paket in folgendem Format zurück:
Dieses wird erkannt und entsprechend der State der Plugin-Instanz aktualisiert.
An dieser Stelle muss die Datenverarbeitung an das kommende Backend angepasst werden.