Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TinyCME config generated after each member login #208

Open
sig-critchie opened this issue Jun 16, 2019 · 1 comment
Open

TinyCME config generated after each member login #208

sig-critchie opened this issue Jun 16, 2019 · 1 comment

Comments

@sig-critchie
Copy link

sig-critchie commented Jun 16, 2019

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

  1. Logout of the CMS
  2. Login to the CMS
  3. Browse to a page with an HTMLEditorField
@robbieaverill
Copy link
Contributor

Thanks for the report. The impact of this is that users need to download the TinyMCE configuration files more often than they should?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants