summaryrefslogtreecommitdiff
path: root/src/www/syntax-editor/editor_menu.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/www/syntax-editor/editor_menu.js')
-rw-r--r--src/www/syntax-editor/editor_menu.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/www/syntax-editor/editor_menu.js b/src/www/syntax-editor/editor_menu.js
index 57000e551..83375d68d 100644
--- a/src/www/syntax-editor/editor_menu.js
+++ b/src/www/syntax-editor/editor_menu.js
@@ -28,9 +28,9 @@ function EditorMenu(editor,opts) {
multiple: "multiple",
class: "hidden"
}),
- // wrap_button: button("Wrap", function(){
- // t.editor.wrap();
- // }),
+ wrap_button: button("Wrap", function(){
+ t.editor.wrap_candidates();
+ }),
clear_button: button("Clear", function(){
t.editor.clear_node();
}),
@@ -72,6 +72,7 @@ function EditorMenu(editor,opts) {
}
}
appendChildren(t.container, [t.ui.clear_button]);
+ appendChildren(t.container, [t.ui.wrap_button]);
if (t.options.show.random_button) {
appendChildren(t.container, [t.ui.random_button]);
}