basecamp / basecamp/trix

How would you use variables in Trix, if possible?

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

Description

If we allow our users to add variables inside the Trix field, like this:
```
{{some_variable}}
```
That could map to something like `@user.first_name`

How can we replace the Trix text for example with `.gsub` - on which attribute object should we apply it?

It has been asked here, I had the same `ActionText::RichText` error:
https://stackoverflow.com/questions/65327776/embedding-variable-inside-text-using-trix?noredirect=1#comment129433161_65327776

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.