Carbon-fields: Modify Rich Text

Created on 27 Mar 2018  路  2Comments  路  Source: htmlburger/carbon-fields

Version

  • Carbon Fields: 2.2.0
  • WordPress: 4.9
  • PHP: 7

Can modify the looks of 'rich text'. Example : hide media button

feature [status] fixed in dev

Most helpful comment

Hi @sanjayatony ,

I've added crb_media_buttons_html filter (development branch) with which you can remove the media buttons from a rich_text field. This will be added in the next release.
Example:
add_filter( 'crb_media_buttons_html', function( $html, $field_name ) { if ( $field_name === 'rich_text_field_name_here' ) { return; } return $html; }, 10, 2);

All 2 comments

Hi @sanjayatony ,

I've added crb_media_buttons_html filter (development branch) with which you can remove the media buttons from a rich_text field. This will be added in the next release.
Example:
add_filter( 'crb_media_buttons_html', function( $html, $field_name ) { if ( $field_name === 'rich_text_field_name_here' ) { return; } return $html; }, 10, 2);

Thanks man!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emohamed picture emohamed  路  3Comments

Roman52 picture Roman52  路  3Comments

abdusfauzi picture abdusfauzi  路  3Comments

kaleidoscopique picture kaleidoscopique  路  3Comments

Mick00 picture Mick00  路  3Comments