AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] Customizable editor

11 Posts
4 Users
7 Reactions
2,704 Views
Posts: 16
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@ananimelover)
Eminent Member
Joined: 4 years ago
[#19601]

This is a continuation from my question about adding tables. I wanted to draw wider attention to the editor as a whole. In the original topic, I asked if the editor could be expanded upon, specifically to allow the editor menu to be visible. I've since gotten it to work by editing the php myself in combination with the Advanced Editor Tools plugin. 

There's an interesting effect where half of the toolbar works when drafting a post and the other half when editing the post, eventhough all instances of php hooks which calls the editor buttons look exactly the same.

Needless to say, trying to get wpForo to comply with your needs by editing the php isn't very user-friendly. At the same time, the editor options wpForo does give by default are limited to put it nicely. 

I'd like for wpForo 2.0 to have either a richer text editor or, better yet, a customizable text editor like the Advanced Editor Tools. Alternatively, to have AET intergration and take over wpForo's classic editor completely.


10 Replies
Chris
Posts: 3609
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @ananimelover,

wpForo editor is the same TinyMCE editor, it'll not be changed in 2.0 version,


7 Replies
(@ananimelover)
Joined: 4 years ago

Eminent Member
Posts: 16
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris maybe an idea for a paid addon though?


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3609
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@ananimelover,

in Dashboard > Plugins > Add New, Search for TinyMCE and in the list you can try to find a plugin which will make the TinyMCE editor More reacher.


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3609
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

For Example: https://wordpress.org/plugins/tinymce-advanced/

We hadn't checked this plugin workability, so you can try yourself.


(@wp-henne)
Joined: 3 years ago

Trusted Member
Posts: 29
Chris
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

Hello @chris,

i have tried div. things, but i get no success with the mentioned plugin with the current wpForo and no matter which theme (2022 or Classic) and no matter which layout.

Has something changed after all?


Tutrix
(@tutrix)
Joined: 6 years ago

Noble Member
Posts: 1519
Chris
Chris
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@wp-henne 

what function are you missing in the editor
you can add this via the functions.php of your wp-theme
example see attachment

 

 TinyMCE

(@wp-henne)
Joined: 3 years ago

Trusted Member
Posts: 29
Chris
Chris
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@tutrix genial!

I'd like to ad two buttons to have easy access for shortcodes. So the buttons "only" need to paste some fixed text o - when it's possible - the current user-id.

I'm familar with adding via functions.php. I've found a solution here to eleminate some buttons.

So i'm very pleased, if you will give me a lift 🙂

 


(@wp-henne)
Joined: 3 years ago

Trusted Member
Posts: 29
Chris
Chris
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@tutrix 

https://wpforo.com/community/postid/47409/

That's what I found, how something is removed. But how does it go in the other way?


Tutrix
Posts: 1519
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tutrix)
Noble Member
Joined: 6 years ago

Posted by: @wp-henne

So i'm very pleased, if you will give me a lift 🙂

the open source plugins for the editor you can see here > https://www.tiny.cloud/docs/tinymce/6/plugins/
you can activate all of them for wpforo
if there is one for your purposes you have to test
maybe the template plugin


Tutrix
Posts: 1519
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@tutrix)
Noble Member
Joined: 6 years ago

Posted by: @wp-henne

ut how does it go in the other way?

my code for more buttons currently looks like this

add_filter( 'wpforo_editor_settings', function( $settings ){
if ( empty( $settings['tinymce'] ) || ! is_array( $settings['tinymce'] ) )
$settings['tinymce'] = [];
$settings['plugins']             = 'compat3x,fullscreen,hr,paste,textcolor,lists,table,visualblocks,visualchars,insertdatetime,charmap,searchreplace,anchor,advlist';
$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';
$settings['tinymce']['toolbar2'] = 'cut,subscript,superscript,outdent,indent,backcolor,removeformat,table,visualblocks,visualchars,insertdatetime,formats,charmap,styleselect,fontselect,searchreplace,anchor';
return $settings;
});

toolbar 1 standard buttons
toolbar 2 new Buttons

remove buttons you don't need

the missing TinyMCE plugins you have to add under
wp-includes > js > tinymce > plugins

so that the buttons are not displayed in the signature editor, add the empty toolbar2

		/**
		 * start init tinymce settings
		 */
		$wp_editor_settings                        = WPF()->tpl->editor_buttons();
		$wp_editor_settings['tinymce']['toolbar1'] = 'bold,italic,link,unlink,undo,redo,source_code,emoticons';
		$wp_editor_settings['tinymce']['toolbar2'] = '';
		$wp_editor_settings['plugins']             = '';

wpforo > classes > member.php

 

 wpForo Editor

Share: