[wp-trac] [WordPress Trac] #10753: Introduce pre-defined styles that are available in the editor

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 10 17:47:12 UTC 2009


#10753: Introduce pre-defined styles that are available in the editor
--------------------------------------+-------------------------------------
 Reporter:  micasuh                   |        Owner:  azaozz        
     Type:  feature request           |       Status:  reopened      
 Priority:  normal                    |    Milestone:  Future Release
Component:  Themes                    |      Version:  2.8.4         
 Severity:  normal                    |   Resolution:                
 Keywords:  needs-patch dev-feedback  |  
--------------------------------------+-------------------------------------

Comment(by Otto42):

 I can support this, but *ONLY* for inline style="whatever" elements. The
 strong example is indeed a terrible one, because I'd have to oppose that.
 Strong is a meaningful tag. Same with em and others along those lines.

 For the specific case of text-align, we can use the existing aligncenter,
 alignleft, alignright styles that are required in themes, however I expect
 this will still cause breakage. Those are more generally applied to image
 blocks, not to paragraphs, for example.

 New styles like wp-textleft and wp-textright and such would work, and
 including them via wp_head would be acceptable in my view, if:
 1. All the styles were new names,
 2. All the styles started with a prefix like wp- (this should be the case
 anyway, going forward)
 3. The styling applied to them in the CSS was absolutely minimalistic.
 Nothing extra that could be applied to any specific theme. wp-textright
 must be text-align:right and nothing more than that.
 4. Overriding these must be as simple as using !important in the theme's
 CSS file. If a theme has to do a remove_action to get rid of them, then
 that's too much to expect.

 Then I could give this a tentative +1. But I'd have to see the
 implementation to look for flaws. Adding CSS files into themes from the
 core code is fraught with peril.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10753#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list