[wp-trac] [WordPress Trac] #27601: Add a warning when $editor_id in TinyMCE is invalid
WordPress Trac
noreply at wordpress.org
Mon Mar 31 01:29:52 UTC 2014
#27601: Add a warning when $editor_id in TinyMCE is invalid
-------------------------+-----------------------------
Reporter: toscho | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
When the second argument for `wp_editor()`, the `$editor_id`, is invalid,
the new TinyMCE will render its content as white text on white background,
and the markup is plain text. See #26778.
This change is not backwards-compatible to 3.8, so we should send an
explanation to the developer.
That could be either a JavaScript warning per `console.warn()` (might not
work in all browsers) or a PHP notice.
The text could be like this:
> Warning: Invalid value for `$editor_id`. Use alphanumeric characters,
underscores and minus only, the first character must not be a number. To
set a different `name` attribute, use the `textarea_name` parameter in the
editor settings array.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27601>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list