From 314052f8d3b380c9b1562aafdbaf4af445e7fd82 Mon Sep 17 00:00:00 2001 From: "john.j.camilleri" Date: Mon, 3 Dec 2012 14:02:47 +0000 Subject: Syntax editor: add wrap feature --- src/www/syntax-editor/editor_menu.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/www/syntax-editor/editor_menu.js') 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]); } -- cgit v1.2.3