fix block order bug

This commit is contained in:
Peter Savchenko 2016-07-02 10:34:18 +03:00
parent b72593041e
commit 8a910cdabf
2 changed files with 83 additions and 25 deletions

View file

@ -254,6 +254,7 @@ cEditor.renderer = {
},
/**
* Asynchronously returns block data from blocksList by index
* @return Promise to node
@ -926,7 +927,6 @@ cEditor.content = {
newBlock.classList.add(cEditor.ui.BLOCK_CLASSNAME);
newBlock.dataset.type = blockType;
if (workingNode) {
cEditor.core.insertAfter(workingNode, newBlock);
@ -938,12 +938,13 @@ cEditor.content = {
*/
cEditor.nodes.redactor.appendChild(newBlock);
/**
* Set new node as current
*/
cEditor.content.workingNodeChanged(newBlock);
}
/**
* Set new node as current
*/
cEditor.content.workingNodeChanged(newBlock);
},

File diff suppressed because one or more lines are too long