[wp-trac] [WordPress Trac] #41106: wp_editor() doesn't support attributes besides id and class
WordPress Trac
noreply at wordpress.org
Tue Jun 20 20:31:18 UTC 2017
#41106: wp_editor() doesn't support attributes besides id and class
--------------------------+-----------------------------
Reporter: Shelob9 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I'm replacing a generic textarea with a WYSIWIG field. My textarea has an
`aria-describedby` attribute, but wp_editor() -- really
`_WP_Editors::editor()` -- can't set any HTML attributes besides ID and
class on the WYSIWIG.
Would be better if I could do something like this:
{{{
wp_editor( 'hi-roy', 'Some text', array(
'attrs' => array(
'aria-describedby' => 'description'
)
));
echo '<p id="description">Some description</p>';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41106>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list