autocomplete: add [embed] tag to tag autocomplete and to docu docs
This commit is contained in:
parent
e20e64390b
commit
7a9a1b3722
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue