Skip to content

attachments="false" do not hide the image button in toolbar #307

@AlexB52

Description

@AlexB52

Hi,

When attachments: false on a rich_textarea: <%= form.rich_textarea :content, attachments: false %> we get these behaviours:

  • No images appear in the editor on upload
  • Drag and drop is disabled
  • Pasting images is disabled
  • Dev console to warn: This editor does not support attachments (it's configured with [attachments=false])

From that I would also assume the upload icon should not show up as well

Actual behaviour:
The image button on the toolbar is displayed.

Expected behaviour:
The image button on the toolbar is removed.

Happy to provide a PR if this is considered a bug, and contributions are welcome.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions