The post editor doe...
 
Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum   wpForo Support Forum

[Solved] The post editor doesnt have a close button  

  RSS

jai9mareddy
(@jai9mareddy)
Member Customer
Joined: 1 year ago
Posts: 20
31/10/2019 9:16 pm  

Some more issues like, the editor in which user types, doesnt have a close button. Only maximize screen option is present in the editor. Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc.


Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3242
01/11/2019 10:56 pm  

@jai9mareddy,

We'll take this under consideration. Just specify which layout and which editor exactly you mean. There are many types of editors n different forum layouts.

Posted by: @jai9mareddy

Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc

That's very easy to do with 'wpforo_editor_settings' filter hook. Put this code in your current active WordPress theme functions.php file. You can see all button names in 3rd line of this code, just remove whichever you want.

function wpforo_custom_editor_toolbar( $settings ){
if( isset($settings['tinymce']['toolbar1']) ){
$settings['tinymce']['toolbar1'] = 'fontsizeselect,bold,italic,underline,strikethrough,forecolor,bullist,numlist,hr,alignleft,aligncenter,alignright,alignjustify,link,unlink,blockquote,pre,wpf_spoil,undo,redo,pastetext,source_code,emoticons,fullscreen';
}
return $settings;
}
add_filter('wpforo_editor_settings', 'wpforo_custom_editor_toolbar', 12);

How to Easily Add Custom Code in WordPress (without Breaking Your Site)


Kota
 Kota
(@kota)
New Member
Joined: 7 months ago
Posts: 4
28/01/2020 1:08 pm  

Hello Tom,

Wpforo is great forum plugin, thank you. 

Posted by: @jai9mareddy

Moreover we also want to remove some unwanted options from editor like blackquote, code, spoiler, source code, emozi etc

I also would like to do like this, so attached your code in current active theme(attached image). But it didn't work. There is still many options.

 2020 01 28 18.02.36

 Please let me know how to do. Thank you for your support!


Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3242
28/01/2020 1:38 pm  

Hi @kota,

The code is provided to allow you remove any button you want. It's not provided to just copy and paste. Please let me know what exactly you would like to do? What toolbar buttons you'd like to remove?

 


Kota
 Kota
(@kota)
New Member
Joined: 7 months ago
Posts: 4
28/01/2020 3:46 pm  

Hi Tom, 

Thank you for quick response. I would like to remove all buttons from font-size to emoji. 


Tom
 Tom
(@tomson)
Support Team Admin
Joined: 5 years ago
Posts: 3242
28/01/2020 4:05 pm  

So you want to remove all toolbar buttons?


Kota
 Kota
(@kota)
New Member
Joined: 7 months ago
Posts: 4
28/01/2020 4:08 pm  

Yes. Is it possible?


Elvina
(@elvina)
Noble Member Moderator
Joined: 11 months ago
Posts: 1228
28/01/2020 6:08 pm  

Navigate to Dashboard > Forums > Settings > Styles admin page, put the following CSS code in "Custom CSS Code" textarea:


#wpforo-wrap .mce-toolbar .mce-btn-group {
    display: none;
}

Don't forget to delete all caches and press CTRL+F5 on frontend before checking.


Kota
 Kota
(@kota)
New Member
Joined: 7 months ago
Posts: 4
28/01/2020 7:07 pm  

Hello Elvina,

It worked, thank you! Quick responses were very helpful for me, I think Wpforo is great forum plugin!


Share: