basecamp / basecamp/trix

Multiple configurations per app?

Open
#681 16 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

I was wondering if there was a way to specify multiple configurations of Trix per application?

In my example, I want to use Trix in a very basic form (only Bold, Italic, etc... available) in one place, but also have the full editor available in another place. Right now I can configure a custom toolbar per editor which hides the extra functions, but this doesn't prevent the extra functions getting triggered should someone paste in applicable text from another application (e.g. I don't want to allow lists, but one can paste in a list even if the list button isn't on the toolbar).

I know I can disable lists globally by editing the `Trix.config` object but I was wondering if there was a way to have multiple Trix objects, or multiple configurations per the one global?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.