$("#toolbar .decrease").click(function(){
        editor.setFontSize(Math.max(editor.getFontSize() - 1, 10));
    });