Currently there is no way to example disable media buttons in rich text field, because settings passed to wp_editor can't be modified.
Hi @timiwahalahti,
Right now the Rich_Text_Field does not support wp_editor settings but we will be revisiting this somewhere down the line.
I think this issue should not be marked as closed, if you are revisiting this at some point.
Makes sense, we will keep feature requests open from now on.
Would like to see this as well.
Still no progress on that? Seems pretty simple to implement with a filter though.
Progress would be great. I wonder if there is a workaround? I fear I will try to do smthing with admin js... meanwhile.
I needed a fix for this myself and quickly spun up a fork of this field without a media button. In case anyone else finds it useful it's here: https://packagist.org/packages/evanshunt/carbon-fields-rich-text-no-media
install with composer require evanshunt/carbon-fields-rich-text-no-media:dev-master or specify a commit.
It's rough and untested, but it seems to meet my needs for the time being.
The Rich_Text_Field supports the ->set_settings() method, which accepts the same settings like the second argument here -- https://developer.wordpress.org/reference/classes/_wp_editors/parse_settings/
Most helpful comment
Makes sense, we will keep feature requests open from now on.