summaryrefslogtreecommitdiff
path: root/src/www/syntax-editor/editor_online.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/www/syntax-editor/editor_online.js')
-rw-r--r--src/www/syntax-editor/editor_online.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/www/syntax-editor/editor_online.js b/src/www/syntax-editor/editor_online.js
index 3067346b7..913bec05a 100644
--- a/src/www/syntax-editor/editor_online.js
+++ b/src/www/syntax-editor/editor_online.js
@@ -39,14 +39,10 @@ if(window.Minibar) // Minibar loaded?
},
// get us back to the editor!
abstract_action: function(tree) {
- var editor_options = {
- target: "editor",
- initial: {
- grammar: editor.minibar.grammar_menu.value, // hmm
- startcat: editor.minibar.input.startcat_menu.value, // hmm
- abstr: tree
- }
+ var opts = {
+ abstr: tree
}
+ editor.initialize_from(opts);
editor.minibar.hide();
editor.show();
}