In this article, we learn about how to customize wp_editor in WordPress.
Here is the syntax:
wp_editor( $text, $id, $arg );
Here is some arg list:
Here is some example:
$content = 'Your custom text'; $id = 'thecodehubs_bar_id'; $arg = array( 'textarea_name' => 'thecodehubs_bar_text', 'tinymce' => false, 'quicktags' => array( 'buttons' => 'strong,em,link,ul' ) ); wp_editor( $content, $id, $arg );
Output:
$content = 'Your custom text'; $id = 'thecodehubs_bar_id'; $arg = array( 'textarea_name' => 'thecodehubs_bar_text', 'tinymce' => array( 'toolbar1'=> 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,undo,redo,', 'toolbar2'=> '', ) ); wp_editor( $content, $id, $arg );
Output:
$content = 'Your custom text'; $id = 'thecodehubs_bar_id'; $arg = array( 'textarea_name' => 'thecodehubs_bar_text', 'media_buttons' => false, ); wp_editor( $content, $id, $arg );
Also, you can create your custom tag in the text editor. For more detail read this article.
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular