This commit is contained in:
khaydarov 2016-05-25 20:54:13 +03:00
parent bf9052bba4
commit a2493372f6

View file

@ -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;
}
@ -643,7 +636,7 @@ cEditor.toolbar = {
};
cEditor.content.switchBlock(workingNode, newTag);
},