activeadmin_quill_editor 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ require 'activeadmin/quill_editor/engine'
@@ -0,0 +1,9 @@
1
+ require 'active_admin'
2
+
3
+ module ActiveAdmin
4
+ module QuillEditor
5
+ class Engine < ::Rails::Engine
6
+ engine_name 'activeadmin_quill_editor'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ module ActiveAdmin
2
+ module QuillEditor
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ require 'activeadmin/quill_editor'
2
+
3
+ require 'formtastic/inputs/quill_editor_input'
@@ -0,0 +1,17 @@
1
+ module Formtastic
2
+ module Inputs
3
+ class QuillEditorInput < Formtastic::Inputs::TextInput
4
+ def to_html
5
+ input_wrapping do
6
+ label_html <<
7
+ template.content_tag( :div, input_html_options.merge( class: 'quill-editor' ) ) do
8
+ builder.hidden_field( input_name ) <<
9
+ template.content_tag( :div, class: 'quill-editor-content' ) do
10
+ object.send( method ).try :html_safe
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
Binary file
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activeadmin_quill_editor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mattia Roccoberton
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-10-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activeadmin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ description: An Active Admin plugin to use Quill Rich Text Editor
28
+ email: mat@blocknot.es
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - ".gitignore"
34
+ - Gemfile
35
+ - LICENSE.txt
36
+ - README.md
37
+ - Rakefile
38
+ - activeadmin_quill_editor.gemspec
39
+ - app/assets/javascripts/activeadmin/quill_editor/quill.core.js
40
+ - app/assets/javascripts/activeadmin/quill_editor/quill.js
41
+ - app/assets/javascripts/activeadmin/quill_editor/quill.min.js
42
+ - app/assets/javascripts/activeadmin/quill_editor_input.js
43
+ - app/assets/stylesheets/activeadmin/_quill_editor_input.sass
44
+ - app/assets/stylesheets/activeadmin/quill_editor/quill.bubble.css
45
+ - app/assets/stylesheets/activeadmin/quill_editor/quill.core.css
46
+ - app/assets/stylesheets/activeadmin/quill_editor/quill.snow.css
47
+ - lib/activeadmin/quill_editor.rb
48
+ - lib/activeadmin/quill_editor/engine.rb
49
+ - lib/activeadmin/quill_editor/version.rb
50
+ - lib/activeadmin_quill_editor.rb
51
+ - lib/formtastic/inputs/quill_editor_input.rb
52
+ - screenshot.jpg
53
+ homepage: https://github.com/blocknotes/activeadmin_quill_editor
54
+ licenses:
55
+ - MIT
56
+ metadata: {}
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubyforge_project:
73
+ rubygems_version: 2.6.13
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Quill Editor for ActiveAdmin
77
+ test_files: []