#20118 closed enhancement (fixed)
Improve loading of editor css
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
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)
#2
follow-up:
↓ 3
@
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
@
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.
In [19990]: