activeadmin_froala_editor 0.1.1 → 0.1.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2c12e486936ade79ce0cd6fa77150e8a77dc0e1
|
4
|
+
data.tar.gz: c4a5a2ab644d031a3f5edfe1177ff3697e070409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23cdd0af760828bee8b9a44abb570ea492581502d0a0571a8ef360daae0c5424b22690402d982a47a3631c8a468638eadf62efbfac6e068558fd24b29c8c7675
|
7
|
+
data.tar.gz: cdd7ea07bb83b06315794d8c4577cf78340a62e826f3285a1a4e4c4bcc21acc98e8d84ae8d6bd377f615d9aa2fda7e1c2967e39ed6273b5d9223ae5845e2e1fe
|
data/README.md
CHANGED
@@ -2,19 +2,13 @@
|
|
2
2
|
|
3
3
|
An Active Admin plugin to use [Froala WYSIWYG editor](https://github.com/froala/wysiwyg-editor) (jQuery required, font-awesome required & included)
|
4
4
|
|
5
|
-
Features:
|
6
|
-
|
7
|
-
- modern UI
|
8
|
-
- many options available
|
9
|
-
- customizable
|
10
|
-
|
11
5
|
![screenshot](screenshot.jpg)
|
12
6
|
|
7
|
+
For Froala license / pricing see Froala website.
|
8
|
+
|
13
9
|
## Install
|
14
10
|
|
15
|
-
-
|
16
|
-
`gem 'activeadmin_froala_editor'`
|
17
|
-
- Execute bundle
|
11
|
+
- Update your Gemfile: `gem 'activeadmin_froala_editor'` (and execute *bundle*)
|
18
12
|
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
|
19
13
|
```css
|
20
14
|
@import 'font-awesome/font-awesome';
|
@@ -27,7 +21,7 @@ Features:
|
|
27
21
|
```
|
28
22
|
- Use the input with `as: :froala_editor` in Active Admin model conf
|
29
23
|
|
30
|
-
Why 2 separated scripts? In this way you can include a different version of *froala editor* if you like.
|
24
|
+
Why 2 separated scripts? In this way you can include a different version of *froala editor* if you like. The same for FontAwesome.
|
31
25
|
|
32
26
|
## Options
|
33
27
|
|
@@ -49,13 +43,15 @@ Why 2 separated scripts? In this way you can include a different version of *fro
|
|
49
43
|
|
50
44
|
Toolbar buttons configuration:
|
51
45
|
|
52
|
-
|
46
|
+
```ruby
|
47
|
+
f.input :description, as: :froala_editor, input_html: {data: {options: {toolbarButtons: ['undo', 'redo', '|', 'bold', 'italic']}}}
|
48
|
+
```
|
53
49
|
|
54
50
|
## Notes
|
55
51
|
|
56
|
-
-
|
52
|
+
- *Code View* function doesn't work properly with this plugin
|
57
53
|
|
58
|
-
-
|
54
|
+
- For upload functions (Images, Documents, Files, etc.) see Froala docs
|
59
55
|
|
60
56
|
## Do you like it? Star it!
|
61
57
|
|
@@ -69,4 +65,6 @@ Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8
|
|
69
65
|
|
70
66
|
## License
|
71
67
|
|
72
|
-
|
68
|
+
Froala License: see Froala website
|
69
|
+
|
70
|
+
Plugin License: [MIT](LICENSE.txt)
|
@@ -1,5 +1,5 @@
|
|
1
|
-
@import 'activeadmin/froala_editor/froala_editor.pkgd
|
2
|
-
@import 'activeadmin/froala_editor/froala_style
|
1
|
+
@import 'activeadmin/froala_editor/froala_editor.pkgd'
|
2
|
+
@import 'activeadmin/froala_editor/froala_style'
|
3
3
|
|
4
4
|
body.active_admin form .froala_editor
|
5
5
|
i.fa
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_froala_editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Roccoberton
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|