improve code style
This commit is contained in:
@ -34,21 +34,21 @@ class InitInstanceCallback extends AbstractOption
|
||||
// https://github.com/tinymce/tinymce/issues/2271
|
||||
|
||||
$js = <<<JS
|
||||
function (editor) {
|
||||
editor.on('PostProcess', function (e) {
|
||||
e.content = e.content.replace(
|
||||
/(<!--mce:protected\s)(.*?)(-->)/gm,
|
||||
function(text, p1, p2, p3){
|
||||
if (unescape) {
|
||||
return unescape(p2);
|
||||
} else {
|
||||
return decodeURIComponent(p2);
|
||||
function (editor) {
|
||||
editor.on('PostProcess', function (e) {
|
||||
e.content = e.content.replace(
|
||||
/(<!--mce:protected\s)(.*?)(-->)/gm,
|
||||
function(text, p1, p2, p3){
|
||||
if (unescape) {
|
||||
return unescape(p2);
|
||||
} else {
|
||||
return decodeURIComponent(p2);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
JS;
|
||||
);
|
||||
});
|
||||
}
|
||||
JS;
|
||||
|
||||
return (oxNew(Utils::class))->minifyJS($js);
|
||||
}
|
||||
|
Reference in New Issue
Block a user