vendor/assets/javascripts/summernote/plugin/summernote-ext-video.js in summernote-rails-0.6.7.0 vs vendor/assets/javascripts/summernote/plugin/summernote-ext-video.js in summernote-rails-0.6.9.0
- old
+ new
@@ -38,11 +38,11 @@
var vimMatch = url.match(vimRegExp);
var dmRegExp = /.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/;
var dmMatch = url.match(dmRegExp);
- var youkuRegExp = /\/\/v\.youku\.com\/v_show\/id_(\w+)\.html/;
+ var youkuRegExp = /\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/;
var youkuMatch = url.match(youkuRegExp);
var mp4RegExp = /^.+.(mp4|m4v)$/;
var mp4Match = url.match(mp4RegExp);
@@ -202,11 +202,11 @@
/**
* @property {Object} buttons
* @property {function(object): string} buttons.video
*/
buttons: {
- video: function (lang) {
- return tmpl.iconButton('fa fa-youtube-play', {
+ video: function (lang, options) {
+ return tmpl.iconButton(options.iconPrefix + 'youtube-play', {
event: 'showVideoDialog',
title: lang.video.video,
hide: true
});
}