[FIX] website summernote: back to the top when change the font-size

This commit is contained in:
Christophe Matthieu
2015-02-12 18:01:08 +01:00
parent 9ee7ed2e18
commit fd9ee5e28b
@@ -1969,6 +1969,7 @@ define(['summernote/editing/Editor', 'summernote/summernote'], function (Editor)
};
$.summernote.pluginEvents.fontSize = function (event, editor, layoutInfo, value) {
var $editable = layoutInfo.editable();
event.preventDefault();
$.summernote.pluginEvents.applyFont(event, editor, layoutInfo, null, null, value);
editor.afterCommand($editable);
};