code: function( url, html )
              {
                  url = $.trim(url||'');
                  html = $.trim(html||'');
                  var website_url = false;
                  if( url.length && ! html.length )
                      website_url = url;
                  else if( html.indexOf('<') == -1 && html.indexOf('>') == -1 &&
                           html.match(/^(?:https?:\/)?\/?(?:[^:\/\s]+)(?:(?:\/\w+)*\/)(?:[\w\-\.]+[^#?\s]+)(?:.*)?(?:#[\w\-]+)?$/) )
                      website_url = html;
                  if( website_url && video_from_url )
                      html = video_from_url( website_url ) || '';
                  if( ! html.length && website_url )
                      html = '<video src="' + html_encode(website_url) + '">';
                  wysiwygeditor.insertHTML( html ).closePopup().collapseSelection();
              }
docs: Add video to editor