Open sig-critchie opened 5 years ago
cwp 2.2.3
TInyMCE config is generated after each login, this seems to be due to "spellchecker_rpc_url" having a different "SecurityID" param, per user per session.
SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator::generateFilename()
determines if the config needs to generated by hashing the output of
SilverStripe\Forms\HTMLEditor\TinyMCEConfig::getAttributes()
as the config is different each time, "assets/_tinymce" is being filled up with config files.
TInyMCE config is generated once.
TinyMCE config is generated after each login.
Thanks for the report. The impact of this is that users need to download the TinyMCE configuration files more often than they should?
Affected Version
cwp 2.2.3
Description
TInyMCE config is generated after each login, this seems to be due to "spellchecker_rpc_url" having a different "SecurityID" param, per user per session.
SilverStripe\Forms\HTMLEditor\TinyMCECombinedGenerator::generateFilename()
determines if the config needs to generated by hashing the output of
SilverStripe\Forms\HTMLEditor\TinyMCEConfig::getAttributes()
as the config is different each time, "assets/_tinymce" is being filled up with config files.
Expected Behavior
TInyMCE config is generated once.
Actual behavior
TinyMCE config is generated after each login.
Steps to Reproduce