mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 02:40:23 +02:00
done
This commit is contained in:
parent
bf9052bba4
commit
a2493372f6
|
@ -388,8 +388,6 @@ cEditor.content = {
|
|||
var previousElement = selection.anchorNode.previousSibling,
|
||||
nodeIndex = 0;
|
||||
|
||||
console.log(selection);
|
||||
|
||||
while (previousElement != null) {
|
||||
|
||||
nodeIndex ++;
|
||||
|
@ -409,9 +407,6 @@ cEditor.content = {
|
|||
|
||||
setCaret : function(NodeElement) {
|
||||
|
||||
console.log("this.focusedNodeIndex %o", this.focusedNodeIndex );
|
||||
console.log("this.caretOffset %o", this.caretOffset);
|
||||
|
||||
var nodeIndex = this.focusedNodeIndex || 0,
|
||||
caretOffset = this.caretOffset || 0;
|
||||
|
||||
|
@ -452,8 +447,6 @@ cEditor.content = {
|
|||
focused = focused.parentElement;
|
||||
}
|
||||
|
||||
// console.log('focused' , focused);
|
||||
|
||||
if (focused != cEditor.nodes.redactor){
|
||||
return focused;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue