• Hello to you all!

    I would like to ask for your help. I have got the job of reviving an old WordPress website, which the original developer abandoned some time ago. A strange, or I could also say, mean thing they did was that they disabled the visual text editor on the installation, it is only possible to type in plain text mode. I have searched in the theme files and in the plugin files for
    add_filter( 'user_can_richedit' , '__return_false', 50 );
    code, but I did not find it. I keep hitting my head against the wall here, what could have they done to disable the visual editor?

    On a similar note, is there some way I could check if any core WordPress files are modified? I have already updated to the latest version, I thought maybe that would delete the modifications they may have made to accomplish disabling the editor, but it did not solve this for me.

    Thank you kindly for your help! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • They might have done it through CSS or jQuery even so you’ll have to search pretty much all over the place search in your files for ‘content-tmce’ that’s the # of the ‘Visual’ button in case they have changed it in a weird way.

    —- Edit —-
    An easy way to check if you have chrome would be to Right Click and Inspect on the ‘Text’ button and check the code if there’s another button there hidden or something ??

    —–

    —– Edit 2 —-

    Sorry I’m at work and I scroll through the forum like a maniac sometimes missing something. As I understand the button actually exists but it just doesn’t do anything right?

    First of all updating WordPress wouldn’t mess with their custom plugin or template so it wouldn’t reset the disabled button no. Only if they had messed with core files.

    If you see a button but it’s not clickable search for something like this:

    jQuery("#content-tmce") or $("#content-tmce")

    They probably disabled it through a script.

    ——

    Hope this helps.

    Best regards,
    Konstantinos

    Thread Starter idesuvix

    (@idesuvix)

    Hello Konstantinos!

    Thank you very much! No, there is no button whatsoever, here is hot it looks like:

    Screenshot

    If the jQuery strings I gave you didn’t return anything the next thing to search would something like ['quicktags'] = false or 'quicktags' => false… Or search for ‘quicktags’ in their custom theme / plugins for that matter in case they disabled them that way…

    It’s really hard to pinpoint it as there is no access to the files ( and there won’t be ) I’m trying to think of different ways to see what’s up..

    another good theory would be to just disable the plugins and themes and just load a default theme to see if they appear again.. At least that way you’ll know that their code is run through a theme/plugin.. If not it might be in some core file in a weird way.

    Best regards,
    Konstantinos

    Thread Starter idesuvix

    (@idesuvix)

    Hello!

    I have finally made some progress!

    Interestingly, I did not find anything in the plugin or theme code. I have tried searching for the terms you provided, and also tried deactivating all plugins and changing to twentyfifteen, but nothing solved the issue.

    I remembered, that there is an option in your user dashboard where you can set this as a setting, so I have gone there. The Disable the visual editor when writing checkbox was not checked, so it would suggest it is enabled. When I tried checking it and saving, to disable the editor, it would save, but after the reload the checkbox would be unchecked again. This got me thinking, so I created a new admin user, logged in with that, and that new user did have the visual editor enabled. So I guess they have made some kind of modifications tied to that specific user inside the database…

    It would be the best if I could find what it is, it would be a pain in the back to migrate everything to an other admin account… Do you have maybe some ideas what could I check?

    I would personaly check the database just in case there’s something wrong with the field that this option gets saved or the option code in the php files. But to be honest I have no idea where it could be to help you with that.

    At least you made a start, good to hear!

    Best regards,
    Konstantinos

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Reenabling Visual Editor’ is closed to new replies.