ID, $name, true); } add_shortcode('field', 'jwl_field_func'); // Add settings link to plugins page menu // This can be duplicated to add multiple links function add_ultimatetinymce_settings_link($links, $file) { static $this_plugin; if (!$this_plugin) $this_plugin = plugin_basename(__FILE__); if ($file == $this_plugin){ $settings_link = ''.__("Settings",'jwl-ultimate-tinymce').''; $settings_link2 = ''.__("Support Forum",'jwl-ultimate-tinymce').''; //$settings_link2 = ''.__("Donate",'jwl-ultimate-timymce').''; array_unshift($links, $settings_link, $settings_link2); } return $links; } add_filter('plugin_action_links', 'add_ultimatetinymce_settings_link', 10, 2 ); // Donate link on manage plugin page function jwl_execphp_donate_link($links, $file) { if ($file == plugin_basename(__FILE__)) { $donate_link = 'Donate'; $links[] = $donate_link; } return $links; } add_filter('plugin_row_meta', 'jwl_execphp_donate_link', 10, 2); // Call our external stylesheet used in the admin panel for customizing the "postbox" and "inside" classes. function jwl_admin_register_head() { $url = plugin_dir_url( __FILE__ ) . 'admin_panel.css'; // Added for admin panel css styles $url2 = plugin_dir_url( __FILE__ ) . 'js/pop-up.js'; // Added for popup help javascript echo "\n"; // Added for admin panel css styles echo "\n"; // Added for popup help javascript } add_action('admin_head', 'jwl_admin_register_head'); // Add the admin options page. This creates the basic admin settings page wrap function jwl_admin_add_page() { add_options_page('Ultimate TinyMCE Plugin Page', __('Ultimate TinyMCE','jwl-ultimate-tinymce'), 'manage_options', 'ultimate-tinymce', 'jwl_options_page'); } add_action('admin_menu', 'jwl_admin_add_page'); // Display the admin options page function jwl_options_page() { ?>



























HERE, and I will add your website link (along with a thanks) to all my plugin pages including this page, the wordpress plugin page, and my website page.

The external links will mutually benefit the two of us in regards to search engine rankings.','jwl-ultimate-tinymce'); ?>



Name:
Email Address:
Would you recommend this plugin to a friend?
How would you rate this plugin?
Do you find the new "Help" popups useful?
Have you looked at either of these? (Check one, or both)
Support Forum
Microsoft Word Help Document
Have you rated this plugin and clicked "Works"?
Please feel free to leave any additional feedback here...

Put a website form like this on your site.
Please click the "Continue" text on the next page after submission to return to this page.
. // Register settings for Row 3 register_setting('jwl_options_group','jwl_fontselect_field_id'); register_setting('jwl_options_group','jwl_fontsizeselect_field_id'); register_setting('jwl_options_group','jwl_styleselect_field_id'); register_setting('jwl_options_group','jwl_cut_field_id'); register_setting('jwl_options_group','jwl_copy_field_id'); register_setting('jwl_options_group','jwl_paste_field_id'); register_setting('jwl_options_group','jwl_backcolorpicker_field_id'); register_setting('jwl_options_group','jwl_forecolorpicker_field_id'); register_setting('jwl_options_group','jwl_advhr_field_id'); register_setting('jwl_options_group','jwl_visualaid_field_id'); register_setting('jwl_options_group','jwl_anchor_field_id'); register_setting('jwl_options_group','jwl_sub_field_id'); register_setting('jwl_options_group','jwl_sup_field_id'); register_setting('jwl_options_group','jwl_search_field_id'); register_setting('jwl_options_group','jwl_replace_field_id'); register_setting('jwl_options_group','jwl_moods_field_id'); // Register settings for Row 4 register_setting('jwl_options_group','jwl_tablecontrols_field_id'); register_setting('jwl_options_group','jwl_emotions_field_id'); register_setting('jwl_options_group','jwl_image_field_id'); register_setting('jwl_options_group','jwl_preview_field_id'); register_setting('jwl_options_group','jwl_cite_field_id'); register_setting('jwl_options_group','jwl_abbr_field_id'); register_setting('jwl_options_group','jwl_acronym_field_id'); register_setting('jwl_options_group','jwl_del_field_id'); register_setting('jwl_options_group','jwl_ins_field_id'); register_setting('jwl_options_group','jwl_attribs_field_id'); register_setting('jwl_options_group','jwl_styleprops_field_id'); register_setting('jwl_options_group','jwl_code_field_id'); register_setting('jwl_options_group','jwl_media_field_id'); // Register Settings for bonuses and features register_setting('jwl_options_group','jwl_tinymce_excerpt_field_id'); register_setting('jwl_options_group','jwl_postid_field_id'); register_setting('jwl_options_group','jwl_shortcode_field_id'); register_setting('jwl_options_group','jwl_php_widget_field_id'); register_setting('jwl_options_group','jwl_signoff_field_id'); register_setting('jwl_options_group','jwl_loginbox_field_id'); register_setting('jwl_options_group','jwl_loginboxtext_field_id'); // Register Settings for Advanced TinyMCE Features register_setting('jwl_options_group','jwl_defaults_field_id'); register_setting('jwl_options_group','jwl_custom_styles_field_id'); register_setting('jwl_options_group','jwl_div_field_id'); } add_action('admin_init', 'jwl_settings_api_init'); // These are our callback functions for each settings option GROUP described above. function jwl_setting_section_callback_function() { _e('

    Here you can select which buttons to include in row 3 of the TinyMCE editor.

','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function2() { _e('

    Here you can select which buttons to include in row 4 of the TinyMCE editor.

','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function3() { _e('

    These are added bonuses and features I have included.

','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function4() { _e('

    Here you can enable advanced features of the TinyMCE Editor.

    NOTE:
    Checking the box "enables" the selected advanced feature.
    De-selecting the box will restore original Wordpress default functionality for that setting.

','jwl-ultimate-tinymce'); } // Begin Callback functions for each individual setting registered in code above. // Callback Functions for Row 3 Buttons function jwl_fontselect_callback_function() { echo ' '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?>'; echo get_option('jwl_signoff_field_id'); echo ''; ?> '; echo '
'; ?> '; ?> '; ?> '; ?> 'Button', 'selector' => 'a', 'classes' => 'button' ), //array( 'title' => 'Callout Box', 'block' => 'div', 'classes' => 'callout', 'wrapper' => true ), array( 'title' => __('Bold Red Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#FF0000', 'fontWeight' => 'bold' )), array( 'title' => __('Bold Green Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#00FF00', 'fontWeight' => 'bold' )), array( 'title' => __('Bold Blue Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#0000FF', 'fontWeight' => 'bold' )), array( 'title' => __('Borders','jwl-ultimate-tinymce')), array( 'title' => __('Border Black','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #000000', 'padding' => '2px' )), array( 'title' => __('Border Red','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #FF0000', 'padding' => '2px' )), array( 'title' => __('Border Green','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #00FF00', 'padding' => '2px' )), array( 'title' => __('Border Blue','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #0000FF', 'padding' => '2px' )), array( 'title' => __('Float','jwl-ultimate-tinymce')), array( 'title' => __('Float Left','jwl-ultimate-tinymce'), 'block' => 'span', 'styles' => array( 'float' => 'left' )), array( 'title' => __('Float Right','jwl-ultimate-tinymce'), 'block' => 'span', 'styles' => array( 'float' => 'right' )), array( 'title' => __('Alerts','jwl-ultimate-tinymce')), array( 'title' => __('Normal Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #DEDEDE', 'background' => '#EFEFEF url('.plugin_dir_url( __FILE__ ).'img/normal.png) 8px 4px no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )), array( 'title' => __('Green Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #1EDB0D', 'background' => '#A9FCA2 url('.plugin_dir_url( __FILE__ ).'img/green.png) 8px 4px no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )), array( 'title' => __('Yellow Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #F5F531', 'background' => '#FAFAB9 url('.plugin_dir_url( __FILE__ ).'img/yellow.png) 8px 4px no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )), array( 'title' => __('Red Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #ED220C', 'background' => '#FABDB6 url('.plugin_dir_url( __FILE__ ).'img/red.png) 8px 4px no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )) ); $settings['style_formats'] = json_encode( $style_formats ); return $settings; } add_filter( 'tiny_mce_before_init', 'josh_mce_before_init' ); } // User option for adding the clear div buttons in the visual editor function tinymce_add_button_div($buttons) { $jwl_div = get_option('jwl_div_field_id'); if ($jwl_div == "1") array_push($buttons, "separator", "clearleft","clearright","clearboth"); return $buttons; } add_filter("mce_buttons", "tinymce_add_button_div"); // Functions for added bonuses and features // Function for excerpt editor $jwl_tinymce_excerpt = get_option('jwl_tinymce_excerpt_field_id'); if ($jwl_tinymce_excerpt == "1"){ function jwl_tinymce_excerpt_js(){ ?> 'widget_execphp', 'description' => __('Arbitrary text, HTML, or PHP Code')); $control_ops = array('width' => 400, 'height' => 350); $this->WP_Widget('execphp', __('PHP Code'), $widget_ops, $control_ops); } function widget( $args, $instance ) { extract($args); $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance ); $text = apply_filters( 'widget_execphp', $instance['text'], $instance ); echo $before_widget; if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ob_start(); eval('?>'.$text); $text = ob_get_contents(); ob_end_clean(); ?>
'', 'text' => '' ) ); $title = strip_tags($instance['title']); $text = format_to_edit($instance['text']); ?>

/> 

' . get_option('jwl_loginboxtext_field_id') . '


'; return $message; } add_filter('login_message', 'jwl_custom_login_message'); } // Wrapping it up.... and new test features. // Attempting to solve removal of

and
tags add_filter('tiny_mce_before_init', 'jwl_tinymce_clear_buttons_before_init'); function jwl_tinymce_clear_buttons_before_init( $init ) { $init['extended_valid_elements'] .= ',div[*],iframe[*],object[*],param[*],embed[*],p[*],pre[*],br[*]'; $init['valid_elements'] .= ',*[*],br[*],p[*]'; $init['force_p_newlines'] .= false; // More Possibilities following example above // article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary[*],time[*],video[*],wbr[*] return $init; } // Add the plugin array for extra features function jwl_mce_external_plugins( $plugin_array ) { $plugin_array['table'] = plugin_dir_url( __FILE__ ) . 'table/editor_plugin.js'; $plugin_array['emotions'] = plugin_dir_url(__FILE__) . 'emotions/editor_plugin.js'; $plugin_array['advlist'] = plugin_dir_url(__FILE__) . 'advlist/editor_plugin.js'; //$plugin_array['advlink'] = plugin_dir_url(__FILE__) . 'advlink/editor_plugin.js'; $plugin_array['advimage'] = plugin_dir_url(__FILE__) . 'advimage/editor_plugin.js'; $plugin_array['searchreplace'] = plugin_dir_url(__FILE__) . 'searchreplace/editor_plugin.js'; $plugin_array['preview'] = plugin_dir_url(__FILE__) . 'preview/editor_plugin.js'; $plugin_array['xhtmlxtras'] = plugin_dir_url(__FILE__) . 'xhtmlxtras/editor_plugin.js'; $plugin_array['style'] = plugin_dir_url(__FILE__) . 'style/editor_plugin.js'; $plugin_array['moods'] = plugin_dir_url(__FILE__) . 'moods/editor_plugin.js'; $plugin_array['media'] = plugin_dir_url(__FILE__) . 'media/editor_plugin.js'; $plugin_array['advhr'] = plugin_dir_url(__FILE__) . 'advhr/editor_plugin.js'; $plugin_array['clear'] = plugin_dir_url( __FILE__ ) . 'clear/editor_plugin.js'; return $plugin_array; } add_filter( 'mce_external_plugins', 'jwl_mce_external_plugins' ); ?>