[CLOSED] Use of HTMLEditor inside FieldContainer

  1. #1

    [CLOSED] Use of HTMLEditor inside FieldContainer

    I am not sure if it's permitted. The code:

    
    <%@ Page Language="C#" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <body id="theBody">
        <ext:ResourceManager ID="theManager" runat="server"
            IDMode="Static"
            ShowWarningOnAjaxFailure="false"
            DirectMethodProxy="Ignore"
            ScriptMode="Debug">
        </ext:ResourceManager>
        <ext:Button runat="server" Text="DD">
            <Listeners>
                <Click Handler="testFunc(#{winMain});" />
            </Listeners>
        </ext:Button>
        <ext:Window runat="server" ID="winMain" Modal="true" Hidden="true" 
            Resizable="false" Width="300" Height="350" Border="false" Layout="FormLayout">
            <Items>
                <ext:FieldContainer runat="server" Height="200" FieldLabel="TEXT" 
                    LabelWidth="50" Layout="FitLayout">
                    <Items>
                        <ext:HtmlEditor runat="server" />
                    </Items>
                </ext:FieldContainer>
            </Items>
        </ext:Window>
        <script type="text/javascript">
    
    
            var testFunc = function (win) {
                win.show();
            }
    
    
        </script>
    
    
    </body>
    </html>
    Looks like HTMLEditor failed to response to any events.
    Last edited by Daniil; Feb 20, 2013 at 5:19 AM. Reason: [CLOSED]
  2. #2
    Hi @cleve,

    I think it should be allowable, but wrapping an HtmlEditor in a FieldContainer looks excessive (over nesting).

    Please clarify do you really need it?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @cleve,

    I think it should be allowable, but wrapping an HtmlEditor in a FieldContainer looks excessive (over nesting).

    Please clarify do you really need it?

    Not really. I've tried border layout to make HtmlEditor occupy the whole center area, works fine. What my original thinking is to treat a with-format text input as a field just like the other textfield, numberfield (fieldcontainer can grant a label to the editor). Anyway, if it's not regarded as a bug, just forget it and I'll continue using border instead.
  4. #4
    Generally, an HtmlEditor is a field. The Labelable and Field mixins are mixed into the HtmlEditor class.
    http://docs.sencha.com/ext-js/4-1/#!...eld.HtmlEditor

    So, you can set up the FieldLabel property of the HtmlEditor itself.
  5. #5
    Quote Originally Posted by Daniil View Post
    Generally, an HtmlEditor is a field. The Labelable and Field mixins are mixed into the HtmlEditor class.
    http://docs.sencha.com/ext-js/4-1/#!...eld.HtmlEditor

    So, you can set up the FieldLabel property of the HtmlEditor itself.
    I got it. Thanks.

Similar Threads

  1. [CLOSED] FieldContainer label placement
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 21, 2012, 1:26 PM
  2. [CLOSED] V2.1 FieldContainer & FieldDefaults
    By Aurelio in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 14, 2012, 4:27 PM
  3. Replies: 5
    Last Post: Apr 10, 2012, 2:38 PM
  4. Replies: 3
    Last Post: Feb 24, 2009, 2:37 PM
  5. [OPEN] HtmlEditor inside ext:window
    By methode in forum Bugs
    Replies: 10
    Last Post: Jan 18, 2009, 2:59 AM

Posting Permissions