Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #706965

    I’m running WordPress version 4.6.1 and Enfold version 3.8 on a client’s website that has been up and running for a couple of months. Today I’ve noticed that the text editor has changed and gone are some of the options I know and love. Additionally, when I edit text, type something in, save and re-enter the text box, the buttons disappear entirely. Please help.

    Is there a way I can send you some screenshots?

    Many thanks in advance.

    • This topic was modified 8 years ago by dianado.
    #707077

    I’ve managed to restore the TinyMCE text editor to its former state, with all the features now available. I commented out a few lines of code in my child theme’s functions.php that deferred parsing of JS. It’s done the trick although I don’t fully appreciate why. Next up I need to work through a couple of errors showing up in the console, also related to TinyMCE that read:

    Uncaught TypeError: Cannot read property ‘body’ of undefined… tinymce.min.js?ver=4401-20160726:11

    #707552

    Hi,

    Could you upgrade the account to admin please? We can’t see much of your installation otherwise. Did you try deactivating all plugin to see if there is a conflict coming from any of them?

    Best regards,
    Rikard

    #707563

    Hi Rikard
    Thank you for getting in touch and I’m pleased to report back that I’ve managed to sort the issues. The editor problems were essentially caused by some page optimization code I had inserted a while back in the functions.php. Namely I was stripping the version from scripts and stylesheets. I added a simple function (reproduced below) that is widely promoted on the internet to “remove query strings from static resources” but in my case, removing the versions from all js and css files caused a conflict with the TinyMCE editor and raised some errors/exceptions. I also have ‘expires header’ settings defined in .htaccess that would have prevented the files being replaced by the browser since they were lacking version numbers. The Editor problem appeared seemingly at random, after I made a minor change to the child theme’s stylesheet css. Why it had a knock-on effect at this time I’m not sure, but hopefully this has fixed the problems others have also seen regarding ‘invisible’ text and unresponsive Visual and Text tabs. It took me a while to debug, but I got there in the end.

    Here is the functions that I have commented out:
    /* Remove Query Strings from Static Resources Fix */
    // stuffs up caching if versions are removed
    function _remove_script_version( $src ){
    $parts = explode( ‘?ver’, $src );
    return $parts[0];
    }
    add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
    add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );

    #707591

    Hi!

    We are glad you shorted it out.
    Please feel free to let us know if you need anything else.

    Best regards,
    Basilis

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Text editor looks different’ is closed to new replies.