[wp-trac] [WordPress Trac] #39518: All wpviews rerender after add content

WordPress Trac noreply at wordpress.org
Sun Jan 8 07:07:47 UTC 2017


#39518: All wpviews rerender after add content
-----------------------------+-----------------------------
 Reporter:  programmin       |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:  trunk
 Severity:  normal           |   Keywords:
  Focuses:  ui, performance  |
-----------------------------+-----------------------------
 Looks like whenever something is added, ALL wpviews re-render. In the
 wpview/plugin.js:


 {{{
 editor.on( 'setcontent', function( event ) {
                         if ( event.load && ! event.initial &&
 editor.quirks.refreshContentEditable ) {
                                 // Make sure there is a selection in Gecko
 browsers.
                                 // Or it will refresh the content
 internally which resets the iframes.
                                 editor.quirks.refreshContentEditable();
                         }

                         wp.mce.views.render();
                 } );
 }}}

 This can cause heights of wpviews above to change with rerender of the
 views... is this really necessary for ALL views?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39518>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list