[CLOSED] How to add HmtlEditor font

  1. #1

    [CLOSED] How to add HmtlEditor font

    Sorry,I just found HmtlEditor , So I edit my post.

    Now,I want to add HmtlEditor font ('宋体' or other Chinese font) and set it defaultfont.
    how to do?

    thanks.
    Last edited by Daniil; Apr 04, 2012 at 5:18 PM. Reason: [CLOSED]
  2. #2
    Hi,

    To set up custom font families please use the FontFamilies property.
    FontFamilies="Arial, Tahoma"
    http://docs.sencha.com/ext-js/3-4/#!...g-fontFamilies

    To set up a default font, please set the defaultFont config option.
    <ext:HtmlEditor runat="server">
        <CustomConfig>
            <ext:ConfigItem Name="defaultFont" Value="Arial" Mode="Value" />
        </CustomConfig>
    </ext:HtmlEditor>
  3. #3
    Quote Originally Posted by Daniil View Post
    To set up a default font, please set the defaultFont config option.
    <ext:HtmlEditor runat="server">
        <CustomConfig>
            <ext:ConfigItem Name="defaultFont" Value="Arial" Mode="Value" />
        </CustomConfig>
    </ext:HtmlEditor>
    We have added the respective property.
    <ext:HtmlEditor runat="server" DefaultFont="Arial" />
  4. #4
    Sorry .
    I want to add one kind of font which did not exist in the htmleditor fonts dropdownlist to the dropdownlist .Because it does not exist, so the default property is invalid.
  5. #5
    I think you can set up any available font using FontFamilies, not from the default list only.
  6. #6
    I did not just understand what you mean.
    Now it works fine.
    Thank you very much.

Similar Threads

  1. [CLOSED] How to change font globally across everything?
    By jchau in forum 1.x Premium Help
    Replies: 3
    Last Post: Nov 22, 2011, 2:11 PM
  2. [CLOSED] SelectBox: Is it possible to determine the font?
    By nhg_itd in forum 1.x Premium Help
    Replies: 2
    Last Post: Nov 01, 2011, 5:25 AM
  3. [CLOSED] increase font size
    By nhg_itd in forum 1.x Premium Help
    Replies: 1
    Last Post: Sep 29, 2011, 7:04 AM
  4. htmleditor font
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Jun 22, 2009, 7:02 AM
  5. [CLOSED] Checkbox BoxLabel font different
    By jchau in forum 1.x Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 8:15 AM

Posting Permissions