Hi!
I got a bug after I applied a child theme on Newspaper 6. The only things I did change on the child theme was the addition of ads above the header.
After that, whenever there is the possibility of writing something with the RTE, the html editor is always on by default. I would like to put things back as they were, so I created a topic here:
http://wordpress.stackexchange.com/questions/194059/rte-always-on-text-mode-by-default/194076#194076
Is there any other easier way to solve this issue? Perhaps a good suggestion for a future update is to have this setting available for manual overriding on the theme panel?
I applied the solution provided on the link above and the system is now loading up first the visual editor but it changes automatically to the HTML editor. What could possibly be causing this?
Here is my functions.php:
<?php
/* ----------------------------------------------------------------------------
WordPress booster framework - this is our theme framework - all the content and settings are there
It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}
// Adds a widget area.
if (function_exists('register_sidebar')) {
register_sidebar(array(
'name' => 'Annonser i toppen',
'id' => 'extra-widget-area',
'description' => 'Annonser i toppen - redigeras hos Widgets Builder',
'before_widget' => '<div class="td-header-top-menu-full">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));
}
// Place the widget area after the header
add_action ('__before_header', 'add_my_widget_area', 10);
function add_my_widget_area() {
if (function_exists('dynamic_sidebar')) {
dynamic_sidebar('Extra Header Widget Area');
}
}
// Visual editor always on
add_filter( 'wp_default_editor', 'force_default_editor' );
function force_default_editor() {
//allowed: tinymce, html, test
return 'tinymce';
}
?>
Hi,
Changing to the main theme still returns the same behavior? Please give it a go and also test this using a default WordPress theme and let me know how it goes and how it behaves.
I’ve tried to recreate this however couldn’t do it on my testing environment using the latest theme and child theme versions and themes’s plugins so please make sure you also check without using any extra plugins which might affect the outcome and check again.
Let us know how it goes!
Thanks
Hi!
I have done like you said:
* activated theme twothousandfifteen: same issue
* activated theme Newspaper 6 (since I am runing child theme): same issue
* deactivated the only plugins that I had installed (MCE Table Buttons, Visual Composer Widgets, Widget Builder) since I noticed this problem: same issue
This is definately not specific from my browser or machine since my customer has the same problem. Perhaps this is a stupid question but… could this be done by the server?
I can provide you the FTP and admin credentials so you can take a look if you want to. It’s not a live site yet so you can do whatever you want, I have backup copies. In that case, the only thing I need to know is when you are doing something there so that I don’t work with the site, so we don’t override each other’s work.
So… any other suggestions?
-
This reply was modified 11 years by
jonybigude.
Hi,
Not sure as I’m not sure what is causing this. But if this is still happens when using an default wp theme then it could indicate that this happens due to WordPress so you can also test this on a fresh WordPress install before you install any plugins and see how it goes.
Thanks
Well, this issue still remains. I found this https://wordpress.org/support/topic/how-to-make-tinymce-advanced-default-editor-instead-of-html
Did it – still not working :/
OK, I finally found out the origin of the problem.
The problem is being caused by Visual composer. How can I solve this?
-
This reply was modified 11 years by
jonybigude.
-
This reply was modified 11 years by
jonybigude.
All out of the sudden, without any new plugin installation or what so ever your plugin started to force my text editor (when creating a new entry) to switch from TinyMCE to HTML. I have tested:
* Switch themes with VC plugin aktivated – the problem remains
* Deactivate the VC plugin – The problem disappears
* Add the add_filter function on my functions.php – website gets broken
* When I open my browser console and type getUserSetting('editor'), I recieve the answer “html”. If I type in setUserSetting('editor', 'tinymce'), I get the answer “editor”. The I type getUserSetting('editor') to see if anything has chaged and I get the answer “tinymce”. But then when I refres, thue bug is still back on.
How can I solve this?
OK!!
Finally I found it!! I can’t believe I found this almost by mistake! Just when I was looking for another WP plugin I found this: http://support.advancedcustomfields.com/forums/topic/visual-composer-plugin-conflict/
Very bad of ACF to have a solution only for the ones who buy the pro version!! Very bad really! The issue was created by the ACF plugin! I removed it, I don’t think I will need it anyway. Problem solved!!
YAY!
