Support Forum

just installed tinyMCE editor and the layout of the top bar is messed up

23 Answers

New Answer

SI sintmacro
sintmacro
Member

Thanks but where do I need to seacrch to the ‘admin_init’ hook? 

And if I found it, what will be the change? 

Sorry for not understanding this.

YS Yellow Swordfish
Yellow Swordfish
Member

Within the third party tinyMCE plugin files. And ‘init’ should really be ‘admin_init’.

MP Mr Papa
Mr Papa
Member

correct.. I said replace init with admin_init…  but just to be sure, its often the issue, but not always…

see where they enqueuing their stuff (js, buttons, etc) to load…

SI sintmacro
sintmacro
Member

I’ve checked it and the TinyMCE have below in his code. So I think it’s correct as you said. In this case I don’t need to change it but issue still there unfortunately.

add_action( 'admin_init', 'tadv_version' );
add_action( 'admin_init', 'tadv_load_defaults' );
if ( ! function_exists(‘tadv_mce_options’) ) {
function tadv_mce_options($init) {
global $tadv_hidden_row;
$tadv_options = get_option(‘tadv_options’, array());

if ( $tadv_hidden_row > 0 )
$init[‘wordpress_adv_toolbar’] = ‘toolbar’ . $tadv_hidden_row;
else
$init[‘wordpress_adv_hidden’] = false;

if ( isset($tadv_options[‘no_autop’]) && $tadv_options[‘no_autop’] == 1 )
$init[‘apply_source_formatting’] = true;

if ( isset($tadv_options[‘hideclasses’]) && $tadv_options[‘hideclasses’] == 1 )
$init[‘class_filter’] = ‘[function(){return false;}]’;

return $init;
}
add_filter( ‘tiny_mce_before_init’, ‘tadv_mce_options’ );
}

MP Mr Papa
Mr Papa
Member

well, as we said, would be looking for anything loading on init not admin_init… and not sure the ones you reference are the right functions anyways…

and as we said, its often, but not always, the init hook used…

SI sintmacro
sintmacro
Member

This is what happens if I use the Ultimate TinyMCE plugin (see image). The editor field stays gray so no entry is possible. On my testplatform it works with this plugin so there will be some conflict or something but don’t know where to search for.

editor.png
MP Mr Papa
Mr Papa
Member

Oh, I understand what happens…  but its because something, other wp plugin or your wp theme, is incorrectly adding buttons or other to the wp editor…

I believe it was you that said it was the advanced tinymce plugin… sounds like might be more involved…

SI sintmacro
sintmacro
Member

Mr Papa said
Oh, I understand what happens…  but its because something, other wp plugin or your wp theme, is incorrectly adding buttons or other to the wp editor…

I believe it was you that said it was the advanced tinymce plugin… sounds like might be more involved…

The issue with the toolbar I had indead with the Advanced TineMCE plugin. I tried also to use the Ultimate TinyMCE because this one was working on my testsite. I’ll look further to see if I can find the conflicted plugin.

Thanks.

MP Mr Papa
Mr Papa
Member

let us know… hopefully we can help correct it – have done fair number unfortunately…

best way is start with wp default theme… still issue?

if so, disable rest of wp plugins… working now?  if so, re-enable one by one testing each time… narrows it down…