Jul 11, 2011, 8:53 AM
[CLOSED] Combo Clearing Selected Text in IE?
When I click on an ext.net combo to choose a value, any selected text I have in my custom WYSIWYG editor is being lost (ie: the selected text becomes un-selected).
Is there any way to prevent the combo from removing selections? This only seems to occur in IE, mind you. And I note that the built-in HTMLEditor uses regular HTML <option> elements; not Extjs ones. Perhaps this is why?
The regular HTML version works fine:
Is there any way to prevent the combo from removing selections? This only seems to occur in IE, mind you. And I note that the built-in HTMLEditor uses regular HTML <option> elements; not Extjs ones. Perhaps this is why?
The regular HTML version works fine:
<ext:ToolbarHtmlElement runat="server" Target="fontNameSelect" />
<div class="x-hide-display">
<select id="fontNameSelect" class="x-font-select">
<option value="Arial" style="font-family: Arial">Arial</option>
<option value="Arial Black" style="font-family: Arial Black">Arial Black</option>
<option value="Courier New" style="font-family: Courier New">Courier New</option>
<option value="Georgia" style="font-family: Georgia">Georgia</option>
<option value="Impact" style="font-family: Impact">Impact</option>
<option value="Tahoma" style="font-family: Tahoma">Tahoma</option>
<option value="Times New Roman" style="font-family: Times New Roman">Times New Roman</option>
<option value="Trebuchet MS" style="font-family: Trebuchet MS">Trebuchet</option>
<option value="Verdana" style="font-family: Verdana">Verdana</option>
</select>
</div>
Ext version resets text selections in IE:<ext:ComboBox runat="server" ID="cboFont">
<Items>
<ext:ListItem Text="Courier New" Value="Courier New" />
</Items>
<Listeners>
<Change Handler="toggleMidasCommand('fontname',false,cboFont.getValue());" />
</Listeners>
</ext:ComboBox>
The reason I want to use the Ext ones is so that I can show the font-family visually in the dropdown list, which is not possible with the regular <option>
Last edited by Daniil; Jul 12, 2011 at 7:18 AM.
Reason: [CLOSED]