(function (factory) { /* global define */ if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { // Node/CommonJS module.exports = factory(require('jquery')); } else { // Browser globals: jQuery factory(window.jQuery); } }(function ($) { $.extend($.summernote.plugins, { 'ts_video': function (context) { var self = this; var ui = $.summernote.ui; var $editor = context.layoutInfo.editor; var options = context.options; var lang = options.langInfo; context.memo('button.ts_video', function () { var button = ui.button({ contents: '', tooltip: 'ts_video', click: function () { self.show() } }); // create jQuery object from button instance. var $highlight = button.render(); return $highlight; }); this.createDialog = function () { var $box = $('
'); var $frame = $('