Opened 12 years ago
Closed 12 years ago
#21026 closed defect (bug) (fixed)
add_editor_style() in child theme not working for editor_style.css
Reported by: | richardwo | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.4.1 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Editor | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
created a child theme of twentyeleven
functions.php contains add_editor_style();
editor-style.css in the theme folder.
This file is not picked up by TinyMCE (confirmed by looking at tinyMCEPreInit in source).
Changing the name of the css file to e.g. child-editor-style.css and using add_editor_style( 'child-editor-style.css' );
works fine.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
In [20059], the line was introduced to prevent a stylesheet from loading by a parent theme if a file with the same name was already loaded by a child theme:
In [20342], this behaviour was reversed (comment:ticket:19437:14).
Not sure if the line was necessary in the first place. Moving to 3.4.1, as it's technically a regression.