In a multisite install with WordPress 4.0, Buddupress 2.1.1, the twenty-thirteen theme and all plugins disabled, I am adding the WP visual editor to message pages through the following function in the mu-plugins folder:
The editor loads and it works, but it is missing most of the div wraps and classes of a normal implementation (for instance adding the same function to WP comments).
After digging around a little, I found out that the editor is not loaded normally through the wp_editor() function in the general-template.php (as happens in the WP comments), but instead BP calls directly the editor_js() function in class-wp-editor.php.
Another consequence of this is that if you set quicktags to true, the visual tab and functionality disappear completely and you just get a textarea with the quicktags buttons above and no other html markup before and after.
Any idea why this happens and how can it be amended?
The topic ‘Visual editor broken when loaded in message pages’ is closed to new replies.
@gebar
10 years, 2 months ago
In a multisite install with WordPress 4.0, Buddupress 2.1.1, the twenty-thirteen theme and all plugins disabled, I am adding the WP visual editor to message pages through the following function in the mu-plugins folder:
The editor loads and it works, but it is missing most of the div wraps and classes of a normal implementation (for instance adding the same function to WP comments).
After digging around a little, I found out that the editor is not loaded normally through the wp_editor() function in the general-template.php (as happens in the WP comments), but instead BP calls directly the editor_js() function in class-wp-editor.php.
Another consequence of this is that if you set quicktags to true, the visual tab and functionality disappear completely and you just get a textarea with the quicktags buttons above and no other html markup before and after.
Any idea why this happens and how can it be amended?