Tagged: advanced-layout-editor, Text block, tinymce
-
AuthorPosts
-
July 30, 2017 at 8:17 pm #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:
What I see in other Enfold websites:
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 7 years, 5 months ago by trisym.
August 1, 2017 at 8:47 am #832675Hey 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,
RikardAugust 1, 2017 at 11:45 am #832776I 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 7 years, 5 months ago by trisym.
August 2, 2017 at 6:57 am #833213Hi,
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,
RikardApril 27, 2018 at 5:09 pm #948045Same 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,
StephanApril 29, 2018 at 8:52 am #948570Hi,
Best regards,
VictoriaApril 30, 2018 at 7:36 am #948825Hi Victoria,
What did you want to say in your post? I don’t assume, just “Hi”. ;-)
Thanks,
StephanApril 30, 2018 at 10:08 am #948948Hi,
Please check the private content message.
Victoria has posted a screenshot and a message for you :)
Best regards,
VinayMay 1, 2018 at 4:06 pm #949566Hi Vinay,
I can see the private content of my own message, but no such content in Victoria’s message.
Thanks,
StephanMay 2, 2018 at 9:43 am #949906Connected 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?
StephanMay 3, 2018 at 4:32 am #950426I’m having the same issue. Can’t update my site’s content. It disappears after save.
May 3, 2018 at 6:34 am #950491Hi Stephan_H,
Can you please make a small screencast of the issue? We cannot reproduce. Which browser and OS are you using?
Best regards,
VictoriaMay 3, 2018 at 6:35 am #950492Hi BrendaSarg,
Please start a new thread to avoid confusion and provide credentials there.
Best regards,
VictoriaMay 3, 2018 at 9:13 am #950570Hi 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:
Thanks,
StephanMay 4, 2018 at 7:38 am #951405Hi,
Did you install an extension for the editor? Please disable it temporarily then check the text block again.
Best regards,
IsmaelMay 4, 2018 at 8:13 am #951423Hi 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,
StephanMay 4, 2018 at 9:37 pm #951895Hi,
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,
BasilisMay 6, 2018 at 11:37 am #952302Hi 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 6 years, 7 months ago by Stephan_H. Reason: corrected a typo
May 8, 2018 at 5:16 am #953067Hi Stephan_H,
What are the modifications you made in the avia.js? Which lines?
Best regards,
VictoriaMay 9, 2018 at 3:15 pm #953974Hi 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 6 years, 7 months ago by Stephan_H.
May 11, 2018 at 7:29 am #955051Hi 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,
VictoriaMay 11, 2018 at 10:43 am #955160Hi 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.jsIn 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,
StephanMay 12, 2018 at 6:58 am #955564Hi 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,
VictoriaMay 12, 2018 at 11:28 am #955663Hi 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,
StephanMay 15, 2018 at 11:34 am #956909Hi,
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,
IsmaelMay 15, 2018 at 2:44 pm #957026Hi Ismael,
Great, that works! :-) Thank you very much!
Cheers,
StephanMay 15, 2018 at 5:43 pm #957136Hi 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 -
AuthorPosts
- The topic ‘TinyMCE Missing Essential Buttons in Advanced Layout Builder Text Blocks’ is closed to new replies.