\n"; } add_action('admin_head', 'jwl_admin_register_head'); // Add the admin options page add_action('admin_menu', 'jwl_admin_add_page'); function jwl_admin_add_page() { add_options_page( 'Ultimate TinyMCE Plugin Page', 'Ultimate TinyMCE', 'manage_options', 'ultimate-tinymce', 'jwl_options_page' ); } // Display the admin options page function jwl_options_page() { ?>

Ultimate TinyMCE Plugin Menu








Donations

  Even the smallest donations are gratefully accepted.

// 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_hr_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 settings for Row 4 register_setting('jwl_options_group2','jwl_tablecontrols_field_id'); register_setting('jwl_options_group2','jwl_emotions_field_id'); register_setting('jwl_options_group2','jwl_image_field_id'); register_setting('jwl_options_group2','jwl_preview_field_id'); register_setting('jwl_options_group2','jwl_cite_field_id'); register_setting('jwl_options_group2','jwl_abbr_field_id'); register_setting('jwl_options_group2','jwl_acronym_field_id'); register_setting('jwl_options_group2','jwl_del_field_id'); register_setting('jwl_options_group2','jwl_ins_field_id'); register_setting('jwl_options_group2','jwl_attribs_field_id'); register_setting('jwl_options_group2','jwl_styleprops_field_id'); register_setting('jwl_options_group2','jwl_code_field_id'); } add_action('admin_init', 'jwl_settings_api_init'); // ------------------------------------------------------------------ // Settings section callback function // ------------------------------------------------------------------ // // This function is needed if we added a new section. This function // will be run at the start of our section // function jwl_setting_section_callback_function() { echo '

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

'; } function jwl_setting_section_callback_function2() { echo '

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

'; } // ------------------------------------------------------------------ // Callback function for our example setting // ------------------------------------------------------------------ // // creates a checkbox true/false option. Other types are surely possible // // Callback Functions for Row 3 Buttons function jwl_fontselect_callback_function() { echo ' '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?> '; ?>' ) $content = $content . "\n
"; return $content; } } $mce_table_buttons = new mce_table_buttons; ?>