Thanks for your help
I restored TinyMCE v6.8.4 from last save :
I restored the folder \plugins\editors\tinymce
All is OK again, but I don't know the cause of the problem ?
In Core file \plugins\editors\tinymce\src\PluginTraits\DisplayTrait.php
new lines exist and perhaps is my problem :
use Joomla\Component\Media\Administrator\Provider\ProviderManagerHelperTrait;
$uploadPath = $levelParams->get('path', '');
// Make sure the path is full, and contain the media adapter in it.
$mediaHelper = new class () {
use ProviderManagerHelperTrait;
public function prepareTinyMCEUploadPath(string $path): string
{
$result = $this->resolveAdapterAndPath($path);
return implode(':', $result);
}
};
Text::script('PLG_TINY_ERR_UNSUPPORTEDBROWSER');
Text::script('ERROR');
Text::script('PLG_TINY_DND_ADDITIONALDATA');
Text::script('PLG_TINY_DND_ALTTEXT');
Text::script('PLG_TINY_DND_LAZYLOADED');
Text::script('PLG_TINY_DND_EMPTY_ALT');
Text::script('PLG_TINY_DND_FILE_EXISTS_ERROR');
Text::script('PLG_TINY_DND_FILE_EXISTS_ERROR');
// Set default classes to empty
$linkClasses = [];
// Load the link classes list
if (isset($extraOptions->link_classes_list) && $extraOptions->link_classes_list) {
$linksClassesList = $extraOptions->link_classes_list;
if ($linksClassesList) {
$linkClasses = [['title' => TEXT::_('PLG_TINY_FIELD_LINK_CLASS_NONE'), 'value' => '']];
// Create an array for the link classes
foreach ($linksClassesList as $linksClassList) {
array_push($linkClasses, ['title' => $linksClassList->class_name, 'value' => $linksClassList->class_list]);
}
}
}
// Link classes
'link_class_list' => $linkClasses,
I restored TinyMCE v6.8.4 from last save :
I restored the folder \plugins\editors\tinymce
All is OK again, but I don't know the cause of the problem ?
In Core file \plugins\editors\tinymce\src\PluginTraits\DisplayTrait.php
new lines exist and perhaps is my problem :
use Joomla\Component\Media\Administrator\Provider\ProviderManagerHelperTrait;
$uploadPath = $levelParams->get('path', '');
// Make sure the path is full, and contain the media adapter in it.
$mediaHelper = new class () {
use ProviderManagerHelperTrait;
public function prepareTinyMCEUploadPath(string $path): string
{
$result = $this->resolveAdapterAndPath($path);
return implode(':', $result);
}
};
Text::script('PLG_TINY_ERR_UNSUPPORTEDBROWSER');
Text::script('ERROR');
Text::script('PLG_TINY_DND_ADDITIONALDATA');
Text::script('PLG_TINY_DND_ALTTEXT');
Text::script('PLG_TINY_DND_LAZYLOADED');
Text::script('PLG_TINY_DND_EMPTY_ALT');
Text::script('PLG_TINY_DND_FILE_EXISTS_ERROR');
Text::script('PLG_TINY_DND_FILE_EXISTS_ERROR');
// Set default classes to empty
$linkClasses = [];
// Load the link classes list
if (isset($extraOptions->link_classes_list) && $extraOptions->link_classes_list) {
$linksClassesList = $extraOptions->link_classes_list;
if ($linksClassesList) {
$linkClasses = [['title' => TEXT::_('PLG_TINY_FIELD_LINK_CLASS_NONE'), 'value' => '']];
// Create an array for the link classes
foreach ($linksClassesList as $linksClassList) {
array_push($linkClasses, ['title' => $linksClassList->class_name, 'value' => $linksClassList->class_list]);
}
}
}
// Link classes
'link_class_list' => $linkClasses,
Statistics: Posted by CCA63 — Wed Oct 23, 2024 5:07 am