added version in url to avoid cache problems

This commit is contained in:
Diego Najar 2019-05-27 19:51:57 +02:00
parent 0d2c962da8
commit 1aed4d0666
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class pluginTinymce extends Plugin {
if (!in_array($GLOBALS['ADMIN_CONTROLLER'], $this->loadOnController)) {
return false;
}
return '<script src="'.$this->htmlPath().'tinymce/tinymce.min.js"></script>';
return '<script src="'.$this->htmlPath().'tinymce/tinymce.min.js?version='.$this->version().'"></script>';
}
public function adminBodyEnd()
@ -58,7 +58,7 @@ class pluginTinymce extends Plugin {
$toolbar1 = $this->getValue('toolbar1');
$toolbar2 = $this->getValue('toolbar2');
$content_css = $this->htmlPath().'css/tinymce.css';
$content_css = $this->htmlPath().'css/tinymce.css?version='.$this->version();
$plugins = $this->getValue('plugins');
$lang = 'en';