diff --git a/layouts/plugins/editors/tinymce/field/tinymcebuilder.php b/layouts/plugins/editors/tinymce/field/tinymcebuilder.php index eaedcdbac0c43..8a2aec52bacf9 100644 --- a/layouts/plugins/editors/tinymce/field/tinymcebuilder.php +++ b/layouts/plugins/editors/tinymce/field/tinymcebuilder.php @@ -68,9 +68,10 @@ ->useStyle('webcomponent.joomla-tab') ->useScript('webcomponent.joomla-tab'); -// Add TinyMCE language file to translate the buttons +// Add TinyMCE language file to translate the buttons. +// It has to run after the builder script, which replaces the global tinymce object with its own stub. if ($languageFile) { - $wa->registerAndUseScript('tinymce.language', $languageFile, [], ['defer' => true], []); + $wa->registerAndUseScript('tinymce.language', $languageFile, [], ['defer' => true], ['plg_editors_tinymce.builder']); } // Add the builder options