Extra TinyMCE editor strips and tags?

Hey guys, I’ve added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> tags. It doesn’t preserve the line breaks. The TinyMCE is setup like this: wp_tiny_mce(true, array(‘editor_selector’ => $field[‘class’] ) ); ‘<textarea name=”‘, … Read more

Enable Gutenberg on custom post type

I have this custom post type: function create_posttype() { register_post_type( ‘companies’, array( ‘labels’ => array( ‘name’ => __( ‘شرکتهای عضو’ ), ‘singular_name’ => __( ‘شرکت’ ) ), ‘supports’ => array(‘title’, ‘editor’, ‘custom-fields’, ‘excerpt’, ‘thumbnail’), ‘public’ => true, ‘has_archive’ => true, ‘rewrite’ => array(‘slug’ => ‘companies’), ) ); } add_action( ‘init’, ‘create_posttype’ ); Which shows classic … Read more

Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 8 years ago. Improve this question I am tired of the tinymce editor in wordpress and I really love the stackoverflow editor which allows me to write … Read more