|
106 | 106 | var z, |
107 | 107 | buttons = btnGroups[y].data, |
108 | 108 | btnGroupContainer = $('<div/>', { |
109 | | - 'class': 'btn-group' |
| 109 | + 'class': 'btn-group mr-2' |
110 | 110 | }); |
111 | 111 |
|
112 | 112 | for (z = 0; z < buttons.length; z++) { |
|
122 | 122 |
|
123 | 123 | // Construct the button object |
124 | 124 | buttonContainer = $('<button></button>'); |
125 | | - buttonContainer.text(' ' + this.__localize(btnText)).addClass('btn-default btn-sm').addClass(btnClass); |
| 125 | + buttonContainer.text(' ' + this.__localize(btnText)).addClass('btn-default btn-secondary btn-sm').addClass(btnClass); |
126 | 126 | if (btnClass.match(/btn\-(primary|success|info|warning|danger|link)/)) { |
127 | | - buttonContainer.removeClass('btn-default'); |
| 127 | + buttonContainer.removeClass('btn-default btn-secondary'); |
128 | 128 | } |
129 | 129 | buttonContainer.attr({ |
130 | 130 | 'type': 'button', |
|
1025 | 1025 | width: 'inherit', |
1026 | 1026 | height: 'inherit', |
1027 | 1027 | resize: 'none', |
1028 | | - iconlibrary: 'glyph', |
| 1028 | + iconlibrary: 'fa', |
1029 | 1029 | language: 'en', |
1030 | 1030 | initialstate: 'editor', |
1031 | 1031 | parser: null, |
|
1041 | 1041 | hotkey: 'Ctrl+B', |
1042 | 1042 | title: 'Bold', |
1043 | 1043 | icon: { |
1044 | | - glyph: 'glyphicon glyphicon-bold', |
1045 | 1044 | fa: 'fa fa-bold', |
1046 | 1045 | 'fa-3': 'icon-bold', |
1047 | 1046 | 'fa-5': 'fas fa-bold', |
|
1078 | 1077 | title: 'Italic', |
1079 | 1078 | hotkey: 'Ctrl+I', |
1080 | 1079 | icon: { |
1081 | | - glyph: 'glyphicon glyphicon-italic', |
1082 | 1080 | fa: 'fa fa-italic', |
1083 | 1081 | 'fa-3': 'icon-italic', |
1084 | 1082 | 'fa-5': 'fas fa-italic', |
|
1115 | 1113 | title: 'Heading', |
1116 | 1114 | hotkey: 'Ctrl+H', |
1117 | 1115 | icon: { |
1118 | | - glyph: 'glyphicon glyphicon-header', |
1119 | 1116 | fa: 'fa fa-header', |
1120 | 1117 | 'fa-3': 'icon-font', |
1121 | 1118 | 'fa-5': 'fas fa-heading', |
|
1160 | 1157 | title: 'URL/Link', |
1161 | 1158 | hotkey: 'Ctrl+L', |
1162 | 1159 | icon: { |
1163 | | - glyph: 'glyphicon glyphicon-link', |
1164 | 1160 | fa: 'fa fa-link', |
1165 | 1161 | 'fa-3': 'icon-link', |
1166 | 1162 | 'fa-5': 'fas fa-link', |
|
1198 | 1194 | title: 'Image', |
1199 | 1195 | hotkey: 'Ctrl+G', |
1200 | 1196 | icon: { |
1201 | | - glyph: 'glyphicon glyphicon-picture', |
1202 | 1197 | fa: 'fa fa-picture-o', |
1203 | 1198 | 'fa-3': 'icon-picture', |
1204 | 1199 | 'fa-5': 'far fa-image', |
|
1242 | 1237 | hotkey: 'Ctrl+U', |
1243 | 1238 | title: 'Unordered List', |
1244 | 1239 | icon: { |
1245 | | - glyph: 'glyphicon glyphicon-list', |
1246 | 1240 | fa: 'fa fa-list', |
1247 | 1241 | 'fa-3': 'icon-list-ul', |
1248 | 1242 | 'fa-5': 'fas fa-list-ul', |
|
1294 | 1288 | hotkey: 'Ctrl+O', |
1295 | 1289 | title: 'Ordered List', |
1296 | 1290 | icon: { |
1297 | | - glyph: 'glyphicon glyphicon-th-list', |
1298 | 1291 | fa: 'fa fa-list-ol', |
1299 | 1292 | 'fa-3': 'icon-list-ol', |
1300 | 1293 | 'fa-5': 'fas fa-list-ol', |
|
1348 | 1341 | hotkey: 'Ctrl+K', |
1349 | 1342 | title: 'Code', |
1350 | 1343 | icon: { |
1351 | | - glyph: 'glyphicon glyphicon-console', |
1352 | 1344 | fa: 'fa fa-code', |
1353 | 1345 | 'fa-3': 'icon-code', |
1354 | 1346 | 'fa-5': 'fas fa-code', |
|
1393 | 1385 | hotkey: 'Ctrl+Q', |
1394 | 1386 | title: 'Quote', |
1395 | 1387 | icon: { |
1396 | | - glyph: 'glyphicon glyphicon-comment', |
1397 | 1388 | fa: 'fa fa-quote-left', |
1398 | 1389 | 'fa-3': 'icon-quote-left', |
1399 | 1390 | 'fa-5': 'fas fa-quote-left', |
|
1452 | 1443 | btnText: 'Preview', |
1453 | 1444 | btnClass: 'btn btn-primary btn-sm', |
1454 | 1445 | icon: { |
1455 | | - glyph: 'glyphicon glyphicon-search', |
1456 | 1446 | fa: 'fa fa-search', |
1457 | 1447 | 'fa-3': 'icon-search', |
1458 | 1448 | 'fa-5': 'fas fa-search', |
|
1486 | 1476 | name: "fullscreenOn", |
1487 | 1477 | icon: { |
1488 | 1478 | fa: 'fa fa-expand', |
1489 | | - glyph: 'glyphicon glyphicon-fullscreen', |
1490 | 1479 | 'fa-3': 'icon-resize-full', |
1491 | 1480 | 'fa-5': 'fas fa-expand-arrows-alt', |
1492 | 1481 | octicons: 'octicon octicon-link-external' |
|
1496 | 1485 | name: "fullscreenOff", |
1497 | 1486 | icon: { |
1498 | 1487 | fa: 'fa fa-compress', |
1499 | | - glyph: 'glyphicon glyphicon-fullscreen', |
1500 | 1488 | 'fa-3': 'icon-resize-small', |
1501 | 1489 | 'fa-5': 'fas fa-compress', |
1502 | 1490 | octicons: 'octicon octicon-browser' |
|
0 commit comments