fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: refactoring in the data module
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentCanvas
/
canvas
/
canvas.js
diff --git
a/src/editor/modules/documentCanvas/canvas/canvas.js
b/src/editor/modules/documentCanvas/canvas/canvas.js
index
29edbe5
..
d8090c8
100644
(file)
--- a/
src/editor/modules/documentCanvas/canvas/canvas.js
+++ b/
src/editor/modules/documentCanvas/canvas/canvas.js
@@
-377,7
+377,7
@@
$.extend(Canvas.prototype, Backbone.Events, {
if(textElementToLand) {
_markAsCurrent(textElementToLand);
if(textElementToLand) {
_markAsCurrent(textElementToLand);
- if(
params.caretTo
|| !textElementToLand.sameNode(this.getCursor().getPosition().element)) {
+ if(
(params.caretTo || params.caretTo === 0)
|| !textElementToLand.sameNode(this.getCursor().getPosition().element)) {
this._moveCaretToTextElement(textElementToLand, params.caretTo); // as method on element?
}
} else {
this._moveCaretToTextElement(textElementToLand, params.caretTo); // as method on element?
}
} else {