FontSize and FontName Dropdowns

Last post 10-30-2008, 1:53 PM by Adam. 4 replies.
Sort Posts: Previous Next
  •  03-11-2008, 12:26 PM 37787

    FontSize and FontName Dropdowns

    On your demo and on my old version when I select an item in the editor that matches the fontname or fontsize the appropriate item in the fontname or fontsize dropdown is selected.
     
    However if I follow the instructions for modifying common.config the dropdowns no longer automatically select when i select an span in the editor. The only items that work are the ones the use the value equal to an integer. If I set the value to something like 12pt or 12px it correctly puts the size in the text but does not select it in the dropdown.
     
    This is a sample of the common.config:
    <FontSize>
    <
    item text="[[NotSet]]" value="null">
    <
    html><![CDATA[[[NotSet]]]]></html>
    </
    item>
    <
    item text="1 (8pt)" value="1">
    <
    html><![CDATA[<span style=font-size:8pt>8pt</span>]]></html>
    </
    item>
    <
    item text="10pt" value="10pt">
    <
    html><![CDATA[<span style=font-size:10pt>10pt</span>]]></html>
    </
    item>
    <
    item text="12px" value="12px">
    <
    html><![CDATA[<span style=font-size:12pt>12px</span>]]></html>
    </
    item>
    <
    item text="4 (14pt)" value="4">
    <
    html><![CDATA[<font size='4'>Size 4 </font>(14pt)]]></html>
    </
    item></FontSize>
     
     
  •  03-11-2008, 12:28 PM 37788 in reply to 37787

    Re: FontSize and FontName Dropdowns

    More detail on the fontName selector. I want to have font-family= "arial, helvetica, sans-serif". If the fontname item has a comma in it then the dropdown item will not be selected when i select a span in the editor.
  •  03-12-2008, 3:45 PM 37897 in reply to 37788

    Re: FontSize and FontName Dropdowns

    Adam,
    Any update on this one?
    Mike
  •  10-30-2008, 1:20 PM 45222 in reply to 37897

    Re: FontSize and FontName Dropdowns

    I am having the same issue.
     
    I am able to add new font sizes, and the selected text will be styled appropriately, but the drop-down will not reflect the chosen size.
     
     
     
    Here is an example of an item I have added to common.config under FontSize:
     
    <item text="42pt" value="42pt">
        <html><![CDATA[<font size='42pt'>42pt</font>]]></html>
    </item>
     
     
  •  10-30-2008, 1:53 PM 45226 in reply to 45222

    Re: FontSize and FontName Dropdowns

View as RSS news feed in XML