protected function copyCustomPlugins()
{
if ($plugins = $this->getCustomPluginPath()) {
$basepath = $this->getPage()->getClientScript()->getPradoScriptAssetPath('tinymce');
$assets = $this->getApplication()->getAssetManager();
$path = is_dir($plugins) ? $plugins : Prado::getPathOfNameSpace($plugins);
$name = basename($path);
$dest = $basepath . '/plugins/' . $name;
if (!is_dir($dest) || $this->getApplication()->getMode() !== TApplicationMode::Performance) {
$assets->copyDirectory($path, $dest);
}
}
}