mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix rich text color selection in safari
https://github.com/cryptpad/cryptpad/issues/1136
This commit is contained in:
parent
9315e411aa
commit
3f9814d239
@ -34,7 +34,7 @@ define(['jquery'], function ($) {
|
||||
var attr = $(el).attr('oon'+e.type);
|
||||
if (!attr) { return; }
|
||||
if (['blur', 'dragstart'].indexOf(e.type) !== -1) { return false; }
|
||||
var reg = /CKEDITOR.tools.callFunction\(([0-9]+),(this|event)\);return false;/;
|
||||
var reg = /CKEDITOR.tools.callFunction\(([0-9]+),(this|event)\);.*/;
|
||||
var m = attr.match(reg);
|
||||
if (!m) { return; }
|
||||
var f = m[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user