autocomplete: add [embed] tag to tag autocomplete and to docu docs

This commit is contained in:
rabuzarus 2016-12-02 19:39:35 +01:00
parent e20e64390b
commit 7a9a1b3722
2 changed files with 5 additions and 1 deletions

View file

@ -473,6 +473,10 @@ You can embed video, audio and more in a message.
<td>[vimeo]Vimeo video ID[/vimeo]</td> <td>[vimeo]Vimeo video ID[/vimeo]</td>
<td>Vimeo player iframe embed.</td> <td>Vimeo player iframe embed.</td>
</tr> </tr>
<tr>
<td>[embed]URL[/embed]</td>
<td>Embed OEmbed rich content.</td>
</tr>
<tr> <tr>
<td>[iframe]URL[/iframe]</td> <td>[iframe]URL[/iframe]</td>
<td>General embed, iframe size is limited by the theme size for video players.</td> <td>General embed, iframe size is limited by the theme size for video players.</td>

View file

@ -296,7 +296,7 @@ function string2bb(element) {
$.fn.bbco_autocomplete = function(type) { $.fn.bbco_autocomplete = function(type) {
if(type=='bbcode') { 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 open_elements = ['*', 'hr'];
var elements = open_close_elements.concat(open_elements); var elements = open_close_elements.concat(open_elements);