From e419b2c18c246eb79c3261ba4255761724efd477 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 7 Apr 2016 11:34:38 +0200 Subject: some more autocompletion for bbcode tables - leave it open if we wanna use th or td though --- view/js/autocomplete.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'view') diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 8eb46d83d..91b779316 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -278,6 +278,9 @@ function listNewLineAutocomplete(id) { if(element === 'list' || element === 'ol' || element === 'ul') { return ['\[' + element + '\]' + '\n\[*\] ', '\n\[/' + element + '\]']; } + else if(element === 'table') { + return ['\[' + element + '\]' + '\n\[tr\]', '\[/tr\]\n\[/' + element + '\]']; + } else { return ['\[' + element + '\]', '\[/' + element + '\]']; } -- cgit v1.2.3