From 7a9a1b37221cda0c17ca73af52c6093843eecca5 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 2 Dec 2016 19:39:35 +0100 Subject: [PATCH] autocomplete: add [embed] tag to tag autocomplete and to docu docs --- doc/BBCode.md | 4 ++++ js/autocomplete.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/BBCode.md b/doc/BBCode.md index 6a8c5ebdf..50fb406b0 100644 --- a/doc/BBCode.md +++ b/doc/BBCode.md @@ -473,6 +473,10 @@ You can embed video, audio and more in a message. [vimeo]Vimeo video ID[/vimeo] Vimeo player iframe embed. + + [embed]URL[/embed] + Embed OEmbed rich content. + [iframe]URL[/iframe] General embed, iframe size is limited by the theme size for video players. diff --git a/js/autocomplete.js b/js/autocomplete.js index d0c770cc4..601544eaa 100644 --- a/js/autocomplete.js +++ b/js/autocomplete.js @@ -296,7 +296,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', '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_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'img', 'url', 'audio', 'video', 'embed', '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);