opentiny 6.9.3 → 6.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tinymce.js +0 -14
- package/tinymce.min.js +1 -1
package/package.json
CHANGED
package/tinymce.js
CHANGED
|
@@ -7725,8 +7725,6 @@
|
|
|
7725
7725
|
const shouldSandboxIframes = option('sandbox_iframes');
|
|
7726
7726
|
const getSandboxIframesExclusions = editor => editor.options.get('sandbox_iframes_exclusions');
|
|
7727
7727
|
const shouldConvertUnsafeEmbeds = option('convert_unsafe_embeds');
|
|
7728
|
-
const getLicenseKey = option('license_key');
|
|
7729
|
-
const getApiKey = option('api_key');
|
|
7730
7728
|
|
|
7731
7729
|
const isElement$3 = isElement$6;
|
|
7732
7730
|
const isText$5 = isText$b;
|
|
@@ -28573,17 +28571,6 @@
|
|
|
28573
28571
|
};
|
|
28574
28572
|
};
|
|
28575
28573
|
|
|
28576
|
-
const isGplKey = key => key.toLowerCase() === 'gpl';
|
|
28577
|
-
const isValidGeneratedKey = key => key.length >= 64 && key.length <= 255;
|
|
28578
|
-
const validateLicenseKey = key => isGplKey(key) || isValidGeneratedKey(key) ? 'VALID' : 'INVALID';
|
|
28579
|
-
const validateEditorLicenseKey = editor => {
|
|
28580
|
-
const licenseKey = getLicenseKey(editor);
|
|
28581
|
-
const hasApiKey = isString(getApiKey(editor));
|
|
28582
|
-
if (!hasApiKey && (isUndefined(licenseKey) || validateLicenseKey(licenseKey) === 'INVALID')) {
|
|
28583
|
-
console.warn('You are running TinyMCE in evaluation mode. Provide a valid license key or specify the license to \'GPL\' to agree to the open source license terms. https://www.tiny.cloud/');
|
|
28584
|
-
}
|
|
28585
|
-
};
|
|
28586
|
-
|
|
28587
28574
|
const DOM$6 = DOMUtils.DOM;
|
|
28588
28575
|
const appendStyle = (editor, text) => {
|
|
28589
28576
|
const body = SugarElement.fromDom(editor.getBody());
|
|
@@ -28935,7 +28922,6 @@
|
|
|
28935
28922
|
setup$7(editor);
|
|
28936
28923
|
const setupRtcThunk = setup$t(editor);
|
|
28937
28924
|
preInit(editor);
|
|
28938
|
-
validateEditorLicenseKey(editor);
|
|
28939
28925
|
setupRtcThunk.fold(() => {
|
|
28940
28926
|
const cancelProgress = startProgress(editor);
|
|
28941
28927
|
loadContentCss(editor).then(() => {
|