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

WordPress Trac noreply at wordpress.org
Mon Feb 22 16:59:02 UTC 2021


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

 * keywords:   => reporter-feedback


Comment:

 I had a look here, but I'm not able to replicate these errors, in a custom
 settings page (for simplicity sake, using the
 [https://developer.wordpress.org/plugins/settings/custom-settings-page/
 plugins handbook example] but with a `wp_editor()` implementation instead
 of a select box.

 The full code used to test can be grabbed from the following Gist
 https://gist.github.com/Clorith/f411d04237328415d2fa60f7e192c9de

 I've added links both in text and visual mode without encountering the
 issues you are describing.

 The jQuery function referenced it self is still a valid one to return the
 first DOM object that matches the pattern as well, so not sure if that's
 truly the root cause or not on your end, but I am suspecting something
 else may be interfering with your DOM that isn't core.

 I should mention this is tested using WordPress 5.7-beta3 at this point.

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


More information about the wp-trac mailing list