Trix: Quick way to remove attachment icon from toolbar?

Created on 22 Apr 2020  路  2Comments  路  Source: basecamp/trix

I don't want my users to upload anything, is there a quick way to remove the attachment icon from the toolbar? I looked thru the css and couldn't find a way that worked. Thanks in advance!

Most helpful comment

A sprinkle of CSS in your application is the simplest way:

trix-toolbar .trix-button-group--file-tools {
  display: none;
}

All 2 comments

A sprinkle of CSS in your application is the simplest way:

trix-toolbar .trix-button-group--file-tools {
  display: none;
}

DOH, been spending too much time with TinyMCE and others looking for programmatic settings to manipulate toolbar options when this is sufficient enough. thanks for keeping it simple everyone, don't overthink it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

madikarizma picture madikarizma  路  5Comments

marpstar picture marpstar  路  5Comments

javan picture javan  路  4Comments

lcsqlpete picture lcsqlpete  路  3Comments

WhatFreshHellIsThis picture WhatFreshHellIsThis  路  4Comments