[wp-trac] [WordPress Trac] #52493: Link button in custom wysiwyg textarea not compatible with new jQuery

WordPress Trac noreply at wordpress.org
Tue Feb 23 09:43:34 UTC 2021


#52493: Link button in custom wysiwyg textarea not compatible with new jQuery
--------------------------+-------------------------
 Reporter:  lgedeon       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  3.3
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+-------------------------
Changes (by Clorith):

 * status:  new => closed
 * version:  trunk => 3.3
 * resolution:   => worksforme
 * milestone:  5.7 =>


Comment:

 Thank you, I can then replicate the problem you are experiencing.

 This isn't related to the jQuery update it self, as the behavior is also
 replicable on WordPress 5.5, but rather a problem in accessing arrayed
 results in jQuery with `.get()` when square brackets are used in the
 selector in the first place.

 There are other issues as well displayed when using square brackets for
 the editor id, as it locks you out of the visual part of the WYSIWYG
 editor.

 This is all expected behavior though, as the
 [https://developer.wordpress.org/reference/functions/wp_editor/#parameters
 documentation for `wp_editor`] explicitly notes that you should not be
 using square brackets in the ID.

 I'm closing the ticket then, as this isn't an unexpected scenario, but
 further discussions about it can still happen, it's just to keep the
 workflows sane around releases :)

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


More information about the wp-trac mailing list