@apam
What I did to make images work with Allow Images plugin is to go in the plugin’s php file and comment out this chunk of code (at the bottom of the file):
remove_filter( ‘pre_post’, ‘encode_bad’ );
add_filter( ‘pre_post’, ‘allow_images_encode_bad’, 9 );
add_filter( ‘pre_post’, ‘allow_images’, 52 );
Like this:
// remove_filter( ‘pre_post’, ‘encode_bad’ );
// add_filter( ‘pre_post’, ‘allow_images_encode_bad’, 9 );
// add_filter( ‘pre_post’, ‘allow_images’, 52 );
That worked for me. Hope it does work for you as well.
Bonus tip: with TinyMCE installed, if you try to “Edit” a post, you get <p>tags all over the text. To fix that go to this file:
bb-includes/functions.bb-formatting.php
Find this chunk of code:
function bb_code_trick_reverse( $text ) {
$text = preg_replace_callback(“!(
|
)(.*?)(
|)!s”, ‘bb_decodeit’, $text);
$text = str_replace(array(‘<p>’, ‘’), ‘’, $text);
$text = str_replace(‘</p>’, “n”, $text);
$text = str_replace(‘<coded_br />’, ‘’, $text);
$text = str_replace(‘<coded_p>’, ‘<p>’, $text);
$text = str_replace(‘</coded_p>’, ‘</p>’, $text);
return $text;
}
And comment out this two lines:
// $text = str_replace(array(‘<p>’, ‘
’), ‘’, $text);
// $text = str_replace(‘</p>’, “n”, $text);
You may now have a proper Editor.