mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 12:16:07 +00:00
Added cache breaker to tinymce loading systems
Takes the version from BookStack app.js paths instead of tinyMCE version since things external from TinyMCE could be loaded using this.
This commit is contained in:
parent
1253711c7d
commit
1843d80fb7
@ -221,11 +221,15 @@ export function build(options) {
|
|||||||
// Build toolbar content
|
// Build toolbar content
|
||||||
const {toolbar, groupButtons: toolBarGroupButtons} = buildToolbar(options);
|
const {toolbar, groupButtons: toolBarGroupButtons} = buildToolbar(options);
|
||||||
|
|
||||||
|
// BookStack Version
|
||||||
|
const version = document.querySelector('script[src*="/dist/app.js"]').getAttribute('src').split('?version=')[1];
|
||||||
|
|
||||||
// Return config object
|
// Return config object
|
||||||
return {
|
return {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
selector: '#html-editor',
|
selector: '#html-editor',
|
||||||
|
cache_suffix: '?version=' + version,
|
||||||
content_css: [
|
content_css: [
|
||||||
window.baseUrl('/dist/styles.css'),
|
window.baseUrl('/dist/styles.css'),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user