[CLOSED] Combo Clearing Selected Text in IE?

  1. #1

    [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:

    <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]
  2. #2
    Hi,

    I'm afraid we can't suggest you any solution.

    It's IE behavior.

    The same behavior you can notice here:
    http://tinymce.moxiecode.com/tryit/full.php

    Select any text and click out of editor.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    I'm afraid we can't suggest you any solution.

    It's IE behavior.

    The same behavior you can notice here:
    http://tinymce.moxiecode.com/tryit/full.php

    Select any text and click out of editor.
    Ah ok, not to worry. I figured it was IE being rubbish. I'll stick to regular <option> for now. Thanks.

Similar Threads

  1. [CLOSED] Combo selected text
    By Adrian in forum 2.x Legacy Premium Help
    Replies: 13
    Last Post: Jan 31, 2012, 11:47 PM
  2. Replies: 6
    Last Post: Aug 25, 2011, 2:13 PM
  3. Combo is not clearing
    By Nagaraju in forum 1.x Help
    Replies: 3
    Last Post: May 20, 2011, 10:27 AM
  4. [CLOSED] Combo box doesn't query the store when clearing its contents
    By SandorD in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 09, 2010, 2:37 PM
  5. Replies: 3
    Last Post: Aug 21, 2010, 5:26 AM

Tags for this Thread

Posting Permissions