activeadmin_quill_editor 0.2.14 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -5
- data/lib/activeadmin/quill_editor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4c64ad878e1367dbc40efb644f4372e3cc85e726a2dafa9e602f16311f59ba3
|
|
4
|
+
data.tar.gz: c35421055ae083865000d9c02525e715f2a273502c60e026796233a686fce96f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae07acc5c4c31c1d67b7f53056b571c3daaad81d29793cb7a3cb79ae05cc2a8686cced1a899df4e204f9d18b4336d6e324d7daff2490bbe56b9696a7d8508b9a
|
|
7
|
+
data.tar.gz: a46ca361536d05ba54166df559448230c3283a3a9477ead220aece61cc54d6341d3af28fb7e01ac6fbf650e080721f7ca1c2096f78fb650da8d09411f52cb257
|
data/README.md
CHANGED
|
@@ -5,7 +5,10 @@ An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quillj
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
|
-
|
|
8
|
+
After installing Active Admin, add to your Gemfile: `gem 'activeadmin_quill_editor'` (and execute *bundle*)
|
|
9
|
+
|
|
10
|
+
If you installed Active Admin without Webpacker support (default for now):
|
|
11
|
+
|
|
9
12
|
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
|
|
10
13
|
```scss
|
|
11
14
|
@import 'activeadmin/quill_editor/quill.snow';
|
|
@@ -16,13 +19,23 @@ An Active Admin plugin to use [Quill Rich Text Editor](https://github.com/quillj
|
|
|
16
19
|
//= require activeadmin/quill_editor/quill
|
|
17
20
|
//= require activeadmin/quill_editor_input
|
|
18
21
|
```
|
|
19
|
-
- Use the input with `as: :quill_editor` in Active Admin model conf
|
|
20
|
-
|
|
21
|
-
Why 2 separated scripts/styles? In this way you can include a different version of *quill editor* if you like.
|
|
22
22
|
|
|
23
23
|
> **UPDATE FROM VERSION <= 2.0**: please add to your _app/assets/stylesheets/active_admin.scss_ the line `@import 'activeadmin/quill_editor/quill.snow';`
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
If you installed Active Admin with Webpacker support:
|
|
26
|
+
|
|
27
|
+
- Execute in your project root:
|
|
28
|
+
```sh
|
|
29
|
+
yarn add blocknotes/activeadmin_quill_editor
|
|
30
|
+
```
|
|
31
|
+
- Add to your *app/javascript/packs/active_admin.js*:
|
|
32
|
+
```js
|
|
33
|
+
require('activeadmin_quill_editor')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
In your Active Admin models, form configuration, set the text inputs with `as: :quill_editor` where needed.
|
|
38
|
+
|
|
26
39
|
**data-options**: permits to set *quill editor* options directly - see [options list](https://quilljs.com/docs/configuration/)
|
|
27
40
|
|
|
28
41
|
## Examples
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_quill_editor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mattia Roccoberton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeadmin
|