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

WordPress Trac noreply at wordpress.org
Wed Jul 19 12:38:28 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-refresh  |     Focuses:
-------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:17 rinkuyadav999]:
 > This is working but when i past text in visual and then quickly switch
 to text and press save button, it remove text from text area and data does
 not save.

 Yeah, can reproduce it too. Happens only on the Widgets screen not in the
 Customizer, and with any input type, typing does it too.

 Happens because the editor is added on "fake" input fields, the "real"
 fields are hidden and sync from the fake fields on a delay. Not sure why
 the Text widget needs that, all seems to work better if the "real" fields
 are used directly.

 If the fake fields are indeed needed, the way to fix this is to reduce the
 syncing delay.

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


More information about the wp-trac mailing list