mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Only load existing languages in custom TinyMCE plugins to avoid the tinymce_gzip.php logic stalling (fixes #7035)
This commit is contained in:
parent
73a466c927
commit
03a8aa546e
@ -1,5 +1,12 @@
|
||||
(function() {
|
||||
|
||||
// TinyMCE will stop loading if it encounters non-existent external script file
|
||||
// when included through tiny_mce_gzip.php. Only load the external lang package if it is available.
|
||||
var availableLangs = ['en', 'de'];
|
||||
if(jQuery.inArray(tinymce.settings.language, availableLangs) != -1) {
|
||||
tinymce.PluginManager.requireLangPack("ssbuttons");
|
||||
}
|
||||
|
||||
var each = tinymce.each;
|
||||
|
||||
tinymce.create('tinymce.plugins.SSButtons', {
|
||||
|
Loading…
Reference in New Issue
Block a user