Plugin Directory

Changeset 957347


Ignore:
Timestamp:
07/30/2014 11:45:27 AM (12 years ago)
Author:
jokioki
Message:

second version

Location:
easy-wysiwyg-style/trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • easy-wysiwyg-style/trunk/admin/class-easy-wysiwyg-style-admin.php

    r957302 r957347  
    8383     */
    8484    function theme_mce_buttons_2( $buttons ) {
    85         return array( 'formatselect', 'styleselect', 'code', '|', 'spellchecker', 'fullscreen', '|', 'wp_help', 'removeformat', 'charmap' );
     85        return array( 'formatselect', 'styleselect', 'underline', 'alignjustify', 'forecolor', 'code', 'pastetext','table', 'spellchecker', 'outdent',
     86            'indent', 'wp_help', 'removeformat', 'charmap', 'undo', 'redo' );
    8687    }
    8788
     
    99100    }
    100101
     102    /**
     103     * Add table plugin to tinyMCE
     104     *
     105     * @return array
     106     */
     107    function my_custom_tinymce_plugins () {
     108        $plugins = array('table');
     109        $plugins_array = array();
     110
     111        foreach ($plugins as $plugin ) {
     112            $plugins_array[ $plugin ] = plugins_url('easy-wysiwyg-style/tinymce/') . $plugin . '/plugin.min.js';
     113        }
     114        return $plugins_array;
     115    }
     116
     117
    101118}
  • easy-wysiwyg-style/trunk/easy-wysiwyg-style.php

    r957302 r957347  
    1111 * Plugin Name: Easy Wysiwyg Style
    1212 * Plugin URI: http://wordpress.org/plugins/easy-wysiwyg-style/
    13  * Description: Allows you to view the styling of your theme in the Wysiwyg editor.
    14  * Version: 1.0
     13 * Description: Allows you to view the styling of your theme in the Wysiwyg editor. Enhances your Wysiwyg and adds the insert table functionality
     14 * Version: 1.1
    1515 * Author: Joaquin Ruiz
    1616 * Author URI: http://jokiruiz.com
  • easy-wysiwyg-style/trunk/includes/class-easy-wysiwyg-style.php

    r957302 r957347  
    102102        $plugin = "easy-wysiwyg-style/easy-wysiwyg-style.php";
    103103        $this->loader->add_filter( "plugin_action_links_$plugin" , $admin, 'ews_settings_link');
     104
     105        $this->loader->add_filter('mce_external_plugins', $admin, 'my_custom_tinymce_plugins');
    104106    }
    105107
  • easy-wysiwyg-style/trunk/readme.txt

    r957302 r957347  
    1010
    1111The Easy Wysiwyg Style plugin allows you to see your styles in the editor in
    12 real time. You won't need to press preview.
     12real time. Enhances your Wysiwyg and adds the insert table functionality.
    1313
    1414== Description ==
     
    1616The Easy Wysiwyg Style plugin allows you to see your styles in the editor in
    1717real time. You won't need to press preview.
     18
     19Enhances your Wysiwyg and adds the insert table functionality.
    1820
    19211. Open Settings -> Easy Wysiwyg Style
     
    2325
    24263. Specify the CSS file location in your theme (style.css , css/style.css)
     27
     28**From v1.1** It adds the insert table functionality.
    2529
    2630Do you use worpdress admin with an iPad? Don´t worry, this plugin is fully
Note: See TracChangeset for help on using the changeset viewer.