• I am building a plugin which extends the functionality of a parent plugin. This works fine, however, I am having an issue when another third party plugin is activated (this other plugin also extends the functionality of the parent plugin). The problem is that when the other plugin is activated along with mine the WP editor is half disabled. The “Text” tab still works and can switch the editor view.

    If I disable my plugin then the editor works as expected. The plugin I’ve created doesn’t have any code which changes any of the WP editor settings. I have tried going through the third party plugin’s code and it has one section of code which changes the “teeny” WP_editor setting based on a custom capability using the “wp_editor_settings” filter.

    I am unsure how to debug this further as as far as I know my code doesn’t change any WP_Editor settings. Any advice on how to debug this further or any information is much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • What is the other plugin ?

    Moderator bcworkz

    (@bcworkz)

    If you have any JS script being loaded which causes an error, it will prevent the editor from working properly. Any such errors should show up in the browser console when the page is loaded, or at least when the view tab change is attempted.

    If you are altering layout by adding admin CSS, there could be an element whose size invisibly covers the view tab so that clicking on it has no effect, as you are actually clicking the invisible part of another element. Your browser’s CSS inspector tool will highlight elements when the related HTML is hovered over in the inspector. Verify that no other elements invisibly overlay the view tabs.

    These are common problems I’ve encountered, there could be others that I’m not thinking of. If all else fails, comment out parts of your code until you zero in on the part causing trouble.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom plugin – WP editor half disabled’ is closed to new replies.