Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove path in status bar in TinyMCE4

I have just migrated from TinyMCE3 to TinyMCE4 and I wonder how to remove the path in the status bar. But I want to keep my status bar in order to have the resize functionnality.

With TinyMCE3 we can do it with:

tinymce.init({
    ...
    theme_advanced_path : false
});

How can I have the same result with TinyMCE4?

Thanks

like image 847
ChibiTomo Avatar asked Sep 06 '25 09:09

ChibiTomo


2 Answers

In TinyMCE 4 you can remove just the path in the statusbar by setting the configuration elementpath to false, like this:

tinymce.init({ elementpath: false });
like image 94
Beck Johnson Avatar answered Sep 09 '25 20:09

Beck Johnson


This works for me:

.mce-path {/* CSS */
    display: none !important;
}

EDIT:

In TinyMCE4, I don't think there is an official way to do it by passing a parameter to tinymce.init(); to disable the path. You can pass statusbar: false but that will hide the path AND the resize icon, unfortunately!

The answer I gave by using CSS, hides the path but the resize icon stays there. But make sure you have the statusbar: true in the tinymce.init();

like image 27
evilReiko Avatar answered Sep 09 '25 20:09

evilReiko