type = 'hoo-editor'; } /** * Sets the $sanitize_callback * * @access protected */ protected function set_sanitize_callback() { // If a custom sanitize_callback has been defined, // then we don't need to proceed any further. if ( ! empty( $this->sanitize_callback ) ) { return; } $this->sanitize_callback = 'wp_kses_post'; } /** * Adds the global textarea * * @static * @access public */ public static function add_editor() { wp_enqueue_script( 'tiny_mce' ); echo '
'; wp_editor( '', 'hoo-editor', array( '_content_editor_dfw' => false, 'drag_drop_upload' => true, 'tabfocus_elements' => 'content-html,save-post', 'editor_height' => 200, 'default_editor' => 'tinymce', 'teeny' => true, 'tinymce' => array( 'resize' => false, 'wp_autoresize_on' => false, 'add_unload_trigger' => false, ), ) ); echo '
'; do_action( 'admin_footer' ); do_action( 'admin_print_footer_scripts' ); } }