[wp-trac] [WordPress Trac] #30938: wpview: tinymce.each only stops when returning false, only get all the view offsets when clicking next to the body

WordPress Trac noreply at wordpress.org
Wed Jan 7 10:14:51 UTC 2015


#30938: wpview: tinymce.each only stops when returning false, only get all the view
offsets when clicking next to the body
--------------------------+-----------------
 Reporter:  avryl         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.2
Component:  TinyMCE       |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------
 Currently, whenever there's a click in the editor, there wil be always
 some expensive calculations from the wpview plugin.

 1. Reduce them to when the click is outside the body.
 2. `return` alone doesn't actually do anything in a `tinymce.each`
 function. `return false` when the click is above a view or next to a view
 to stop the loop.

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


More information about the wp-trac mailing list