[wp-trac] [WordPress Trac] #15596: Allow JS functions in TinyMCE $initArray
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 27 19:45:52 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:
-------------------------+--------------------------------------------------
[changeset:16090/trunk/wp-admin/includes/post.php r16090] allowed
booleans, JSON-encoded arrays and objects to be passed to the TinyMCE
configuration, by not wrapping them in quotes. If the check for {{{{}}}
and {{{[}}} could be expanded to include {{{(}}}, we could also pass
anonymous functions (of the form {{{(function() { if (
someClientSideProperty ) return 'a'; return 'b'; })()}}}), which allows
integration of client-side information in the TinyMCE configuration. This
would greatly increase the flexibility of plugins to pass extra
information to TinyMCE without jumping through hoops.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15596>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list