CKEDITOR現有字形

<%=form_for @field,:url=>{:controller=>"patchfiles" ,:action=>"newfont"} do |f|%>
<%= f.fields_for :font_array do |fontfield|%> <% @arr = @field.font_array.keys %> <% for @i in @arr %>
<% if @field.font_array[@i.to_s] == true%> <%=fontfield.check_box @i.to_s,{:checked=>true,:id=>"checkbox"+@i.to_s,:style=>"float:left;",:class=>"checkbox"} %> <% else %> <%=fontfield.check_box @i.to_s,{:id=>"checkbox"+@i.to_s,:style=>"float:left;",:class=>"checkbox"} %> <% end %> <%=fontfield.label @i.to_s ,{:for=>"checkbox"+@i.to_s,:style=>"float:right;",:class=>"checklabel"}%>
<%end%> <%end%>
<%=f.text_field :new_add_font,{:id=>"newfont",:placeholder=>t(:newfont)}%>
<%=f.submit "#{t(:updatefont)}",{:id=>"submitbtn"}%> <%=f.text_field :initial_btn, {:id=>"hidden-initial",:type => "hidden",:value=>"false"} %> <%=f.text_field :delete_btn, {:id=>"hidden-delete",:type => "hidden",:value=>"false"} %> <%end%>
  • CKEDITOR現有字形 <% @ckicktosee_str = (I18n.locale.to_s == "en") ? "click me to see all font which CKEDITOR have now" : "點擊我來查看編輯器所有目前擁有的字形" %> <%= @ckicktosee_str %>