Adds cache busting for TinyMCE

This commit is contained in:
Shannon
2018-02-27 01:12:17 +11:00
parent e40ed5e858
commit 161a19a82b
2 changed files with 8 additions and 3 deletions

View File

@@ -115,7 +115,9 @@ angular.module("umbraco.directives")
toolbar: toolbar,
content_css: stylesheets,
style_formats: styleFormats,
autoresize_bottom_margin: 0
autoresize_bottom_margin: 0,
//see http://archive.tinymce.com/wiki.php/Configuration:cache_suffix
cache_suffix: "?umb__rnd=" + Umbraco.Sys.ServerVariables.application.cacheBuster
};

View File

@@ -139,6 +139,7 @@ angular.module("umbraco")
//wait for queue to end
$q.all(await).then(function () {
//create a baseline Config to exten upon
var baseLineConfigObj = {
mode: "exact",
@@ -149,14 +150,16 @@ angular.module("umbraco")
extended_valid_elements: extendedValidElements,
menubar: false,
statusbar: false,
relative_urls: false,
height: editorConfig.dimensions.height,
width: editorConfig.dimensions.width,
maxImageSize: editorConfig.maxImageSize,
toolbar: toolbar,
content_css: stylesheets,
relative_urls: false,
style_formats: styleFormats,
language: language
language: language,
//see http://archive.tinymce.com/wiki.php/Configuration:cache_suffix
cache_suffix: "?umb__rnd=" + Umbraco.Sys.ServerVariables.application.cacheBuster
};
if (tinyMceConfig.customConfig) {