diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-01 15:06:39 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-01 15:06:39 +0100 |
commit | de503bf5c499007ca5d2a7c926f942fbf27d55f4 (patch) | |
tree | 158ff414e021cd01edd83f1f6c6a3beef6e6b489 /view/js | |
parent | c94fbe5eeb5b2a9b128b10a14e9757aa0b605f41 (diff) | |
download | volse-hubzilla-de503bf5c499007ca5d2a7c926f942fbf27d55f4.tar.gz volse-hubzilla-de503bf5c499007ca5d2a7c926f942fbf27d55f4.tar.bz2 volse-hubzilla-de503bf5c499007ca5d2a7c926f942fbf27d55f4.zip |
use highlight in ac-list for hl bbcode
Diffstat (limited to 'view/js')
-rw-r--r-- | view/js/autocomplete.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 905c7ca28..62fc37420 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -164,6 +164,7 @@ function string2bb(element) { else if(element == 'strike') return 's'; else if(element == 'superscript') return 'sup'; else if(element == 'subscript') return 'sub'; + else if(element == 'highlight') return 'hl'; else return element; } @@ -269,7 +270,7 @@ function string2bb(element) { $.fn.bbco_autocomplete = function(type) { if(type=='bbcode') { - var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'superscript', 'subscript', 'quote', 'code', 'open', 'spoiler', 'map', 'nobb', 'list', 'checklist', 'ul', 'ol', 'dl', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'zrl', 'zmg', 'rpost', 'qr', 'observer', 'embed', 'hl']; + var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'superscript', 'subscript', 'quote', 'code', 'open', 'spoiler', 'map', 'nobb', 'list', 'checklist', 'ul', 'ol', 'dl', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'zrl', 'zmg', 'rpost', 'qr', 'observer', 'embed', 'highlight']; var open_elements = ['observer.baseurl', 'observer.address', 'observer.photo', 'observer.name', 'observer.webname', 'observer.url', '*', 'hr', ]; var elements = open_close_elements.concat(open_elements); |