Fix context menu csp in pads

pull/1/head
yflory 5 years ago
parent 1dfe8325dc
commit 77177921c2

@ -77,10 +77,11 @@ define(['jquery'], function ($) {
if (that.onLoad) {
that.onLoad();
}
}).contents().find('body').on('click dragstart', '.cke_button, a.cke_colormore, a.cke_colorbox, .cke_colorauto, .cke_combo_button, .cke_panel_listItem a', function (e) {
}).contents().find('body').on('click dragstart mouseover mouseout', '.cke_button, a.cke_colormore, a.cke_colorbox, .cke_colorauto, .cke_combo_button, .cke_panel_listItem a, a.cke_menubutton', function (e) {
e.preventDefault();
if (e.type === 'dragstart') { return false; }
var attr = $(e.currentTarget).attr('onclick');
var attr = $(e.currentTarget).attr('on'+e.type);
if (!attr) { return; }
var reg = /CKEDITOR.tools.callFunction\(([0-9]+),'?([A-Za-z0-9 ?]+)'?(,'([A-Za-z0-9 ]+)')?\);/;
var match = attr.match(reg);
if (!match) { return; }

Loading…
Cancel
Save