Sha256: 91861b066435be8109387789d406fc21b8a5f8f9c9da89e411baf0dce7d169b4
Contents?: true
Size: 887 Bytes
Versions: 1
Compression:
Stored size: 887 Bytes
Contents
/*! * froala_editor v1.1.6 (http://editor.froala.com) * Copyright 2014-2014 Froala */ $.Editable.prototype.execCommand=$.extend($.Editable.prototype.execCommand,{fontFamily:function(a,b){this.fontExec("font-family",a,b)}}),$.Editable.commands=$.extend($.Editable.commands,{fontFamily:{title:"Font Family",icon:"fa fa-font"}}),$.Editable.prototype.command_dispatcher=$.extend($.Editable.prototype.command_dispatcher,{fontFamily:function(a){var b=this.buildDropdownFontFamily(),c=this.buildDropdownButton(a,b,"fr-family");this.$bttn_wrapper.append(c)}}),$.Editable.prototype.buildDropdownFontFamily=function(){for(var a='<ul class="fr-dropdown-menu">',b=0;b<this.options.fontList.length;b++){var c=this.options.fontList[b],d='<li data-cmd="fontFamily" data-val="'+c+'">';d+='<a href="#" data-text="true" title="'+c+'" style="font-family: '+c+';">'+c+"</a></li>",a+=d}return a+="</ul>"};
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wysiwyg-rails-1.1.6 | app/assets/javascripts/plugins/fonts/font_family.min.js |