mirror of https://github.com/xwiki-labs/cryptpad
Fix special char dialog in pad
This commit is contained in:
parent
61a37fb919
commit
c01cd42da2
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue