P̶l̶a̶c̶e̶h̶o̶l̶d̶e̶r̶ *Default* content in Custom Post Type TinyMCE editor

There is no way to add “placeholder” for TinyMCE, but you can set default content for newly created posts. All you need is just to hook default_content filter and return your formatted paragraphs: add_filter( ‘default_content’, ‘wpse8170_get_default_instructions’, 10, 2 ); function wpse8170_get_default_instructions( $content, WP_Post $post ) { if ( $post->post_type == ‘post’ ) { $content=”…. your … Read more

More than one TinyMCE (wp_editor) with different $settings[‘drag_drop_upload’] values breaks

Not sure if this is a bug, but the behaviour is correct, or at least apparently intentional. a) There is only one dragDropUpload setting in the tinyMCEPreInit object, instead of one flag per editor. b) looking at class-wp-editor.php:139: if ( $set[‘drag_drop_upload’] ) { self::$drag_drop_upload = true; } so, if the setting is set to true … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)