Results 1 to 2 of 2

Thread: HTMLEditor producing textarea HML element with empty name

Threaded View

Previous Post Previous Post   Next Post Next Post
    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7746 in
  1. #1
    Sencha User
    Join Date
    Feb 2011
    Vote Rating

    Default HTMLEditor producing textarea HML element with empty name

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

    <%@page language="java" contentType="text/html; charset=utf-8"
    String displayName = request.getParameter("displayName");
    if (null == displayName){
        displayName = "";
    <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() {
        var myEditor;
        Ext.onReady(function() {
                myEditor = Ext.create("Ext.panel.Panel", {
                    height: 100,
                    width: 552,
                    renderTo: 'richtext',
                        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%>'
    <body style="margin: 0 0 0 0;">
    <form name="form1" id="brandingForm" action="testHTMLEditor.jsp" method="post">
                    <div id="richtext">
        <div style="width: 100%;">
            <input  type="button" value="Save" onClick="doSubmit();">
    See attachment for generated HTML code
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts