Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#20118 closed enhancement (fixed)

Improve loading of editor css

Reported by: azaozz Owned by: azaozz
Milestone: 3.4 Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords:
Focuses: Cc:


Each TinyMCE plugin can add a stylesheet to the editor. We've been using this method for the extra css needed by our custom plugins. However we also have a customized theme that includes a stylesheet.

Instead of loading several (small) stylesheets we can combine all styles needed by our plugins into the theme's stylesheet. This will optimize the editor loading a little: few less requests.

Change History (3)

#1 @azaozz
9 years ago

  • Owner set to azaozz
  • Resolution set to fixed
  • Status changed from new to closed

In [19990]:

TinyMCE: move the WordPress plugins styles to the theme's stylesheet, fixes #20118

#2 follow-up: @nacin
9 years ago

Did ed.dom.loadCSS(url + '/css/content.css'); only apply to our plugins, or would it apply to a custom/external plugin?

#3 in reply to: ↑ 2 @azaozz
9 years ago

Replying to nacin:

It's a function in the MCE API, any plugin (including the default plugins) can use it to load another stylesheet in the editor. For our custom plugins it doesn't make sense to use it as we also have a custom theme for the editor and can add all needed css there.

Note: See TracTickets for help on using tickets.