[wp-trac] [WordPress Trac] #15457: Add URI support to add_editor_style()

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 17 22:18:35 UTC 2010


#15457: Add URI support to add_editor_style()
-------------------------+--------------------------------------------------
 Reporter:  dwieeb       |       Owner:                           
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  Awaiting Review          
Component:  TinyMCE      |     Version:  3.0.1                    
 Severity:  normal       |    Keywords:  add_editor_style, tinymce
-------------------------+--------------------------------------------------
 Currently add_editor_style() only allows for CSS files to be added that
 are relative in location to the current theme's stylesheet_directory or
 template_directory, meaning it can only be used by theme authors. Let's
 keep that functionality, but add the ability to attach a CSS file via URI.
 This way, plugin authors can use it to add editor styles.

 An example of why this might be necessary is a microformat plugin where
 the user can style microformats differently by adding certain CSS files by
 the user's choice. Right now, we can only see a change like that when we
 click preview.

 So it would be nice if plugins could use this function as well as themes.

 I've attached a potential patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15457>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list