summaryrefslogtreecommitdiff
path: root/src/www/syntax-editor/editor_menu.js
diff options
context:
space:
mode:
authorjohn.j.camilleri <john.j.camilleri@chalmers.se>2012-12-03 14:02:47 +0000
committerjohn.j.camilleri <john.j.camilleri@chalmers.se>2012-12-03 14:02:47 +0000
commit314052f8d3b380c9b1562aafdbaf4af445e7fd82 (patch)
treeaf8d1daa4a4d31e4b1c5bccaed6dbbb89ed2c701 /src/www/syntax-editor/editor_menu.js
parente174f37940d4c9480d83e57bf7bf453dd2b3c9de (diff)
Syntax editor: add wrap feature
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]);
}