https://github.com/huacnlee/actiontext-lite
Lite version of ActionText
https://github.com/huacnlee/actiontext-lite
actiontext gem rails
Last synced: 10 months ago
JSON representation
Lite version of ActionText
- Host: GitHub
- URL: https://github.com/huacnlee/actiontext-lite
- Owner: huacnlee
- License: mit
- Created: 2019-10-10T02:39:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T07:50:32.000Z (over 6 years ago)
- Last Synced: 2025-08-30T04:45:00.614Z (10 months ago)
- Topics: actiontext, gem, rails
- Language: Ruby
- Size: 35.2 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ActionText Lite
Lite version of the ActionText.
[ActionText Lite 中文说明](https://ruby-china.org/topics/39130)
## Why use Lite version?
- Action Text integration Trix by default, but that not useful, our users and editors does not like it 😩.
- Active Storage as attachments, sometimes not the best choice, we need public image URLs, so we need CarrierWave.
- Action Text has default HTML sanitize rules, but it too strict, we need text color, image width, and other style attributes... 🥺
## Features
- Same API with ActionText core features, just add Gem to use, no need change codes.🎊
- Give you a clean rich text feature, there is no Trix, no complex HTML sanitize, no ActiveStoreage attachments.
## Using
Add gem into your Gemfile:
```rb
gem "actiontext-lite"
```
Generate ActionText migrations:
> 🎁ActionText Lite used same table name `action_text_rich_texts` like ActionText, so it can be easily combined with existing ActionText projects.
```bash
$ rails action_text_lite:install
```