Sha256: c8204d5c16eda71a5f3f4625a89b578402bb5659f87c88371e0ddac1227c7327
Contents?: true
Size: 690 Bytes
Versions: 4
Compression:
Stored size: 690 Bytes
Contents
if (!RedactorPlugins) var RedactorPlugins = {}; RedactorPlugins.fontfamily = { init: function () { var fonts = [ 'Arial', 'Helvetica', 'Georgia', 'Times New Roman', 'Monospace' ]; var that = this; var dropdown = {}; $.each(fonts, function(i, s) { dropdown['s' + i] = { title: s, callback: function() { that.setFontfamily(s); }}; }); dropdown['remove'] = { title: 'Remove font', callback: function() { that.resetFontfamily(); }}; this.buttonAdd('fontfamily', 'Change font family', false, dropdown); }, setFontfamily: function (value) { this.inlineSetStyle('font-family', value); }, resetFontfamily: function() { this.inlineRemoveStyle('font-family'); } };
Version data entries
4 entries across 4 versions & 1 rubygems