Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $post_id = get_the_ID();
- $post = get_post( $post_id, OBJECT, 'edit' );
- $content = $post->post_content;
- $editor_id = 'editpost';
- $editor_args = array(
- 'media_buttons' => false,
- 'editor_class' => my_editor,
- 'textarea_rows' => 10,
- 'wpautop' => false,
- 'tinymce' => array(
- 'content_css' => get_stylesheet_directory_uri() . '/custom/editor-style_single.css'
- )
- );
- ?>
- <div id="inline_editor">
- <?php wp_editor( $content, $editor_id, $editor_args ); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement