WordPress is most well known platform for creating blog site.If your are creating a plugin in wordpress ,you may have to use wordpress default editor.But how will you use that?
Its very simple to use.
First of all use the wordpress default editor function wp_editor.It has some parameter for setting different kind of attributes.
wp_editor($content,$editor_id,$settings);
$content:
(required) Initial content for the editor.
If you want initially set content to editor you can add the string to it.
$content='Hello world';
$editor_id
(required) HTML id attribute value for the textarea.
$editor_id='my_editor';
It is the unique id of the editor,Which will be used while inserting data to database.
$setting=array(); $settings = array( 'quicktags' => array( 'buttons' => 'strong,em,del,ul,ol,li,close' ), 'editor_height' => 425, 'textarea_rows' => 20, );
This is an array parameter.It is optional.Here you can set button of editor and width and height of the editor.
Here are a few examples of the result of the conversion from textarea_rows to pixels.
0 to 3 => 100
4 => 113
5 => 133
10 => 230
15 => 328
20 => 425