[CLOSED] HtmlEditor Problem

  1. #1

    [CLOSED] HtmlEditor Problem



    Hi,
    See the attachment and*my code...
    Html Editor readonly and disabled property is not working i am able to edit.
    There is a major problem in my application. when you will fix this?
    I need this soon.</p>


    <ext:ScriptManager ID="ScriptManager1" runat="server"></ext:ScriptManager>
    <ext:HtmlEditor ID="HtmlEdr2" EnableColors="false" Disabled="true" runat="server">
    <CustomConfig>
    <ext:ConfigItem Name="width" Value="100%" Mode="Value" />
    </CustomConfig>
    </ext:HtmlEditor>
    </p>
  2. #2

    RE: [CLOSED] HtmlEditor Problem

    There is a work-around posted in the following thread and the final post in the thread is a patch offered by you (or your forum account), see*http://forums.ext.net/showthread.php?postid=5489.aspx

    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] HtmlEditor Problem

    Hi,
    run this code. on clicking the bottom border line of htmleditor you can edit this.. and horizontal scroll is not working. This problem how to fix this.....

    [CODE]
    <%@ Page Language="C#">
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title></title>
    <ext:ScriptContainer ID="ScriptContainer1" runat="server"></ext:ScriptContainer>
    <script type="text/javascript">
    Ext.override(Ext.form.HtmlEditor, {
    setReadOnly: function(readOnly) {
    if (readOnly) {
    this.syncValue();
    var roMask = this.wrap.mask();
    roMask.dom.style.filter = "alpha(opacity=0);";
    roMask.dom.style.opacity = "0.0";
    roMask.dom.style.background = "white";
    roMask.dom.innerHTML = this.getValue();
    roMask.dom.style.width = (this.container.dom.offsetWidth - 15) + "px";
    roMask.dom.style.height = (this.height - 15) + "px";
    this.el.dom.readOnly = true;
    }
    else {
    if (this.rendered) this.wrap.unmask();
    this.el.dom.readOnly = false;
    }
    }
    });
    </script>
    </head>
    <body>
    <form id="form1" runat="server">

    <ext:ScriptManager ID="ScriptManager1" runat="server"></ext:ScriptManager>
    <ext:HtmlEditor ID="HtmlEditor1" runat="server" Disabled="true" EnableSourceEdit="False"
    Text=" insert lot of text here to enable scrollbar ">
    <Listeners>
    <Render Handler="this.setReadOnly(true);" />
    </Listeners>
    </ext:HtmlEditor>


    </form>
    </body>
    </html>
    [/code ]
  4. #4

    RE: [CLOSED] HtmlEditor Problem

    The ReadOnly property should have much better support now.

    Please svn update and re-test when you have a moment.*


    Hope this helps.


    Geoffrey McGill
    Founder

Similar Threads

  1. Problem in Htmleditor
    By speedstepmem4 in forum 1.x Help
    Replies: 1
    Last Post: Jun 03, 2009, 10:19 AM
  2. [CLOSED] HtmlEditor so many tags problem
    By tansu in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 21, 2009, 12:45 PM
  3. [CLOSED] htmleditor encoding problem
    By alexp in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: May 07, 2009, 9:05 AM
  4. Htmleditor Problem
    By designworxz in forum 1.x Help
    Replies: 0
    Last Post: Mar 04, 2009, 5:50 AM
  5. [CLOSED] tabpanel with htmleditor problem
    By Lex in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 24, 2008, 9:05 AM

Posting Permissions