This class removes the default excerpt metabox and adds a new box with the wysiwyg editor capability

author etessore
version 1.0.0
package classes

 Methods

Set the feature up

__construct(array $contexts) 

Parameters

$contexts

array

a list of context where you want the wysiwyg editor in the excerpt field. Defatul array('post','page')

Adds a new excerpt editor with the wysiwyg editor

add_tinymce_to_excerpt_metabox() 

Manages the excerpt escaping process

custom_trim_excerpt(string $text, string $raw_excerpt) 

Parameters

$text

string

the default filtered version

$raw_excerpt

string

the raw version

Removes the default editor for the excerpt

remove_excerpt_metabox() 

Called when the post is beeing saved

save_box(int $post_id) 

Parameters

$post_id

int

the post id

Prints the markup for the tinymce excerpt box

tinymce_excerpt_box(object $post) 

Parameters

$post

object

the post object

 Properties

 

a list of context where wysiwyg editor is required

$contexts : array

 Constants

 

custom_exceprt_slug

custom_exceprt_slug 
 

textdomain

textdomain