Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7746 in 4.2.0.265.
  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    4
    Vote Rating
    0
    nitsko is on a distinguished road

      0  

    Default HTMLEditor producing textarea HML element with empty name

    HTMLEditor producing textarea HML element with empty name


    When HTMLEditor is rendered to a div the generated textarea input has empty name attribute

    Code:
    <%@page language="java" contentType="text/html; charset=utf-8"
    %><%
    String displayName = request.getParameter("displayName");
    if (null == displayName){
        displayName = "";
    }
    %>
    <html>
    <head>
    <title>Test HTMLEditor</title>
        <link type="text/css" rel="stylesheet" href="../ext-4.1.3/resources/css/ext-all.css" />
        
        <script type="text/javascript" src="../ext-4.1.3/ext-all-debug.js"></script>
    <script type="text/javascript">
        function doSubmit() {
           brandingForm.submit();
        }
        var myEditor;
        Ext.onReady(function() {
                myEditor = Ext.create("Ext.panel.Panel", {
                    height: 100,
                    width: 552,
                    renderTo: 'richtext',
                    items:[{
                        xtype: 'htmleditor',
                        name: 'displayName',
                        itemId: 'displayName',
                        fontFamilies: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Lucida Console', 'Tahoma', 'Times new Roman', 'Trebuchet MS', 'Verdana'],
                        height: 100,
                        width: 550,
                        border: 0,
                        value: '<%=displayName%>'
                    }]
                });
                myEditor.down('#displayName').focus();
                myEditor.show();
                
        });
    </script>
    </head>
    <body style="margin: 0 0 0 0;">
    
    
    <form name="form1" id="brandingForm" action="testHTMLEditor.jsp" method="post">
                    <div id="richtext">
                    </div>
    
    
        <div style="width: 100%;">
            <input  type="button" value="Save" onClick="doSubmit();">
        </div>
    </form>
    
    
    </body>
    </html>
    See attachment for generated HTML code
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,071
    Vote Rating
    852
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1