[wp-trac] [WordPress Trac] #53388: Block widgets in the editor are not reflecting how they will look on the site

WordPress Trac noreply at wordpress.org
Mon Jun 14 21:17:12 UTC 2021


#53388: Block widgets in the editor are not reflecting how they will look on the
site
-----------------------------+---------------------
 Reporter:  desrosj          |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  5.8
Component:  Widgets          |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:
-----------------------------+---------------------

Comment (by caseymilne):

 Is there any way that styles from themes that apply to these blocks could
 be repurposed by the editor without having to specify them? Meaning could
 we make it easier for a theme to just focus on styles for the front-end,
 and then the editor has a way to grab those styles and parse them if they
 conform to a a certain structure, such as wrapping them in comments like:


 {{{


 /*
  * EditorBlockStyle
  * block-target: paragraph
  */

 h2 {
   font-size: 1.2em;
 }

 /* /EditorBlockStyle */

 }}}

 Then the editor would need to open the theme stylesheet, parse out all the
 block target sections and combine them into an editor stylesheeet.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53388#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list