Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huacnlee/actiontext-lite

Lite version of ActionText
https://github.com/huacnlee/actiontext-lite

actiontext gem rails

Last synced: about 1 month ago
JSON representation

Lite version of ActionText

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
```