disabling rich text...
 
Notifications
Clear all

disabling rich text editor not working

7 Posts
2 Users
0 Likes
252 Views
Posts: 6
Topic starter
(@wcstamps)
Active Member
Joined: 3 months 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: 3 months ago
Reply
5 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4312

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: 3 months 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: 3 months 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: 3 months 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: 6 years ago

Support Team
Posts: 4312

@wcstamps,

You'll receive an email notification. 

Reply