You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2025. It is now read-only.
# ActiveAdmin Medium Editor [](https://badge.fury.io/rb/activeadmin_medium_editor)[](https://circleci.com/gh/blocknotes/activeadmin_medium_editor)
1
+
# Active Admin Medium Editor [](https://badge.fury.io/rb/activeadmin_medium_editor)[](https://circleci.com/gh/blocknotes/activeadmin_medium_editor)
2
2
3
3
An Active Admin plugin to use [medium-editor](https://github.com/yabwe/medium-editor), a compact and clean WYSIWYG editor.
4
4
5
5

6
6
7
-
*Usage*: select some text in the input, a pop-up menu is shown with the available buttons
7
+
## Usage
8
+
- After the installation, select some text in the editor
9
+
- A pop-up menu is shown with the available buttons
10
+
- Click on a button and the effect will be applied to the selected text
8
11
9
12
## Install
10
-
11
-
- Add to your Gemfile:
12
-
`gem 'activeadmin_medium_editor'`
13
-
- Execute bundle
14
-
- Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
15
-
```css
13
+
- After installing Active Admin, add to your Gemfile: `gem 'activeadmin_medium_editor'` (and execute *bundle*)
14
+
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
15
+
```scss
16
+
@import'activeadmin/medium_editor/medium_editor';
16
17
@import'activeadmin/medium_editor_input';
17
-
@import'activeadmin/medium_editor/themes/default.css'; // or another theme
18
+
@import'activeadmin/medium_editor/themes/default'; // or another theme
18
19
```
19
-
- Add at the end of your ActiveAdmin javascripts (_app/assets/javascripts/active_admin.js_):
20
+
- Add at the end of your Active Admin javascripts (_app/assets/javascripts/active_admin.js_):
With the current version of Medium Editor some default buttons seem to not work properly, from my test they are: "indent", "outdent", "quote", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull"
53
-
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.
57
+
- With the current version of Medium Editor some default buttons seem to not work properly, from my test they are: "indent", "outdent", "quote", "justifyLeft", "justifyCenter", "justifyRight", "justifyFull"
58
+
- 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
59
56
60
## Do you like it? Star it!
57
-
58
61
If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
59
62
60
-
Take a look at [other ActiveAdmincomponents](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
63
+
Take a look at [other Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
61
64
62
65
## Contributors
63
-
64
66
-[Mattia Roccoberton](http://blocknot.es): author
67
+
- The good guys that opened issues and pull requests from time to time
65
68
66
69
## License
67
-
68
-
[MIT](LICENSE.txt)
70
+
- The gem is available as open-source under the terms of the [MIT](LICENSE.txt)
0 commit comments