(function ($) { 'use strict'; $.extend(true, $.trumbowyg, { langs: { // jshint camelcase:false en: { fontFamily: 'Font' }, da: { fontFamily: 'Skrifttype' }, fr: { fontFamily: 'Police' }, de: { fontFamily: 'Schriftart' }, nl: { fontFamily: 'Lettertype' }, tr: { fontFamily: 'Yazı Tipi' }, zh_tw: { fontFamily: '字體', }, pt_br: { fontFamily: 'Fonte', } } }); // jshint camelcase:true var defaultOptions = { fontList: [ {name: 'Arial', family: 'Arial, Helvetica, sans-serif'}, {name: 'Arial Black', family: '\'Arial Black\', Gadget, sans-serif'}, {name: 'Comic Sans', family: '\'Comic Sans MS\', Textile, cursive, sans-serif'}, {name: 'Courier New', family: '\'Courier New\', Courier, monospace'}, {name: 'Georgia', family: 'Georgia, serif'}, {name: 'Impact', family: 'Impact, Charcoal, sans-serif'}, {name: 'Lucida Console', family: '\'Lucida Console\', Monaco, monospace'}, {name: 'Lucida Sans', family: '\'Lucida Sans Uncide\', \'Lucida Grande\', sans-serif'}, {name: 'Palatino', family: '\'Palatino Linotype\', \'Book Antiqua\', Palatino, serif'}, {name: 'Tahoma', family: 'Tahoma, Geneva, sans-serif'}, {name: 'Times New Roman', family: '\'Times New Roman\', Times, serif'}, {name: 'Trebuchet', family: '\'Trebuchet MS\', Helvetica, sans-serif'}, {name: 'Verdana', family: 'Verdana, Geneva, sans-serif'} ] }; // Add dropdown with web safe fonts $.extend(true, $.trumbowyg, { plugins: { fontfamily: { init: function (trumbowyg) { trumbowyg.o.plugins.fontfamily = trumbowyg.o.plugins.fontfamily || defaultOptions; trumbowyg.addBtnDef('fontfamily', { dropdown: buildDropdown(trumbowyg), hasIcon: false, text: trumbowyg.lang.fontFamily }); } } } }); function buildDropdown(trumbowyg) { var dropdown = []; $.each(trumbowyg.o.plugins.fontfamily.fontList, function (index, font) { trumbowyg.addBtnDef('fontfamily_' + index, { title: '<span style="font-family: ' + font.family + ';">' + font.name + '</span>', hasIcon: false, fn: function () { trumbowyg.execCmd('fontName', font.family, true); } }); dropdown.push('fontfamily_' + index); }); return dropdown; } })(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blocks | Folder | 0755 |
|
|
base-64.js | File | 12.52 KB | 0644 |
|
base-64.min.js | File | 4.98 KB | 0644 |
|
combined.js | File | 118.7 KB | 0644 |
|
customizer.js | File | 35.57 KB | 0644 |
|
givejs.php | File | 4.19 KB | 0644 |
|
imagesloaded.min.js | File | 5.46 KB | 0644 |
|
jquery-numerator.js | File | 4.02 KB | 0644 |
|
nivo-lightbox.min.js | File | 7.71 KB | 0644 |
|
owl.carousel.min.js | File | 43.75 KB | 0644 |
|
pagelayer-admin.js | File | 1.95 KB | 0644 |
|
pagelayer-editor.js | File | 200 KB | 0644 |
|
pagelayer-frontend.js | File | 48.72 KB | 0644 |
|
pagelayer-pen.js | File | 40.06 KB | 0644 |
|
pen.js | File | 26.21 KB | 0644 |
|
properties.js | File | 152.71 KB | 0644 |
|
simpleParallax.min.js | File | 6.52 KB | 0644 |
|
slimscroll.js | File | 4.63 KB | 0644 |
|
tlite.min.js | File | 3.88 KB | 0644 |
|
trumbowyg-pagelayer.js | File | 11.33 KB | 0644 |
|
trumbowyg.fontfamily.js | File | 2.93 KB | 0644 |
|
trumbowyg.js | File | 60.71 KB | 0644 |
|
trumbowyg.min.js | File | 23.97 KB | 0644 |
|
vanilla-picker.js | File | 39.21 KB | 0644 |
|
vanilla-picker.min.js | File | 20.95 KB | 0644 |
|
widgets.js | File | 50.32 KB | 0644 |
|
wow.min.js | File | 7.96 KB | 0644 |
|