dante-editor-seo 0.0.13
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 +7 -0
- data/.gitignore +40 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +23 -0
- data/Gemfile.lock +140 -0
- data/Procfile +1 -0
- data/README.md +187 -0
- data/ROADMAP.md +10 -0
- data/TODO.md +30 -0
- data/app/assets/fonts/dante/dante.eot +0 -0
- data/app/assets/fonts/dante/dante.svg +14 -0
- data/app/assets/fonts/dante/dante.ttf +0 -0
- data/app/assets/fonts/dante/dante.woff +0 -0
- data/app/assets/fonts/dante/fontello.eot +0 -0
- data/app/assets/fonts/dante/fontello.svg +36 -0
- data/app/assets/fonts/dante/fontello.ttf +0 -0
- data/app/assets/fonts/dante/fontello.woff +0 -0
- data/app/assets/images/dante/media-loading-placeholder.png +0 -0
- data/app/assets/javascripts/dante/dante.js.coffee.erb +10 -0
- data/app/assets/javascripts/dante/editor.js.coffee +1250 -0
- data/app/assets/javascripts/dante/menu.js.coffee +216 -0
- data/app/assets/javascripts/dante/popover.js.coffee +75 -0
- data/app/assets/javascripts/dante/tooltip.js.coffee +82 -0
- data/app/assets/javascripts/dante/tooltip_widget.js.coffee +10 -0
- data/app/assets/javascripts/dante/tooltip_widgets/embed.js.coffee +60 -0
- data/app/assets/javascripts/dante/tooltip_widgets/extract.js.coffee +64 -0
- data/app/assets/javascripts/dante/tooltip_widgets/uploader.js.coffee +248 -0
- data/app/assets/javascripts/dante/utils.js.coffee +235 -0
- data/app/assets/javascripts/dante/view.js.coffee +101 -0
- data/app/assets/javascripts/dante.js +12 -0
- data/app/assets/stylesheets/dante/_animations.scss +54 -0
- data/app/assets/stylesheets/dante/_caption.scss +52 -0
- data/app/assets/stylesheets/dante/_debug.scss +11 -0
- data/app/assets/stylesheets/dante/_fonts.scss +17 -0
- data/app/assets/stylesheets/dante/_graf.scss +238 -0
- data/app/assets/stylesheets/dante/_icons.scss +57 -0
- data/app/assets/stylesheets/dante/_media.scss +39 -0
- data/app/assets/stylesheets/dante/_menu.scss +153 -0
- data/app/assets/stylesheets/dante/_needsorder.scss +209 -0
- data/app/assets/stylesheets/dante/_popover.scss +134 -0
- data/app/assets/stylesheets/dante/_post.scss +69 -0
- data/app/assets/stylesheets/dante/_scaffold.scss +20 -0
- data/app/assets/stylesheets/dante/_tooltip.scss +131 -0
- data/app/assets/stylesheets/dante/_utilities.scss +55 -0
- data/app/assets/stylesheets/dante/_variables.scss +46 -0
- data/app/assets/stylesheets/dante.scss +18 -0
- data/bower.json +44 -0
- data/config.rb +86 -0
- data/config.ru +42 -0
- data/dante-editor.gemspec +19 -0
- data/dist/css/dante-editor.css +1116 -0
- data/dist/fonts/dante/dante.eot +0 -0
- data/dist/fonts/dante/dante.svg +14 -0
- data/dist/fonts/dante/dante.ttf +0 -0
- data/dist/fonts/dante/dante.woff +0 -0
- data/dist/fonts/dante/fontello.eot +0 -0
- data/dist/fonts/dante/fontello.svg +36 -0
- data/dist/fonts/dante/fontello.ttf +0 -0
- data/dist/fonts/dante/fontello.woff +0 -0
- data/dist/images/dante/media-loading-placeholder.png +0 -0
- data/dist/js/dante-editor.js +2878 -0
- data/lib/dante-editor/rails.rb +4 -0
- data/lib/dante-editor/version.rb +5 -0
- data/lib/dante-editor.rb +5 -0
- data/license.md +22 -0
- data/rakefile +2 -0
- data/source/assets/images/dante-editor-logo.png +0 -0
- data/source/assets/images/github-logo.png +0 -0
- data/source/assets/javascripts/all.js +3 -0
- data/source/assets/javascripts/dante-editor.js +1 -0
- data/source/assets/javascripts/deps.js +4 -0
- data/source/assets/javascripts/examples/custom_toolbar.js.coffee +30 -0
- data/source/assets/javascripts/spec.js +2 -0
- data/source/assets/javascripts/specs/cleaner.js.coffee +8 -0
- data/source/assets/javascripts/specs/dante_view.js.coffee +74 -0
- data/source/assets/javascripts/specs/editor.js.coffee +78 -0
- data/source/assets/stylesheets/_layout.scss +51 -0
- data/source/assets/stylesheets/_scaffold.scss +8 -0
- data/source/assets/stylesheets/_tooltips.scss +216 -0
- data/source/assets/stylesheets/all.css.scss +5 -0
- data/source/assets/stylesheets/dante-editor.css.scss +1 -0
- data/source/assets/stylesheets/normalize.css +375 -0
- data/source/custom_toolbar.erb +29 -0
- data/source/embeds.html.erb +27 -0
- data/source/icons/dante.json +143 -0
- data/source/icons/embed.svg +13 -0
- data/source/icons/image.svg +13 -0
- data/source/icons/plus.svg +13 -0
- data/source/icons/video.svg +13 -0
- data/source/index.html.erb +18 -0
- data/source/layouts/layout.erb +26 -0
- data/source/layouts/spec.html.erb +22 -0
- data/source/lists.html.erb +18 -0
- data/source/partials/_content.erb +6 -0
- data/source/partials/_example_1.erb +45 -0
- data/source/partials/_example_2.erb +32 -0
- data/source/partials/_example_3.erb +4 -0
- data/source/partials/_lists.erb +13 -0
- data/source/partials/_readme.markdown +24 -0
- data/source/partials/test/_example_1.erb +39 -0
- data/source/tests/dante_view.html.erb +11 -0
- data/source/tests/index.html.erb +39 -0
- data/tmp/.gitkeep +0 -0
- metadata +151 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
#Dante Editor
|
2
|
+
|
3
|
+
###Just another Medium editor clone.
|
4
|
+
|
5
|
+
###Motivation:
|
6
|
+
|
7
|
+
####So far I have tried all the Medium.com wysiwyg clones out there, these are really great, and each have their pros and cons. [But none of them has all the features that the real medium editor provides.](http://howtox.com/medium-editor-clones-in-js/)
|
8
|
+
so I wonder, How complicated could be write my own Medium wysiwyg clone?
|
9
|
+
|
10
|
+
### This is a live demo:
|
11
|
+
|
12
|
+
<img src="http://i.imgur.com/0erQFLu.gif" alt="">
|
13
|
+
|
14
|
+
This Library will work fine on latest versions of Chrome/Safari/FF/IE.
|
15
|
+
We don't have any intention to target all browsers versions, really... if you like this library and you need backward compatibility for an specific version you can submit a patch to help with the development or just upgrade your shitty browser :D
|
16
|
+
|
17
|
+
**BTW , this library is an official beta release, so there are known bugs that we are currently working on.**
|
18
|
+
|
19
|
+
### MAINTAINERS:
|
20
|
+
|
21
|
+
+ [Miguel Michelson](http://github.com/michelson)
|
22
|
+
+ [Cristian Ferrari](http://github.com/cristianferrarig)
|
23
|
+
|
24
|
+
[Licensed under MIT.](./license.md) 2014
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<h1>
|
2
|
+
<a name="user-content-sanitizejs" class="anchor" href="http://sanitizejs" aria-hidden="true">iojij<span class="octicon octicon-link"></span>esto no deberia tener span y deberia ser un parrafo</a>
|
3
|
+
|
4
|
+
</h1>
|
5
|
+
|
6
|
+
<h2>h2</h2>
|
7
|
+
<h3>h3</h3>
|
8
|
+
<h4>h4</h4>
|
9
|
+
<h5>h5</h5>
|
10
|
+
<h6>h6</h6>
|
11
|
+
|
12
|
+
<p>este parrafo deberia tener las clases graff</p>
|
13
|
+
|
14
|
+
|
15
|
+
<p>Sanitize.js heavily inspired by the Ruby Sanitize library
|
16
|
+
(<a href="http://github.com/rgrove/sanitize">http://github.com/rgrove/sanitize</a>). It tries to port it as faithful as
|
17
|
+
possible.</p>
|
18
|
+
|
19
|
+
|
20
|
+
<a name="user-content-usage" class="anchor" href="#usage" aria-hidden="true">este link deberia estar wrapeado en un p </a>
|
21
|
+
|
22
|
+
|
23
|
+
<pre><code><p id="para1"><b><a href="http://foo.com/">foo</a></b><img src="http://foo.com/bar.jpg" /></p>
|
24
|
+
</code></pre>
|
25
|
+
|
26
|
+
|
27
|
+
<h2>this element shuld be converted graf-inner</h2>
|
28
|
+
<div class="minimal-thumbnail col-12 col-sm-6 col-lg-3" id="serie_1272"><a href="http://daniel-sanchez-davey.artenlinea.com">
|
29
|
+
<div class="image">
|
30
|
+
<img class="img-responsive" src="https://artenlinea.s3.amazonaws.com/621/art_works/12339/resize/7392frutusventris.jpg">
|
31
|
+
</div>
|
32
|
+
<div class="minimal-caption">
|
33
|
+
<div class="title">
|
34
|
+
Extra tenebrae
|
35
|
+
</div>
|
36
|
+
<div class="subtitle">
|
37
|
+
<p>grupo de pinturas de la muestra EXTRA TENEBRAE</p>
|
38
|
+
</div>
|
39
|
+
</div>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<% content_for :js do %>
|
2
|
+
<%= javascript_include_tag "specs/editor" %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
|
6
|
+
<div style="display:nonex">
|
7
|
+
|
8
|
+
<div id="editor1">
|
9
|
+
<% #= partial "partials/example_1" %>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div style="display:nonex">
|
15
|
+
|
16
|
+
<div id="editor2">
|
17
|
+
<div class="class">this is a div</div>
|
18
|
+
<p>
|
19
|
+
Sanitize.js heavily inspired by the Ruby Sanitize library
|
20
|
+
<a href="http://github.com" class="a-nasty-class">a link<span>a nasty span</span></a>
|
21
|
+
|
22
|
+
It tries to port it as faithful as
|
23
|
+
possible.
|
24
|
+
<span>another span</span>
|
25
|
+
</p>
|
26
|
+
<span>another span</span>
|
27
|
+
|
28
|
+
<img src="https://artenlinea.s3.amazonaws.com/1/profile_settings/2/square_200/a24916f0e8a911e280b322000a1f9c82_7.jpg" class="existing-class">
|
29
|
+
|
30
|
+
</div>
|
31
|
+
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div style="display:nonex">
|
35
|
+
|
36
|
+
<div id="editor3">
|
37
|
+
</div>
|
38
|
+
|
39
|
+
</div>
|
data/tmp/.gitkeep
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dante-editor-seo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.13
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Miguel Michelson
|
8
|
+
- Cristian Ferrari
|
9
|
+
- Seo Yoochan
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
14
|
+
dependencies: []
|
15
|
+
description: dante-editor yet another Medium editor clone.
|
16
|
+
email:
|
17
|
+
- miguelmichelson@gmail.com
|
18
|
+
- cristianferrarig@gmail.com
|
19
|
+
- supergnee@gmail.com
|
20
|
+
executables: []
|
21
|
+
extensions: []
|
22
|
+
extra_rdoc_files: []
|
23
|
+
files:
|
24
|
+
- ".gitignore"
|
25
|
+
- ".ruby-version"
|
26
|
+
- ".travis.yml"
|
27
|
+
- Gemfile
|
28
|
+
- Gemfile.lock
|
29
|
+
- Procfile
|
30
|
+
- README.md
|
31
|
+
- ROADMAP.md
|
32
|
+
- TODO.md
|
33
|
+
- app/assets/fonts/dante/dante.eot
|
34
|
+
- app/assets/fonts/dante/dante.svg
|
35
|
+
- app/assets/fonts/dante/dante.ttf
|
36
|
+
- app/assets/fonts/dante/dante.woff
|
37
|
+
- app/assets/fonts/dante/fontello.eot
|
38
|
+
- app/assets/fonts/dante/fontello.svg
|
39
|
+
- app/assets/fonts/dante/fontello.ttf
|
40
|
+
- app/assets/fonts/dante/fontello.woff
|
41
|
+
- app/assets/images/dante/media-loading-placeholder.png
|
42
|
+
- app/assets/javascripts/dante.js
|
43
|
+
- app/assets/javascripts/dante/dante.js.coffee.erb
|
44
|
+
- app/assets/javascripts/dante/editor.js.coffee
|
45
|
+
- app/assets/javascripts/dante/menu.js.coffee
|
46
|
+
- app/assets/javascripts/dante/popover.js.coffee
|
47
|
+
- app/assets/javascripts/dante/tooltip.js.coffee
|
48
|
+
- app/assets/javascripts/dante/tooltip_widget.js.coffee
|
49
|
+
- app/assets/javascripts/dante/tooltip_widgets/embed.js.coffee
|
50
|
+
- app/assets/javascripts/dante/tooltip_widgets/extract.js.coffee
|
51
|
+
- app/assets/javascripts/dante/tooltip_widgets/uploader.js.coffee
|
52
|
+
- app/assets/javascripts/dante/utils.js.coffee
|
53
|
+
- app/assets/javascripts/dante/view.js.coffee
|
54
|
+
- app/assets/stylesheets/dante.scss
|
55
|
+
- app/assets/stylesheets/dante/_animations.scss
|
56
|
+
- app/assets/stylesheets/dante/_caption.scss
|
57
|
+
- app/assets/stylesheets/dante/_debug.scss
|
58
|
+
- app/assets/stylesheets/dante/_fonts.scss
|
59
|
+
- app/assets/stylesheets/dante/_graf.scss
|
60
|
+
- app/assets/stylesheets/dante/_icons.scss
|
61
|
+
- app/assets/stylesheets/dante/_media.scss
|
62
|
+
- app/assets/stylesheets/dante/_menu.scss
|
63
|
+
- app/assets/stylesheets/dante/_needsorder.scss
|
64
|
+
- app/assets/stylesheets/dante/_popover.scss
|
65
|
+
- app/assets/stylesheets/dante/_post.scss
|
66
|
+
- app/assets/stylesheets/dante/_scaffold.scss
|
67
|
+
- app/assets/stylesheets/dante/_tooltip.scss
|
68
|
+
- app/assets/stylesheets/dante/_utilities.scss
|
69
|
+
- app/assets/stylesheets/dante/_variables.scss
|
70
|
+
- bower.json
|
71
|
+
- config.rb
|
72
|
+
- config.ru
|
73
|
+
- dante-editor.gemspec
|
74
|
+
- dist/css/dante-editor.css
|
75
|
+
- dist/fonts/dante/dante.eot
|
76
|
+
- dist/fonts/dante/dante.svg
|
77
|
+
- dist/fonts/dante/dante.ttf
|
78
|
+
- dist/fonts/dante/dante.woff
|
79
|
+
- dist/fonts/dante/fontello.eot
|
80
|
+
- dist/fonts/dante/fontello.svg
|
81
|
+
- dist/fonts/dante/fontello.ttf
|
82
|
+
- dist/fonts/dante/fontello.woff
|
83
|
+
- dist/images/dante/media-loading-placeholder.png
|
84
|
+
- dist/js/dante-editor.js
|
85
|
+
- lib/dante-editor.rb
|
86
|
+
- lib/dante-editor/rails.rb
|
87
|
+
- lib/dante-editor/version.rb
|
88
|
+
- license.md
|
89
|
+
- rakefile
|
90
|
+
- source/assets/images/dante-editor-logo.png
|
91
|
+
- source/assets/images/github-logo.png
|
92
|
+
- source/assets/javascripts/all.js
|
93
|
+
- source/assets/javascripts/dante-editor.js
|
94
|
+
- source/assets/javascripts/deps.js
|
95
|
+
- source/assets/javascripts/examples/custom_toolbar.js.coffee
|
96
|
+
- source/assets/javascripts/spec.js
|
97
|
+
- source/assets/javascripts/specs/cleaner.js.coffee
|
98
|
+
- source/assets/javascripts/specs/dante_view.js.coffee
|
99
|
+
- source/assets/javascripts/specs/editor.js.coffee
|
100
|
+
- source/assets/stylesheets/_layout.scss
|
101
|
+
- source/assets/stylesheets/_scaffold.scss
|
102
|
+
- source/assets/stylesheets/_tooltips.scss
|
103
|
+
- source/assets/stylesheets/all.css.scss
|
104
|
+
- source/assets/stylesheets/dante-editor.css.scss
|
105
|
+
- source/assets/stylesheets/normalize.css
|
106
|
+
- source/custom_toolbar.erb
|
107
|
+
- source/embeds.html.erb
|
108
|
+
- source/icons/dante.json
|
109
|
+
- source/icons/embed.svg
|
110
|
+
- source/icons/image.svg
|
111
|
+
- source/icons/plus.svg
|
112
|
+
- source/icons/video.svg
|
113
|
+
- source/index.html.erb
|
114
|
+
- source/layouts/layout.erb
|
115
|
+
- source/layouts/spec.html.erb
|
116
|
+
- source/lists.html.erb
|
117
|
+
- source/partials/_content.erb
|
118
|
+
- source/partials/_example_1.erb
|
119
|
+
- source/partials/_example_2.erb
|
120
|
+
- source/partials/_example_3.erb
|
121
|
+
- source/partials/_lists.erb
|
122
|
+
- source/partials/_readme.markdown
|
123
|
+
- source/partials/test/_example_1.erb
|
124
|
+
- source/tests/dante_view.html.erb
|
125
|
+
- source/tests/index.html.erb
|
126
|
+
- tmp/.gitkeep
|
127
|
+
homepage: http://michelson.github.io/Dante/
|
128
|
+
licenses: []
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.4.6
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: dante-editor yet another Medium editor clone.
|
150
|
+
test_files: []
|
151
|
+
has_rdoc:
|