Skip to content
Snippets Groups Projects
Commit e34be9f2 authored by Andy C's avatar Andy C
Browse files

Added font sizes drop down

parent 0151a7f4
No related branches found
No related tags found
No related merge requests found
......@@ -164,12 +164,43 @@ $(document).ready(function () {
}
},
{
'type': 'icon',
'icon': 'text-height',
'name': 'text-height',
'id': 'text-height',
'title': 'Text size',
'onclick': function () {
'type': 'drop',
'id': 'font-size',
'values': [{
'name': 'Font sizes',
'value': ''
},
{
'name': 'Font size 1',
'value': '1'
},
{
'name': 'Font size 2',
'value': '2'
},
{
'name': 'Font size 3',
'value': '3'
},
{
'name': 'Font size 4',
'value': '4'
},
{
'name': 'Font size 5',
'value': '5'
},
{
'name': 'Font size 6',
'value': '6'
},
{
'name': 'Font size 7',
'value': '7'
},
],
'onchange': function () {
document.execCommand('fontSize', false, this.value);
return true;
}
},
......@@ -211,6 +242,7 @@ $(document).ready(function () {
return true;
}
}
];
var $inBtns = $('#input-controls');
$inBtns.html('');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment