Fix special char dialog in pad

pull/1/head
yflory 5 years ago
parent 61a37fb919
commit c01cd42da2

@ -1,6 +1,14 @@
define(['jquery'], function ($) { define(['jquery'], function ($) {
var CKEDITOR = window.CKEDITOR; var CKEDITOR = window.CKEDITOR;
$('body').on('click', '.cke_dialog_container a.cke_specialchar', function (e) {
var attr = $(e.currentTarget).attr('onclick');
if (!attr) { return; }
var reg = /CKEDITOR.tools.callFunction\(([0-9]+), this\);/;
var m = attr.match(reg);
if (!m) { return; }
CKEDITOR.tools.callFunction(Number(m[1]), e.currentTarget);
});
// Buttons // Buttons
var $a = $('.cke_toolbox_main').find('.cke_button, .cke_combo_button'); var $a = $('.cke_toolbox_main').find('.cke_button, .cke_combo_button');

Loading…
Cancel
Save