From c01cd42da2469869bca9487df1fbb4fdcd5d7732 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 26 Jun 2020 18:39:49 +0200 Subject: [PATCH] Fix special char dialog in pad --- www/pad/csp.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/pad/csp.js b/www/pad/csp.js index 242ff60db..7c1a2ac9e 100644 --- a/www/pad/csp.js +++ b/www/pad/csp.js @@ -1,6 +1,14 @@ define(['jquery'], function ($) { 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 var $a = $('.cke_toolbox_main').find('.cke_button, .cke_combo_button');