[wp-trac] [WordPress Trac] #10753: Introduce smarter TinyMCE menu by reducing inline styles and using content aware styling

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 9 02:43:52 UTC 2009


#10753: Introduce smarter TinyMCE menu by reducing inline styles and using content
aware styling
-------------------------+--------------------------------------------------
 Reporter:  micasuh      |       Owner:  azaozz                                                                       
     Type:  enhancement  |      Status:  new                                                                          
 Priority:  normal       |   Milestone:  2.8.5                                                                        
Component:  TinyMCE      |     Version:  2.8.4                                                                        
 Severity:  normal       |    Keywords:  tinymce, inline style, content aware styling, classes, custom classes, editor
-------------------------+--------------------------------------------------
 Inline styling for content can be detrimental for theme upgrades and style
 refreshes. Currently, TinyMCE menu uses inline styles for paragraph
 alignments, text colors and background colors, font families, font sizes,
 etc.

 Replace these inline styles with custom class names using either p, span,
 or div tags relative to what editor selects.

 Two examples:

 1. If editor wants complete Post content to be '''text-align: right''',
 insert one class name into surrounding div instead of surrounding it with
 new span tag and inline style.

 2. A phrase of text must stand out within a paragraph by changing the
 font-size and font-family. In this instance, add span, bold, or em tag
 with custom class instead of inline styles with font-size and font-family
 attributes.

 Content aware styling: When an editor wants to make a complete paragraph
 bold or emphasized, these elements don't always need to be surrounded with
 strong and em tags. Complete paragraphs or multi-paragraphs should be
 classed and styled within CSS. Content aware styling means Wordpress knows
 when editor has selected a paragraph versus a sentence, phrase or word and
 adjusts accordingly.

 These custom classes can be styled with new custom CSS file inserted
 within wp_head for all future builds of Wordpress. Designer can opt to
 turn off this feature and go back to current way of styling if he or she
 wants.

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


More information about the wp-trac mailing list