WordPress.org

Make WordPress Core

Ticket #21976: add_mce_fullscreen.php

File add_mce_fullscreen.php, 349 bytes (added by azaozz, 19 months ago)

Super simple plugin to add TinyMCE's fullscreen

Line 
1<?php
2/*
3Plugin Name: Add TinyMCE's fullscreen
4*/
5
6
7add_filter( 'mce_buttons', 'my_mce_buttons' );
8function my_mce_buttons($buttons) {
9        $buttons[] = 'fullscreen';
10        return $buttons;
11}
12
13add_filter( 'tiny_mce_plugins', 'my_tiny_mce_plugins' );
14function my_tiny_mce_plugins($plugins) {
15        $plugins[] = 'fullscreen';
16        return $plugins;
17}
18