avo-lexxy_field 0.1.3 → 0.1.4
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 +1 -0
- data/lib/avo/lexxy_field/fields/lexxy_field.rb +5 -0
- data/lib/avo/lexxy_field/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b52b79c6fe3a02e1a97d8a8deef64ae1380a9ba9c4fccd11791248d3d7dce049
|
|
4
|
+
data.tar.gz: 3c6863cff2c8e511e4d21c5d52f5702746eb2d789f3d9f881a0ce871450d92f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25b75c629f465ac63551c0d7711956c3333321b8ad919e09bf2048e5a462673ce9a212f3ba87050d46f4b0adf9c2669e0ec00b8e6db4205c7d1d81b42dd1b7fe
|
|
7
|
+
data.tar.gz: 277ebf2944e09cde6a9d6ed4caba8fa614896721830e7d5018ac4ddfb154b93b346cc8c15d9926959d365d555e5abfac47b9f6008810db4b6367b55d658de561
|
data/README.md
CHANGED
|
@@ -33,6 +33,7 @@ field :body, as: :lexxy
|
|
|
33
33
|
| Option | Default | Description |
|
|
34
34
|
| ------ | ------- | ----------- |
|
|
35
35
|
| `always_show` | `false` | Show the full content on the show view instead of the truncated preview. |
|
|
36
|
+
| `stacked` | `true` | Render the label above the editor so it spans the full row. Pass `false` for the side-by-side layout the other fields use. |
|
|
36
37
|
| `attachments_disabled` | `false` for Action Text attributes, `true` otherwise | Disable file attachments. Lexxy uploads through Active Storage direct uploads and relies on Action Text to attach the blobs, so plain columns have attachments disabled by default to avoid orphaned blobs. |
|
|
37
38
|
|
|
38
39
|
### Editor configuration
|
|
@@ -24,6 +24,11 @@ module Avo
|
|
|
24
24
|
|
|
25
25
|
hide_on :index
|
|
26
26
|
|
|
27
|
+
# A rich text editor needs the whole row. `full_width` on the wrapper
|
|
28
|
+
# only widens it inside the side-by-side content column, so stack it
|
|
29
|
+
# too — `stacked: false` still opts back out.
|
|
30
|
+
@stacked = args.fetch(:stacked, true)
|
|
31
|
+
|
|
27
32
|
@always_show = args[:always_show] || false
|
|
28
33
|
@attachments_disabled = args[:attachments_disabled]
|
|
29
34
|
@editor_options = args.slice(*EDITOR_OPTIONS)
|