How to insert image from link in TinyMCE

here is a link on the code page. I can’t write the code for some reason my browser is not accepting the code tags will try another computer when possible but the link explains all. here is the link. http://codex.wordpress.org/TinyMCE_Custom_Buttons

Preventing tinyMCE from auto formatting selected blocks of content

You can try adding this to your functions.php file: <?php function my_formatter($content) { $new_content=””; $pattern_full=”{(\[raw\].*?\[/raw\])}is”; $pattern_contents=”{\[raw\](.*?)\[/raw\]}is”; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if (preg_match($pattern_contents, $piece, $matches)) { $new_content .= $matches[1]; } else { $new_content .= wptexturize(wpautop($piece)); } } return $new_content; } remove_filter(‘the_content’, ‘wpautop’); remove_filter(‘the_content’, ‘wptexturize’); add_filter(‘the_content’, ‘my_formatter’, 99); ?> Once … Read more

Make videos output as iframes not links

Copy paste from my answer here but with iframe/video mime type added: Alter image output in content function WPSE_80145_Mime($html, $id) { //fetching attachment by post $id $attachment = get_post($id); $mime_type = $attachment->post_mime_type; //get an valid array of video types, add any extra ones you need $image_exts = array( ‘video/mpeg’, ‘video/mp4’, ‘video/quicktime’ ); //checking the above … Read more

Multiple TinyMCEs breaking Distraction Free Writing

Don’t use meta boxes for TinyMCE. It has some kind of conflict with the DOM. Hook your code including wp_editor to edit_page_form action instead: add_action( ‘edit_page_form’, ‘my_second_editor’ ); function my_second_editor() { // get and set $content somehow… wp_editor( $content, ‘mysecondeditor’ ); } See Notes on wp_editor in the Codex.

WYSIWYG with HTML source?

Why not automate the move from Drupal to WP? I think WP will fix some of the P tag issue during the upload. http://codex.wordpress.org/Importing_Content#Drupal If that isn’t an option, I think WP is using br’s instead of full new p. From the visual editor, I’d delete the copied break altogether and “enter” a new one.

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