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

Adding an image to a non existing post

I am not sure this answers your question directly, but as technical trivia — WordPress actually creates a posts as soon as you open editor, with auto-draft status. This is being used precisely to have a target for things like attachments and custom field before it is actually saved by user. So when user “saves” … Read more

Add default page editor to an admin settings page

Oh, this was quite easy. I had used: $args = array(“textarea_name” => “wpet_options[txt]”, ‘default_editor’ => ‘text’); wp_editor( ‘xxx’, “wpet_options[txt]”, $args ); But what I really wanted was: $post = get_post( 117, ‘OBJECT’ ); wp_editor( $post, ‘editor’ ); This page explains more: http://code.tutsplus.com/articles/quick-tip-using-wp_editor–wp-27136

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