Skip to content

Commit

Permalink
Update tinymcebuilder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Feb 23, 2022
1 parent 579ce6f commit d34ef4d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions layouts/plugins/editors/tinymce/field/tinymcebuilder.php
Expand Up @@ -64,18 +64,15 @@
->registerScript('plg_editors_tinymce', 'plg_editors_tinymce/tinymce.min.js', [], ['defer' => true], ['core', 'tinymce'])
->registerAndUseStyle('tinymce.skin', 'media/vendor/tinymce/skins/ui/oxide/skin.min.css')
->registerAndUseStyle('plg_editors_tinymce.builder', 'plg_editors_tinymce/tinymce-builder.css', [], [], ['tinymce.skin', 'dragula'])
->registerScript('plg_editors_tinymce.builder', 'plg_editors_tinymce/tinymce-builder.js', [], ['type' => 'module'], ['dragula', 'plg_editors_tinymce'])
->registerScript('plg_editors_tinymce.builder', 'plg_editors_tinymce/tinymce-builder.js', [], ['type' => 'module'], ['dragula'])
->useScript('plg_editors_tinymce')
->useStyle('webcomponent.joomla-tab')
->useScript('webcomponent.joomla-tab');

// Add TinyMCE language file to translate the buttons
if ($languageFile)
{
$wa->registerAndUseScript('tinymce.language', $languageFile, [], ['defer' => true], ['plg_editors_tinymce.builder']);
}
else
{
$wa->useScript('plg_editors_tinymce.builder');
$wa->registerAndUseScript('tinymce.language', $languageFile, [], ['defer' => true], []);
}

// Add the builder options
Expand Down

0 comments on commit d34ef4d

Please sign in to comment.