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);