aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-07 11:34:38 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-07 11:34:38 +0200
commite419b2c18c246eb79c3261ba4255761724efd477 (patch)
tree08253bfdaf8c83c7180a9e552f9f9792b215e66b
parent58324473a98db0d9f792c733c157daed5f1c5130 (diff)
downloadvolse-hubzilla-e419b2c18c246eb79c3261ba4255761724efd477.tar.gz
volse-hubzilla-e419b2c18c246eb79c3261ba4255761724efd477.tar.bz2
volse-hubzilla-e419b2c18c246eb79c3261ba4255761724efd477.zip
some more autocompletion for bbcode tables - leave it open if we wanna use th or td though
-rw-r--r--view/js/autocomplete.js3
1 files changed, 3 insertions, 0 deletions
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 + '\]'];
}