[wp-trac] [WordPress Trac] #40974: Updated text widget do not save text (when using paste)

WordPress Trac noreply at wordpress.org
Fri Jul 7 00:01:13 UTC 2017


#40974: Updated text widget do not save text (when using paste)
-------------------------------------+-----------------------
 Reporter:  rinkuyadav999            |       Owner:  azaozz
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.8.1
Component:  Widgets                  |     Version:  4.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------
Changes (by azaozz):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 In 40974.2.diff: use `editor.on( 'hide', ... )` to run
 `triggerChangeIfDirty()` when the Text tab is clicked.

 Seems to work well here. The `editor.isDirty()` is not yest set when the
 `paste` event fires, can pass the event and check it instead of setting it
 manually.

 @rinkuyadav999 can you test if that works for you too please.

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


More information about the wp-trac mailing list