dante2-editor 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/docs/doc.html CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
  <img src='https://michelson.github.io/dante2/images/dante-editor-logo.png' alt="dante editor" height="21">
26
- <span>Dante Editor - 0.3.6 </span>
26
+ <span>Dante Editor - 0.4.1 </span>
27
27
 
28
28
  </div>
29
29
 
data/docs/index.html CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
  <img src=images/dante-editor-logo.png alt="dante editor" height="21">
26
- <span>Dante Editor - 0.3.6 </span>
26
+ <span>Dante Editor - 0.4.1 </span>
27
27
 
28
28
  </div>
29
29
 
data/docs/license.html CHANGED
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
 
25
25
  <img src='https://michelson.github.io/dante2/images/dante-editor-logo.png' alt="dante editor" height="21">
26
- <span>Dante Editor - 0.3.6 </span>
26
+ <span>Dante Editor - 0.4.1 </span>
27
27
 
28
28
  </div>
29
29
 
data/docs/options.html CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
 
25
25
  <img src='https://michelson.github.io/dante2/images/dante-editor-logo.png' alt="dante editor" height="21">
26
- <span>Dante Editor - 0.2.0 </span>
26
+ <span>Dante Editor - 0.4.1 </span>
27
27
 
28
28
  </div>
29
29
 
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Dante2",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Dante wysiwyg rewritten in draft-js",
5
5
  "author": "Miguel Michelson",
6
6
  "license": "GPL-3.0",
@@ -1,5 +1,5 @@
1
1
  require "dante2-editor/version"
2
2
 
3
3
  module Dante2Editor
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
@@ -228,11 +228,14 @@ class DanteInlineTooltip extends React.Component {
228
228
  return
229
229
  }
230
230
 
231
+ if (!coords)
232
+ return
233
+
231
234
  // checkeamos si esta vacio
232
235
  this.display(block.getText().length === 0 && blockType === "unstyled")
233
236
  return this.setPosition({
234
- top: coords.top + window.scrollY,
235
- left: coords.left + window.scrollX - 60
237
+ top: coords.top + window.pageYOffset,
238
+ left: coords.left + window.pageXOffset - 60
236
239
  })
237
240
 
238
241
  /*
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dante2-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Michelson