Sha256: e8ef2b8a33cb59c8fe751ac42b6f2288b93733efbfa055bb8d8448481ab3ed80
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
/*! * froala_editor v1.1.6 (http://editor.froala.com) * Copyright 2014-2014 Froala */ $.Editable.prototype.execCommand=$.extend($.Editable.prototype.execCommand,{fontSize:function(a,b){this.fontExec("font-size",a,b)}}),$.Editable.commands=$.extend($.Editable.commands,{fontSize:{title:"Font Size",icon:"fa fa-text-height",seed:[{min:11,max:52}]}}),$.Editable.prototype.command_dispatcher=$.extend($.Editable.prototype.command_dispatcher,{fontSize:function(a){var b=this.buildDropdownFontsize(a),c=this.buildDropdownButton(a,b);this.$bttn_wrapper.append(c)}}),$.Editable.prototype.buildDropdownFontsize=function(a){for(var b='<ul class="fr-dropdown-menu f-font-sizes">',c=0;c<a.seed.length;c++)for(var d=a.seed[c],e=d.min;e<=d.max;e++)b+='<li data-cmd="'+a.cmd+'" data-val="'+e+'px"><a href="#"><span>'+e+"px</span></a></li>";return b+="</ul>"};
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wysiwyg-rails-1.1.6 | app/assets/javascripts/plugins/fonts/font_size.min.js |