activeadmin_medium_editor 0.1.2 → 0.1.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d77f176514784cd019c327997c4a229eaca11821
|
|
4
|
+
data.tar.gz: 8f5dae666645ef5f63f9bf49244244c8f6b99d83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7d37eed07de59b10ab0a4008dbb1c683495b8ba630c7b0aac23f0a4dc3dbdafdc06f2dd9a164713daa4b3a6b4e19df199d4e7a7977c83a781df81dc2b4a4501
|
|
7
|
+
data.tar.gz: f352847ed4321b086938420f9df2a70b9b20097f5a21b9577b2ffaa40c350d1c07edf571a858ad5f7edf4324f093e951707b2b61294227c439990dd359fdaac6
|
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@ An Active Admin plugin to use [medium-editor](https://github.com/yabwe/medium-ed
|
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
*Usage*: select some text in the input, a pop-up menu is shown with the available buttons
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ After some text of the input is selected a pop-up menu is shown.
|
|
|
14
14
|
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
|
|
15
15
|
```css
|
|
16
16
|
@import 'activeadmin/medium_editor_input';
|
|
17
|
-
@import 'activeadmin/medium_editor/themes/default'; // or another theme
|
|
17
|
+
@import 'activeadmin/medium_editor/themes/default.css'; // or another theme
|
|
18
18
|
```
|
|
19
19
|
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
|
|
20
20
|
```js
|
|
@@ -25,7 +25,7 @@ After some text of the input is selected a pop-up menu is shown.
|
|
|
25
25
|
|
|
26
26
|
Why 2 separated scripts? In this way you can include a different version of *medium-editor* if you like.
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Options
|
|
29
29
|
|
|
30
30
|
**data-options**: permits to set *medium-editor* options directly - see [options list](https://github.com/yabwe/medium-editor#mediumeditor-options)
|
|
31
31
|
|
|
@@ -53,6 +53,12 @@ With the current version of Medium Editor some default buttons seem to not work
|
|
|
53
53
|
|
|
54
54
|
If some of this feature are needed I could suggest to override the button behavior or to use custom style classes. See the Medium Editor documentation for details.
|
|
55
55
|
|
|
56
|
+
## Do you like it? Star it!
|
|
57
|
+
|
|
58
|
+
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
|
|
59
|
+
|
|
60
|
+
Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
|
|
61
|
+
|
|
56
62
|
## Contributors
|
|
57
63
|
|
|
58
64
|
- [Mattia Roccoberton](http://blocknot.es) - creator, maintainer
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_medium_editor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
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-
|
|
11
|
+
date: 2017-10-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeadmin
|