Suffix for prevent cache in TinyMCE

This commit is contained in:
Diego Najar 2019-05-28 20:39:37 +02:00
parent cbb8c0653e
commit ce3d52736f
1 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,9 @@ class pluginTinymce extends Plugin {
$toolbar1 = $this->getValue('toolbar1'); $toolbar1 = $this->getValue('toolbar1');
$toolbar2 = $this->getValue('toolbar2'); $toolbar2 = $this->getValue('toolbar2');
$content_css = $this->htmlPath().'css/tinymce.css?version='.$this->version(); $content_css = $this->htmlPath().'css/tinymce.css';
$plugins = $this->getValue('plugins'); $plugins = $this->getValue('plugins');
$version = $this->version();
$lang = 'en'; $lang = 'en';
if (file_exists($this->phpPath().'tinymce'.DS.'langs'.DS.$L->currentLanguage().'.js')) { if (file_exists($this->phpPath().'tinymce'.DS.'langs'.DS.$L->currentLanguage().'.js')) {
@ -105,6 +106,7 @@ $html = <<<EOF
convert_urls: true, convert_urls: true,
relative_urls: false, relative_urls: false,
valid_elements: "*[*]", valid_elements: "*[*]",
cache_suffix: "?version=$version",
$document_base_url $document_base_url
plugins: ["$plugins"], plugins: ["$plugins"],
toolbar1: "$toolbar1", toolbar1: "$toolbar1",