From 1af274877d2fb5cf9d3d37d7e7f547e5ca2712f3 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 17 Apr 2016 11:54:49 +0200 Subject: [PATCH 1/2] More elements for the autocompletion --- js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/autocomplete.js b/js/autocomplete.js index dfe0bb3209..add29ad7e5 100644 --- a/js/autocomplete.js +++ b/js/autocomplete.js @@ -281,7 +281,7 @@ function string2bb(element) { $.fn.bbco_autocomplete = function(type) { if(type=='bbcode') { - var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'nobb', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size']; + var open_close_elements = ['abstract','bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'nobb', 'noparse', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'url', 'video', 'audio', 'youtube', 'vimeo', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size']; var open_elements = ['*', 'hr']; var elements = open_close_elements.concat(open_elements); From d5bfbeab6e57e7edc32923ecc0f2006e8c945f1c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 17 Apr 2016 14:10:43 +0200 Subject: [PATCH 2/2] Some rearrangements --- js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/autocomplete.js b/js/autocomplete.js index add29ad7e5..931085fd2b 100644 --- a/js/autocomplete.js +++ b/js/autocomplete.js @@ -281,7 +281,7 @@ function string2bb(element) { $.fn.bbco_autocomplete = function(type) { if(type=='bbcode') { - var open_close_elements = ['abstract','bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'nobb', 'noparse', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'url', 'video', 'audio', 'youtube', 'vimeo', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size']; + var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'img', 'url', 'audio', 'video', 'youtube', 'vimeo', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'nobb', 'noparse', 'pre', 'abstract']; var open_elements = ['*', 'hr']; var elements = open_close_elements.concat(open_elements);