Ticket #13520 (confirmed Bug)
As default TinyMCE reload all CSS resources
Reported by: | alecghica | Owned by: | robgietema |
---|---|---|---|
Priority: | major | Milestone: | 4.x |
Component: | Visual Editor | Version: | 4.2 |
Keywords: | TinyMCE, css | Cc: |
Description
As default TinyMCE reload all CSS resources for each instance of the editor found in a page. If for example you have a content type with 4 WYSIWYG widgets all the portal_css resources will be loaded for 4 more times ending up with a very bad experience for editors and a hugely increase the amount of time to load edit pages.
In control panel under /@@tinymce-controlpanel the value for "Choose the CSS used in WYSIWYG Editor Area" is empty as default. The code under https://github.com/plone/Products.TinyMCE/blob/master/Products/TinyMCE/utility.py#L888 states that if this property is empty all CSS will be reloaded.
Wouldn't be normal that as default the CSS is not reloaded and just let you do custom stuff there if you wish to?
For example as a quick fix I just filled in that property with a CSS filename that contain an empty CSS file.