mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
FIx 'default' values in rich text dropdown menus
This commit is contained in:
parent
3ff6a1a11c
commit
5031ed79f4
@ -97,7 +97,7 @@ define(['jquery'], function ($) {
|
||||
if (e.type === 'dragstart') { return false; }
|
||||
var attr = $(e.currentTarget).attr('oon'+e.type);
|
||||
if (!attr) { return; }
|
||||
var reg = /CKEDITOR.tools.callFunction\(([0-9]+),'?([A-Za-z0-9 ?]+)'?(,'([A-Za-z0-9 ]+)')?\);/;
|
||||
var reg = /CKEDITOR.tools.callFunction\(([0-9]+),'?([^'"]+)'?(,'([A-Za-z0-9 ]+)')?\);/;
|
||||
var match = attr.match(reg);
|
||||
if (!match) { return; }
|
||||
var f = match[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user