formtastic-epiceditor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +96 -0
- data/MIT-LICENSE +20 -0
- data/README.md +29 -0
- data/Rakefile +38 -0
- data/formtastic-epiceditor.gemspec +20 -0
- data/lib/formtastic-epiceditor/inputs/epic_editor_input.rb +45 -0
- data/lib/formtastic-epiceditor/version.rb +3 -0
- data/lib/formtastic-epiceditor.rb +10 -0
- data/lib/tasks/formtastic-epiceditor_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/formtastic-epiceditor_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/vendor/assets/images/epiceditor/edit.png +0 -0
- data/vendor/assets/images/epiceditor/fullscreen.png +0 -0
- data/vendor/assets/images/epiceditor/preview.png +0 -0
- data/vendor/assets/javascripts/epiceditor/epiceditor.js +2141 -0
- data/vendor/assets/javascripts/epiceditor/epiceditor.min.js +4 -0
- data/vendor/assets/stylesheets/epiceditor/_activeadmin.scss +7 -0
- data/vendor/assets/stylesheets/epiceditor/themes/base/epiceditor.css +50 -0
- data/vendor/assets/stylesheets/epiceditor/themes/editor/epic-dark.css +13 -0
- data/vendor/assets/stylesheets/epiceditor/themes/editor/epic-light.css +12 -0
- data/vendor/assets/stylesheets/epiceditor/themes/preview/bartik.css +167 -0
- data/vendor/assets/stylesheets/epiceditor/themes/preview/github.css +368 -0
- data/vendor/assets/stylesheets/epiceditor/themes/preview/preview-dark.css +121 -0
- metadata +148 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
html { padding:0 10px; }
|
2
|
+
|
3
|
+
body {
|
4
|
+
margin:0;
|
5
|
+
padding:10px 0;
|
6
|
+
background:#000;
|
7
|
+
}
|
8
|
+
|
9
|
+
#epiceditor-preview h1,
|
10
|
+
#epiceditor-preview h2,
|
11
|
+
#epiceditor-preview h3,
|
12
|
+
#epiceditor-preview h4,
|
13
|
+
#epiceditor-preview h5,
|
14
|
+
#epiceditor-preview h6,
|
15
|
+
#epiceditor-preview p,
|
16
|
+
#epiceditor-preview blockquote {
|
17
|
+
margin: 0;
|
18
|
+
padding: 0;
|
19
|
+
}
|
20
|
+
#epiceditor-preview {
|
21
|
+
background:#000;
|
22
|
+
font-family: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
|
23
|
+
font-size: 13px;
|
24
|
+
line-height: 18px;
|
25
|
+
color: #ccc;
|
26
|
+
}
|
27
|
+
#epiceditor-preview a {
|
28
|
+
color: #fff;
|
29
|
+
}
|
30
|
+
#epiceditor-preview a:hover {
|
31
|
+
color: #00ff00;
|
32
|
+
text-decoration: none;
|
33
|
+
}
|
34
|
+
#epiceditor-preview a img {
|
35
|
+
border: none;
|
36
|
+
}
|
37
|
+
#epiceditor-preview p {
|
38
|
+
margin-bottom: 9px;
|
39
|
+
}
|
40
|
+
#epiceditor-preview h1,
|
41
|
+
#epiceditor-preview h2,
|
42
|
+
#epiceditor-preview h3,
|
43
|
+
#epiceditor-preview h4,
|
44
|
+
#epiceditor-preview h5,
|
45
|
+
#epiceditor-preview h6 {
|
46
|
+
color: #cdcdcd;
|
47
|
+
line-height: 36px;
|
48
|
+
}
|
49
|
+
#epiceditor-preview h1 {
|
50
|
+
margin-bottom: 18px;
|
51
|
+
font-size: 30px;
|
52
|
+
}
|
53
|
+
#epiceditor-preview h2 {
|
54
|
+
font-size: 24px;
|
55
|
+
}
|
56
|
+
#epiceditor-preview h3 {
|
57
|
+
font-size: 18px;
|
58
|
+
}
|
59
|
+
#epiceditor-preview h4 {
|
60
|
+
font-size: 16px;
|
61
|
+
}
|
62
|
+
#epiceditor-preview h5 {
|
63
|
+
font-size: 14px;
|
64
|
+
}
|
65
|
+
#epiceditor-preview h6 {
|
66
|
+
font-size: 13px;
|
67
|
+
}
|
68
|
+
#epiceditor-preview hr {
|
69
|
+
margin: 0 0 19px;
|
70
|
+
border: 0;
|
71
|
+
border-bottom: 1px solid #ccc;
|
72
|
+
}
|
73
|
+
#epiceditor-preview blockquote {
|
74
|
+
padding: 13px 13px 21px 15px;
|
75
|
+
margin-bottom: 18px;
|
76
|
+
font-family:georgia,serif;
|
77
|
+
font-style: italic;
|
78
|
+
}
|
79
|
+
#epiceditor-preview blockquote:before {
|
80
|
+
content:"\201C";
|
81
|
+
font-size:40px;
|
82
|
+
margin-left:-10px;
|
83
|
+
font-family:georgia,serif;
|
84
|
+
color:#eee;
|
85
|
+
}
|
86
|
+
#epiceditor-preview blockquote p {
|
87
|
+
font-size: 14px;
|
88
|
+
font-weight: 300;
|
89
|
+
line-height: 18px;
|
90
|
+
margin-bottom: 0;
|
91
|
+
font-style: italic;
|
92
|
+
}
|
93
|
+
#epiceditor-preview code, #epiceditor-preview pre {
|
94
|
+
font-family: Monaco, Andale Mono, Courier New, monospace;
|
95
|
+
}
|
96
|
+
#epiceditor-preview code {
|
97
|
+
background-color: #000;
|
98
|
+
color: #f92672;
|
99
|
+
padding: 1px 3px;
|
100
|
+
font-size: 12px;
|
101
|
+
-webkit-border-radius: 3px;
|
102
|
+
-moz-border-radius: 3px;
|
103
|
+
border-radius: 3px;
|
104
|
+
}
|
105
|
+
#epiceditor-preview pre {
|
106
|
+
display: block;
|
107
|
+
padding: 14px;
|
108
|
+
color:#66d9ef;
|
109
|
+
margin: 0 0 18px;
|
110
|
+
line-height: 16px;
|
111
|
+
font-size: 11px;
|
112
|
+
border: 1px solid #d9d9d9;
|
113
|
+
white-space: pre-wrap;
|
114
|
+
word-wrap: break-word;
|
115
|
+
}
|
116
|
+
#epiceditor-preview pre code {
|
117
|
+
background-color: #000;
|
118
|
+
color:#ccc;
|
119
|
+
font-size: 11px;
|
120
|
+
padding: 0;
|
121
|
+
}
|
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: formtastic-epiceditor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ad Taylor
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.9
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.9
|
30
|
+
description:
|
31
|
+
email:
|
32
|
+
- ad@metaunion.co.uk
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- .gitignore
|
38
|
+
- Gemfile
|
39
|
+
- Gemfile.lock
|
40
|
+
- MIT-LICENSE
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- formtastic-epiceditor.gemspec
|
44
|
+
- lib/formtastic-epiceditor.rb
|
45
|
+
- lib/formtastic-epiceditor/inputs/epic_editor_input.rb
|
46
|
+
- lib/formtastic-epiceditor/version.rb
|
47
|
+
- lib/tasks/formtastic-epiceditor_tasks.rake
|
48
|
+
- test/dummy/README.rdoc
|
49
|
+
- test/dummy/Rakefile
|
50
|
+
- test/dummy/app/assets/javascripts/application.js
|
51
|
+
- test/dummy/app/assets/stylesheets/application.css
|
52
|
+
- test/dummy/app/controllers/application_controller.rb
|
53
|
+
- test/dummy/app/helpers/application_helper.rb
|
54
|
+
- test/dummy/app/mailers/.gitkeep
|
55
|
+
- test/dummy/app/models/.gitkeep
|
56
|
+
- test/dummy/app/views/layouts/application.html.erb
|
57
|
+
- test/dummy/config.ru
|
58
|
+
- test/dummy/config/application.rb
|
59
|
+
- test/dummy/config/boot.rb
|
60
|
+
- test/dummy/config/database.yml
|
61
|
+
- test/dummy/config/environment.rb
|
62
|
+
- test/dummy/config/environments/development.rb
|
63
|
+
- test/dummy/config/environments/production.rb
|
64
|
+
- test/dummy/config/environments/test.rb
|
65
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
66
|
+
- test/dummy/config/initializers/inflections.rb
|
67
|
+
- test/dummy/config/initializers/mime_types.rb
|
68
|
+
- test/dummy/config/initializers/secret_token.rb
|
69
|
+
- test/dummy/config/initializers/session_store.rb
|
70
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
71
|
+
- test/dummy/config/locales/en.yml
|
72
|
+
- test/dummy/config/routes.rb
|
73
|
+
- test/dummy/lib/assets/.gitkeep
|
74
|
+
- test/dummy/log/.gitkeep
|
75
|
+
- test/dummy/public/404.html
|
76
|
+
- test/dummy/public/422.html
|
77
|
+
- test/dummy/public/500.html
|
78
|
+
- test/dummy/public/favicon.ico
|
79
|
+
- test/dummy/script/rails
|
80
|
+
- test/formtastic-epiceditor_test.rb
|
81
|
+
- test/test_helper.rb
|
82
|
+
- vendor/assets/images/epiceditor/edit.png
|
83
|
+
- vendor/assets/images/epiceditor/fullscreen.png
|
84
|
+
- vendor/assets/images/epiceditor/preview.png
|
85
|
+
- vendor/assets/javascripts/epiceditor/epiceditor.js
|
86
|
+
- vendor/assets/javascripts/epiceditor/epiceditor.min.js
|
87
|
+
- vendor/assets/stylesheets/epiceditor/_activeadmin.scss
|
88
|
+
- vendor/assets/stylesheets/epiceditor/themes/base/epiceditor.css
|
89
|
+
- vendor/assets/stylesheets/epiceditor/themes/editor/epic-dark.css
|
90
|
+
- vendor/assets/stylesheets/epiceditor/themes/editor/epic-light.css
|
91
|
+
- vendor/assets/stylesheets/epiceditor/themes/preview/bartik.css
|
92
|
+
- vendor/assets/stylesheets/epiceditor/themes/preview/github.css
|
93
|
+
- vendor/assets/stylesheets/epiceditor/themes/preview/preview-dark.css
|
94
|
+
homepage: https://github.com/MetaUnion/formtastic-epiceditor
|
95
|
+
licenses: []
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - ! '>='
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0'
|
106
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ! '>='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 1.8.24
|
115
|
+
signing_key:
|
116
|
+
specification_version: 3
|
117
|
+
summary: Adds Epic Editor as a content type to formtastic.
|
118
|
+
test_files:
|
119
|
+
- test/dummy/app/assets/javascripts/application.js
|
120
|
+
- test/dummy/app/assets/stylesheets/application.css
|
121
|
+
- test/dummy/app/controllers/application_controller.rb
|
122
|
+
- test/dummy/app/helpers/application_helper.rb
|
123
|
+
- test/dummy/app/views/layouts/application.html.erb
|
124
|
+
- test/dummy/config/application.rb
|
125
|
+
- test/dummy/config/boot.rb
|
126
|
+
- test/dummy/config/database.yml
|
127
|
+
- test/dummy/config/environment.rb
|
128
|
+
- test/dummy/config/environments/development.rb
|
129
|
+
- test/dummy/config/environments/production.rb
|
130
|
+
- test/dummy/config/environments/test.rb
|
131
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
132
|
+
- test/dummy/config/initializers/inflections.rb
|
133
|
+
- test/dummy/config/initializers/mime_types.rb
|
134
|
+
- test/dummy/config/initializers/secret_token.rb
|
135
|
+
- test/dummy/config/initializers/session_store.rb
|
136
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
137
|
+
- test/dummy/config/locales/en.yml
|
138
|
+
- test/dummy/config/routes.rb
|
139
|
+
- test/dummy/config.ru
|
140
|
+
- test/dummy/public/404.html
|
141
|
+
- test/dummy/public/422.html
|
142
|
+
- test/dummy/public/500.html
|
143
|
+
- test/dummy/public/favicon.ico
|
144
|
+
- test/dummy/Rakefile
|
145
|
+
- test/dummy/README.rdoc
|
146
|
+
- test/dummy/script/rails
|
147
|
+
- test/formtastic-epiceditor_test.rb
|
148
|
+
- test/test_helper.rb
|