Skip to content

Commit 47e31c5

Browse files
authored
[6.0] Updating TinyMCE to 8.0.1 (#45844)
* Updating TinyMCE to 8.0.1 * Adding language strings * Switching to official translation files * Minify translation files
1 parent 1c30e1b commit 47e31c5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+66
-14604
lines changed

administrator/language/en-GB/plg_editors_tinymce.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ PLG_TINY_FIELD_PROHIBITED_LABEL="Prohibited Elements"
6363
PLG_TINY_FIELD_RESIZE_HORIZONTAL_LABEL="Horizontal Resizing"
6464
PLG_TINY_FIELD_RESIZING_LABEL="Resizing"
6565
PLG_TINY_FIELD_SANDBOX_IFRAMES_DESC="This is a security feature that restricts what the iframe can do by setting a sandbox attribute for each iframe. It is recommended to enable this feature for security reasons. Only disable if the iframe is not loading and you're sure that the iframed content is safe."
66+
PLG_TINY_FIELD_SANDBOX_IFRAMES_EXCLUSIONS_LIST_DESC="Additional domain names can be added to be excluded from iframe sandboxing. The current domain and this list of common domains are excluded by default. 'youtube.com', 'youtu.be', 'vimeo.com', 'player.vimeo.com', 'dailymotion.com', 'embed.music.apple.com', 'open.spotify.com', 'giphy.com', 'dai.ly', 'codepen.io'."
67+
PLG_TINY_FIELD_SANDBOX_IFRAMES_EXCLUSIONS_LIST_LABEL="Sandbox Iframe Exclusions List"
68+
PLG_TINY_FIELD_SANDBOX_IFRAMES_EXCLUSION_DOMAIN_LABEL="Domain Name"
6669
PLG_TINY_FIELD_SANDBOX_IFRAMES_LABEL="Sandbox Iframes"
6770
PLG_TINY_FIELD_SETACCESS_LABEL="Assign this Set to"
6871
PLG_TINY_FIELD_SKIN_ADMIN_DARK_LABEL="Administrator Skin (Dark Mode)"

build/build-modules-js/init/exemptions/tinymce.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ export const tinyMCE = async (packageName, version) => {
5858

5959
await copyArrayFiles('', ['tinymce.js', 'tinymce.min.js', 'changelog.txt', 'license.txt'], 'tinymce', '');
6060

61+
// Copy translation files
62+
const promises = [];
63+
const majorVersion = version.split('.')[0];
64+
if (existsSync(join(RootPath, `node_modules/tinymce-i18n/langs${majorVersion}`))) {
65+
promises.push(copy(join(RootPath, `node_modules/tinymce-i18n/langs${majorVersion}`), join(RootPath, `media/vendor/${packageName.replace(/.+\//, '')}/langs`), { preserveTimestamps: true }));
66+
}
67+
await Promise.all(promises);
68+
6169
// Update the XML file for tinyMCE
6270
let tinyXml = await readFile(`${RootPath}/plugins/editors/tinymce/tinymce.xml`, { encoding: 'utf8' });
6371
tinyXml = tinyXml.replace(xmlVersionStr, `$1${version}$3`);

build/build-modules-js/init/minify-vendor.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const folders = [
1313
'media/vendor/diff/js',
1414
'media/vendor/es-module-shims/js',
1515
'media/vendor/qrcode/js',
16+
'media/vendor/tinymce/langs',
1617
'media/vendor/webcomponentsjs/js',
1718
];
1819

build/media_source/vendor/tinymce/langs/af.es5.js

Lines changed: 0 additions & 230 deletions
This file was deleted.

0 commit comments

Comments
 (0)