Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
    Posts
  • #831890

    I have several sites where I use Enfold and all of them are working great except one where I am missing some essential buttons from the TinyMCE editor in the Advanced Layout Builder’s Text Blocks. If I go back to the default editor, everything is there as expected. I have disabled ALL plugins and I get the same result. I even recently replaced the theme and child theme files with the latest available and there is no change to this issue.

    What I see in this site:
    TinyMCE Bad

    What I see in other Enfold websites:
    TinyMCE Good

    Notable missing buttons:

    • Add/Remove Hyperlink
    • Insert Theme Shortcodes
    • Kitchen Sink Toggle
    • many more…

    Is there a setting somewhere that affects what buttons are shown here?

    • This topic was modified 6 years, 8 months ago by trisym.
    #832675

    Hey Osiris,

    You are getting an error message from one of your plugins when I inspect pages which are using the Text Block element. Seems to be coming from the compat3x plugin, could you try deactivating that?

    Best regards,
    Rikard

    #832776

    I have another instance on the same host with most of the same plugins. It shows the same error, but I can see all the expected TinyMCE buttons. So it doesn’t appear to be this error alone that is causing the issue.

    The plugin you are referring to (compat3x) is from the wp-includes folder, so it comes with the WordPress 4.8.

    • This reply was modified 6 years, 8 months ago by trisym.
    #833213

    Hi,

    Ok, that is strange, but to have an error like that is a bit worrying. I can’t see anything else to indicate the problem on the page.

    Could you please try to overwrite the theme files with a fresh copy from your Themeforest account via FTP to see if that helps? http://kriesi.at/documentation/enfold/updating-your-theme-files/

    Best regards,
    Rikard

    #948045

    Same problem here. WP 4.9.5, Enfold just updated to 4.3. Latest versions of Firefox and Chrome.
    Funny thing is, after the Enfold update I edited several text boxes without any problems – then, out of the blue, in the same session, the “normal” version of the text editor was replaced by what seems to be a very reduced version, labeled in the right lower corner as “Powered by TinyMCE”. What happened here? How can I get back to the original text editor?

    Thanks,
    Stephan

    #948570

    Hi,

    Best regards,
    Victoria

    #948825

    Hi Victoria,

    What did you want to say in your post? I don’t assume, just “Hi”. ;-)

    Thanks,
    Stephan

    #948948

    Hi,

    Please check the private content message.

    Victoria has posted a screenshot and a message for you :)

    Best regards,
    Vinay

    #949566

    Hi Vinay,
    I can see the private content of my own message, but no such content in Victoria’s message.
    Thanks,
    Stephan

    #949906

    Connected with the “false” editor is the following behaviour: When I open a page for editing and click on an existing text block, this “false” editor opens, I change some text, then click on the Save button – the changes are not saved. When I click on this text block again, the editor opens without any text at all. After I reload that page for editing (ignoring the WP warning that there are changes), click on that text block, change the text, then save the changes they are saved. Strange, isn’t it?
    Stephan

    #950426

    I’m having the same issue. Can’t update my site’s content. It disappears after save.

    #950491

    Hi Stephan_H,

    Can you please make a small screencast of the issue? We cannot reproduce. Which browser and OS are you using?

    Best regards,
    Victoria

    #950492

    Hi BrendaSarg,

    Please start a new thread to avoid confusion and provide credentials there.

    Best regards,
    Victoria

    #950570

    Hi Victoria,

    OS: Windows 10 Pro, version 1709, build 16299.371
    Browser: Firefox Quantum 59.0.3 (64-Bit) / Chrome 66.0.3359.139 (64-Bit)

    Text block editor looks like this:
    Text block editor

    Thanks,
    Stephan

    #951405

    Hi,

    Did you install an extension for the editor? Please disable it temporarily then check the text block again.

    Best regards,
    Ismael

    #951423

    Hi Ismael,

    There are no such extensions installed. You can check yourself using the credentials I provided in my first post on April 27, 2018.

    Thanks,
    Stephan

    #951895

    Hi,

    We can see an extension like TinyMCE advanced from the Screenshot.
    It might not be from a plugin with that name, but an other plugin that adds that functionality.

    Best regards,
    Basilis

    #952302

    Hi Basilis,

    I’m somewhat disappointed by the quality and professionality of the Kriesi support. Meanwhile I found out by myself what the cause of the editor problem was. Should have been easy for you as well if you just took the time and analysed the script error messages thrown on pageload in the WP backend I gave you credentials for.

    Here is what I found out: I use a child theme and overrided js/avia.js (to alter the ajax search functionality). In my function.php I activated this customized version of avia.js by

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );

    Now with the latest update of the theme came a new avia.js and the old wasn’t compatible anymore.

    I replaced the js/avia.js in the child directory by the (unaltered) new version, but that threw an exception: “TypeError: $.avia_utilities.supports is not a function”. I had to comment out the function wp_change_aviajs() in my function.php to get rid of this.

    Now the text block editor works again, but how can I override avia,js in my child theme to customize it?

    Thanks,
    Stephan

    • This reply was modified 5 years, 10 months ago by Stephan_H. Reason: corrected a typo
    #953067

    Hi Stephan_H,

    What are the modifications you made in the avia.js? Which lines?

    Best regards,
    Victoria

    #953974

    Hi Victoria,

    This is off topic, but following this hint I just commented out line 56 (new $.AviaAjaxSearch({scope:'#header'});). In the latest avia.js this is to be found in line 35.

    Following another hint I added the function wp_change_aviajs() to my function.php in order to use the altered avia.js file.

    However, if I copy the unaltered (latest version of) avia.js into the child theme folder (js subdir) and leave the function wp_change_aviajs() in my functions.php (also in the child theme folder) then the WP backend throws an exception error (“TypeError: $.avia_utilities.supports is not a function”) and stops at line 513 in avia.js. It’s the avia.js in the child theme folder, identical with the avia.js in the theme folder.

    If I comment out the function wp_change_aviajs() and the add_action command no error is thrown. But then, the child theme copy of avia.js isn’t used at all. How can a customized avia.js be used?

    Should I start a new topic about this?

    Original problem that lead to customize avia.js is: How can I deactivate the Ajax search?

    Interesting additional issue now: Why does a copy of avia.js not work in the child theme dir?

    Thanks,
    Stephan

    • This reply was modified 5 years, 10 months ago by Stephan_H.
    #955051

    Hi Stephan,

    Try using the avia.js in your child theme and the code to enqueue it, but add shortcodes.js there as well. The error should be gone.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #955160

    Hi Victoria,

    I followed your advice but the error persists.

    I placed the following files in my child theme folder:
    \themes\enfold-child\functions.php
    \themes\enfold-child\js\avia.js
    \themes\enfold-child\js\shortcodes.js

    In functions.php I have the following function:

    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 ); 

    When I log in to my WP backend, I get the error as described above. See screenshot of the backend in the private content section of this reply.

    Thanks,
    Stephan

    #955564

    Hi Stephan,

    Try this function in your functions.php

    
    
    function wp_change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
        wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 3, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 ); 
    

    Best regards,
    Victoria

    #955663

    Hi Victoria,

    Yes, that fixes the problem with the “TypeError: $.avia_utilities.supports is not a function”. Thanks a lot!

    But now: How can I disable the ajax search feature? The search field that shows up when clicked on the magnifier icon in the menu bar should just receive keyword(s) and do nothing until Enter is pressed or the magnifier icon to the right of it is clicked.

    The tip to comment out the line “new $.AviaAjaxSearch({scope:'#header, .avia_search_element'});” (line 35 in avia.js) doesn’t work.

    Thanks,
    Stephan

    #956909

    Hi,

    You can add this filter in the functions.php file to disable the ajax search.

    add_action('avf_frontend_search_form_param', 'av_disable_ajax_search',9);
    function av_disable_ajax_search($params)
    {
    	$params['ajax_disable'] = true;
    	return $params;
    }

    Best regards,
    Ismael

    #957026

    Hi Ismael,

    Great, that works! :-) Thank you very much!

    Cheers,
    Stephan

    #957136

    Hi Stephan,

    Glad that Ismael helped you. :)
    Feel free to comeback if you need further assistance.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 27 posts - 1 through 27 (of 27 total)
  • The topic ‘TinyMCE Missing Essential Buttons in Advanced Layout Builder Text Blocks’ is closed to new replies.