[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 01:41:56 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: | Focuses:
--------------------------+---------------------
Changes (by lgedeon):
* keywords: reporter-feedback =>
Comment:
@Clorith, thank you so much for creating the sample code.
Using your example, I updated line 38 to:
{{{#!php
<?php
wp_editor( '', 'my_custom_editor_id[description]' );
}}}
Since the implementation I am debugging expects an array, it uses the
square brackets for the id. The square brackets, then are the source of
the error.
That of course, points to a simple work-around, but since I imagine this
might be a common use-case, we might still want to update core to
accommodate this or at least document that this is no longer supported.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52493#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list