Ticket #13520 (confirmed Bug)

Opened 3 years ago

Last modified 3 years ago

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.

Change History

comment:1 Changed 3 years ago by alecghica

  • Priority changed from minor to major
  • Owner set to robgietema
  • Component changed from Unknown to Visual Editor

comment:2 Changed 3 years ago by kleist

  • Status changed from new to confirmed

comment:3 Changed 3 years ago by alecghica

What is the logic for re-loading all the CSS anyway? Maybe for popup use-case?

Note: See TracTickets for help on using tickets.