[wp-trac] [WordPress Trac] #40974: Updated text widget do not save text

WordPress Trac noreply at wordpress.org
Sun Jun 11 12:35:47 UTC 2017

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

 * keywords:  needs-patch => has-patch needs-testing
 * owner:   => westonruter
 * status:  new => accepted


 @rinkuyadav999 I think I see what is going on. When a user switches from
 the Visual to the Text tab, the TinyMCE editor is hidden and apparently in
 the process the `blur` event never triggers. I can see however that when
 the editor's `hide` method is called, it will do a `save` and trigger a
 `SaveContent` event. So if we switch from `blur` to `SaveContent` this
 seems to fix the issue. Please test [attachment:40974.0.diff].

 @azaozz Does this make sense?

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

More information about the wp-trac mailing list