Opened 14 years ago
Closed 14 years ago
#17334 closed defect (bug) (invalid)
WP 3.2, Tinymce & toggle fullscreen mode
Reported by: | arena | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.2 |
Component: | TinyMCE | Keywords: | |
Focuses: | Cc: |
Description
More a concern than a bug
but anyone has an idea how to get rid of the toggle fullscreen button when using the_editor() for another purpose than editing posts
more info here : http://wordpress.org/support/topic/wp-32-tinymce-toggle-fullscreen-mode?replies=1#post-2096843
thank you for your replies
Attachments (2)
Change History (9)
#2
@
14 years ago
Instead of the button, remove the plugin, it's name is wpfullscreen
. That will stop outputting the HTML for it too.
#4
@
14 years ago
Have a look at tiny_mce_before_init
, the plugins there are a comma separated string so you can probably
$initArray['plugins'] = str_replace( ',wpfullscreen', '', $initArray['plugins'] )
and repeat for any other default plugins you want to remove.
#5
@
14 years ago
- Keywords dev-feedback removed
- Resolution set to fixed
- Status changed from new to closed
@azaozz
just great ! thank you !
here is my code for doc purpose
add_filter('tiny_mce_before_init', 'my_tiny_mce_before_init'); function my_tiny_mce_before_init($initArray) { $initArray['plugins'] = str_replace( array('wpfullscreen',',,') , array('', ',') , $initArray['plugins'] ); return $initArray; }
Note: See
TracTickets for help on using
tickets.
Based on wordpress 3.2 beta 1 i tried to remove the fullscreen button for the admin pages using the_editor and tinymce.
I did so :
Apparently this remove the fullscreen buttons but is messing the buttons in the toolbar removing spellchecker, slow/hide kitchen sink, more
misplacing others...
attached are before / after screenshots