dante-editor 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/app/assets/javascripts/dante/editor.js.coffee +4 -2
- data/bower.json +1 -1
- data/dist/js/dante-editor.js +6 -3
- data/lib/dante-editor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9de1d8d9a9c05a633a0b47d59b4762f7a568440
|
4
|
+
data.tar.gz: a4ee6debde48072bafb683d2583d13027a27023e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ee1b7eddcbe0d0ecc2dfcfba17ec23bbd4c7dd51e516f637599fa21892ad28121bd241d938063087d245589e850e567a98e1b40ca7eef4c516b2420d4822d37
|
7
|
+
data.tar.gz: a6419b79bda3b8009678e08ce15777aa914ad58773e857e5b58fb0e6f05c0dc3921dbfe13baa587177d5d49beda88336cbfe82cb4ce9a54b08f2cfd2c0abe9fb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -69,7 +69,8 @@ Until now I´ve been able to implement the following features:
|
|
69
69
|
+ **oembed_url:** default: http://api.embed.ly/1/oembed?url="
|
70
70
|
+ **extract_url:** default: http://api.embed.ly/1/extract?url="
|
71
71
|
+ **store_url:** default: to none , url to store data with interval
|
72
|
-
+ **
|
72
|
+
+ **store_method** default: to POST , http verb to use when store_url is present.
|
73
|
+
+ **store_interval:** default: 15000 (15 secs), used when store_url is present.
|
73
74
|
+ **spellcheck:** default: false
|
74
75
|
+ **default_loading_placeholder:** image placeholder to show when uploaded/pasted images are loading , defaults to a grey background
|
75
76
|
+ **disable_title** default: false, will hide the initial heading placeholder for initial text
|
@@ -34,6 +34,7 @@ class Dante.Editor extends Dante.View
|
|
34
34
|
@extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url="
|
35
35
|
@default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder
|
36
36
|
@store_url = opts.store_url
|
37
|
+
@store_method = opts.store_method || "POST"
|
37
38
|
@spell_check = opts.spellcheck || false
|
38
39
|
@disable_title = opts.disable_title || false
|
39
40
|
@store_interval = opts.store_interval || 15000
|
@@ -103,8 +104,9 @@ class Dante.Editor extends Dante.View
|
|
103
104
|
@content = @getContent()
|
104
105
|
$.ajax
|
105
106
|
url: @store_url
|
106
|
-
method:
|
107
|
-
data:
|
107
|
+
method: @store_method
|
108
|
+
data:
|
109
|
+
body: @getContent()
|
108
110
|
success: (res)->
|
109
111
|
utils.log "store!"
|
110
112
|
utils.log res
|
data/bower.json
CHANGED
data/dist/js/dante-editor.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
defaults: {
|
9
9
|
image_placeholder: '../images/dante/media-loading-placeholder.png'
|
10
10
|
},
|
11
|
-
version: "0.0.
|
11
|
+
version: "0.0.12"
|
12
12
|
};
|
13
13
|
|
14
14
|
}).call(this);
|
@@ -485,6 +485,7 @@
|
|
485
485
|
this.extract_url = opts.extract_url || "http://api.embed.ly/1/extract?key=86c28a410a104c8bb58848733c82f840&url=";
|
486
486
|
this.default_loading_placeholder = opts.default_loading_placeholder || Dante.defaults.image_placeholder;
|
487
487
|
this.store_url = opts.store_url;
|
488
|
+
this.store_method = opts.store_method || "POST";
|
488
489
|
this.spell_check = opts.spellcheck || false;
|
489
490
|
this.disable_title = opts.disable_title || false;
|
490
491
|
this.store_interval = opts.store_interval || 15000;
|
@@ -561,8 +562,10 @@
|
|
561
562
|
this.content = this.getContent();
|
562
563
|
return $.ajax({
|
563
564
|
url: this.store_url,
|
564
|
-
method:
|
565
|
-
data:
|
565
|
+
method: this.store_method,
|
566
|
+
data: {
|
567
|
+
body: this.getContent()
|
568
|
+
},
|
566
569
|
success: function(res) {
|
567
570
|
utils.log("store!");
|
568
571
|
return utils.log(res);
|
data/lib/dante-editor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dante-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Michelson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: dante-editor yet another Medium editor clone.
|
15
15
|
email:
|