Notifications
Clear all

wpForo 1.x.x [Solved] Threaded layout "Add Topic" editor related question

4 Posts
2 Users
1 Likes
787 Views
Findbmx
Posts: 14
Topic starter
(@findbmx)
Active Member
Joined: 1 year ago

Hi,

On "Threaded layout" there is a button reads "Add Topic". when clicked, an editor appears which seems different compare to other wpforo editors.

- It's language is primary set to LTR while other editors are relative to wordpress language (I'm running an RTL site). and since it's an iframe i cant change the direction of the editor using css and users need to change the direction using the "" button all the time.

- I tried adding new buttons to Tinymce through function.php, which worked on any other wpforo editors but this one. (link)

wpForo Version
1.9.9
WordPress Version
5.8
7.4
3 Replies
Chris
Posts: 1962
Admin
(@chris)
Support Team
Joined: 1 year ago

Hi @findbmx,

The issue would be solved at the new update release, but we have a code which you can use to make the changes before the new update release.

Before inserting the code below, Please remove all changes you have done to solve the issue and only after that do the following`

1. Insert the code below in your active theme function.php file.

add_filter('wpforo_editor_settings', function($settings){
	$settings['tinymce']['directionality'] = 'rtl';
	$settings['tinymce']['rtl_ui']         = true;
	$settings['tinymce']['toolbar1']      .= ',ltr';
	$settings['plugins']                   = 'hr,lists,textcolor,paste,wpautoresize,fullscreen,directionality';
 
	return $settings;
 });

Check the screenshot below:

2. Go to \wp-content\plugins\wpforo\wpf-assets\js in frontend.js files and insert the code below, under this Code custom_elements: wpforo.editor_settings.tinymce.custom_elements,

directionality:"rtl",
            rtl_ui:true,

Check the screenshot below:

 

Reply
Findbmx
Posts: 14
Topic starter
(@findbmx)
Active Member
Joined: 1 year ago

Thank You Chris,

I gave wpforo a 5star on wordpress forum. link

At first when I edited those files as you said, nothing happened, so I guessed maybe it's a plugin conflict. I deactivated Tinymce Advanced, and it worked. then I reactivated the plugin to see if the problem will repeat, but the problem had been already solved. So I'm not sure if it was a conflict or sth.

Reply
1 Reply
Chris
Admin
(@chris)
Joined: 1 year ago

Support Team
Posts: 1962

@findbmx,

That was not a conflict, it was from the cache.

And Thank you for taking the time to leave us a 5 star rating - it's much appreciated!

Reply
Share: