Unverified Commit ca9795d5 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

fix xblock

parent 3f941b84
......@@ -122747,9 +122747,8 @@ function GraphEditorXBlock(runtime, element, data) {
var editorUi = new EditorUi(
new Editor(read_only, themes), editorDiv);
editorUi.saveUrl = runtime.handlerUrl(element, 'save_xml');
// Base 64 decode to unicode string
if (data.xml != '') {
setGraphXml(editorUi, Base64.decode(data.xml));
setGraphXml(editorUi, data.xml);
}
if (read_only) {
editorUi.editor.graph.setEnabled(false);
......@@ -31,9 +31,8 @@ function GraphEditorXBlock(runtime, element, data) {
var editorUi = new EditorUi(
new Editor(read_only, themes), editorDiv);
editorUi.saveUrl = runtime.handlerUrl(element, 'save_xml');
// Base 64 decode to unicode string
if (data.xml != '') {
setGraphXml(editorUi, Base64.decode(data.xml));
setGraphXml(editorUi, data.xml);
}
if (read_only) {
editorUi.editor.graph.setEnabled(false);
......
docker==4.2.0
Paver==1.3.4
requests==2.23.0
closure==20191111
libsass==0.20.0
docker==4.3.1
libsass==0.20.1
Paver==1.3.4
requests==2.24.0
XBlock==1.4.0
xblock-sdk==0.2.2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment