[wp-trac] [WordPress Trac] #15596: Allow JS functions in TinyMCE $initArray
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 2 10:31:48 UTC 2010
#15596: Allow JS functions in TinyMCE $initArray
-------------------------+--------------------------------------------------
Reporter: janfabry | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.1
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by janfabry):
Indeed, my proposal covered only TinyMCE init, but there are other places
where Javascript is generated, like in
{{{WP_Script::print_script_l10n()}}}, which is used more and more as a
generic data passing method, not just for localization.
We should keep backwards compatibility in mind: I wouldn't want a string
like {{{'(Closed)'}}} to be interpreted as a non-string. But the same goes
for {{{'[Closed]'}}} and {{{'{Closed}'}}}, which will not be embedded in
quotes now, even if they should be. Maybe add {{{"}}} to the list too, so
once can "self-escape" and pass a variable as {{{'"[This is a string, not
an array]"'}}}?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15596#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list