Fix rerender method

This commit is contained in:
George Berezhnoy 2017-02-14 22:26:53 +03:00
commit 3345d0e2be
4 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -203,9 +203,9 @@ module.exports = (function (renderer) {
};
/**
* Clears redactor area and render blocks from editor.state.blocks if makeBlocksFromData param is true
*
* @param makeBlocksFromData
* @param {bool} makeBlocksFromData - if true, renders blocks from editor.state.blocks data,
* else adds only initial plugin block
*/
renderer.rerender = function (makeBlocksFromData) {
@ -215,12 +215,12 @@ module.exports = (function (renderer) {
if (makeBlocksFromData) {
editor.ui.addInitialBlock();
renderer.makeBlocksFromData();
return;
}
renderer.makeBlocksFromData();
editor.ui.addInitialBlock();
};

File diff suppressed because one or more lines are too long