activeadmin_quill_editor 0.2.14 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7753c8dd83c60cefca6563d97fce39d8bab5700b34a7743aa25883c38d25ef76
4
- data.tar.gz: e1c19c3ae07c4d87ff02bb74bb2a3dd3098167af2f81ee64d4ed13db49beaa1e
3
+ metadata.gz: a4c64ad878e1367dbc40efb644f4372e3cc85e726a2dafa9e602f16311f59ba3
4
+ data.tar.gz: c35421055ae083865000d9c02525e715f2a273502c60e026796233a686fce96f
5
5
  SHA512:
6
- metadata.gz: fd14145642d29d478e3104a9db887db24cb01af272333d4460df6b478eeeb0c3afcd6b1a50daa1ba87548cb9a80b7c1a88a5f2768ddbdbe71d6322fe8724ec76
7
- data.tar.gz: 65ead39b7cda9cd0d4941de56a83cb66052b1cdf3b4b04dc5bd256ecbbdbffa7ef2ebaa4d9940f46b96c146f0ad73152ba4275f14b2deedfa431fdecb421b046
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
  ![screenshot](screenshot.png)
6
6
 
7
7
  ## Install
8
- - After installing Active Admin, add to your Gemfile: `gem 'activeadmin_quill_editor'` (and execute *bundle*)
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
- ## Options
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveAdmin
4
4
  module QuillEditor
5
- VERSION = '0.2.14'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
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.2.14
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-09-10 00:00:00.000000000 Z
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin