added buttons to manage editor font-size

This commit is contained in:
Paolo
2013-06-13 22:56:01 +02:00
parent ebc27cbc46
commit 234c926d98
3 changed files with 33 additions and 1 deletions
@@ -248,5 +248,15 @@ function load_file (url) {
});
}
function set_font(editor, incr) {
var fontSize = '';
if (incr !== 0) {
fontSize = parseInt(jQuery(editor.getWrapperElement()).css('font-size'));
fontSize = fontSize + incr + "px";
}
jQuery(editor.getWrapperElement()).css('font-size', fontSize);
editor.refresh();
}
var template_js = '<p class="repo-name">{{{a_tag}}}</p><small>{{address}}</small>';