[wp-trac] [WordPress Trac] #17136: Distraction-free writing mode
WordPress Trac
wp-trac at lists.automattic.com
Mon May 2 16:05:18 UTC 2011
#17136: Distraction-free writing mode
----------------------------+------------------
Reporter: azaozz | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.2
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by azaozz):
Replying to [comment:54 westi]:
Sorry, should have explained it better. [17785] adds another action to
wp_tiny_mce() and standardizes the previously added action:
`before_wp_tiny_mce` and `after_wp_tiny_mce`. Both get the `$initArray` as
arg. They make it very easy to add scripts and other elements just before
or after the code for TinyMCE is outputted (both are used in core).
The change in [17786] is needed as the list of used plugins in
`$initArray` is (already) a comma delimited string and we need to check
whether some plugins are present there and output other components for
them. Using preg_split() and then inArray() there seemed most
straightforward (it's a short string). We can instead add the `$plugins`
as second arg. to these actions or even use strpos() if needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17136#comment:55>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list