disabling rich text...
 
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

disabling rich text editor not working

7 Posts
2 Users
0 Reactions
991 Views
Posts: 6
Topic starter
(@wcstamps)
Active Member
Joined: 2 years ago

im using threaded forum and changed the reply form to text but it is still showing rich. cleared plugin and browser cache

6 Replies
Posts: 6
Topic starter
(@wcstamps)
Active Member
Joined: 2 years ago
Reply
5 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5483

The following code will convert all form bodies into textareas:

add_filter( 'wpforo_post_after_init_fields', function( $fields ){
    $fields['body']['type'] = 'textarea';
    return $fields;
} );
Reply
(@wcstamps)
Joined: 2 years ago

Active Member
Posts: 6

@sofy That didnt work. its still showing the rich editor. the problem is that if a user edits their post it puts it all into html. see attached. is this normal? when i edit my post or replies in this forum even though i create them in rich editor it lets me edit it without showing the code.

Reply
(@wcstamps)
Joined: 2 years ago

Active Member
Posts: 6

@sofy also i received these console errors on the page:

jQuery.Deferred exception: wpf_tags.suggest is not a function TypeError: wpf_tags.suggest is not a function
at wpforo_tags_suggest ( https://stampcollectors.us/wp-content/plugins/wpforo/assets/js/ajax.js?ver=2.3.1:1911:14)
at HTMLDocument.<anonymous> ( https://stampcollectors.us/wp-content/plugins/wpforo/assets/js/ajax.js?ver=2.3.1:1356:5)
at e ( https://stampcollectors.us/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27028)
at t ( https://stampcollectors.us/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:27330) undefined
ce.Deferred.exceptionHook @ jquery.min.js?ver=3.7.1:2
jquery.min.js?ver=3.7.1:2 Uncaught TypeError: wpf_tags.suggest is not a function
at wpforo_tags_suggest (ajax.js?ver=2.3.1:1911:14)
at HTMLDocument.<anonymous> (ajax.js?ver=2.3.1:1356:5)
at e (jquery.min.js?ver=3.7.1:2:27028)
at t (jquery.min.js?ver=3.7.1:2:27330)

Reply
(@wcstamps)
Joined: 2 years ago

Active Member
Posts: 6

@sofy i just purchased premium support so ill see if i can get this resolved faster

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 8 years ago

Support Team
Posts: 5483

@wcstamps,

You'll receive an email notification. 

Reply