HtmlEditor

Page 1 of 2 12 LastLast

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    HtmlEditor

    Hi,



    I have downloaded this cool toolkit for ExtJs. I have included the HtmlEditor in a Window but when i run my project i am not able to apply formatting in HtmlEditor as the buttons are disabled





    my code





    
        <cool:ScriptManager ID="ScriptManager1" runat="server" />
    
        
    
            <cool:Window ID="wLogin" runat="server" Title="IHCVE Login" AutoShow="true" Modal="true"  Height="400" Width="600" Closable="false" MonitorResize="true">
    
                <Content>
    
                    <cool:HtmlEditor ID="HtmlEditor1" runat="server" AutoShow="true" CreateLinkText="Click to create link" >
    
                        <%--<ClientEvents>
    
                            
    
                        </ClientEvents>--%>
    
                    </cool:HtmlEditor>
    
                </Content>
    
            </cool:Window>




    What am i doing wrong?
  2. #2

    RE: HtmlEditor

    why i m not able to see the code which i posted in above post? i am also not able to edit my post :(
  3. #3

    RE: HtmlEditor

    Ok, the "code" tags don't appear to be working. I'll try to get this working immediately.
    Geoffrey McGill
    Founder
  4. #4

    RE: HtmlEditor

    The html editor used by this forum software does not appear to be parsing/stripping the '<' bracket correctly in FireFox. We're working on a fix.
    Geoffrey McGill
    Founder
  5. #5

    RE: HtmlEditor

    Does the HtmlEditor work if you remove the AutoShow="true" attribute from the tag?

    One other problem I think you're going to have with the current release (v0.3) is the Form controls (HtmlEditor included) will not postback their values when used inside a Window control. The html generated by the Window control is moved outside the <form> when the Window is rendered client-side. We're working on a fix.
    Geoffrey McGill
    Founder
  6. #6

    RE: HtmlEditor

    geoffrey.mcgill (2/19/2008)Does the HtmlEditor work if you remove the AutoShow="true" attribute from the tag?

    </p>

    One other problem I think you're going to have with the current release (v0.3) is the Form controls (HtmlEditor included) will not postback their values when used inside a Window control. The html generated by the Window control is moved outside the <form> when the Window is rendered client-side. We're working on a fix.
    </p>

    <br class="webkit-block-placeholder"></p>

    No it is still not working. I have moved the HTMLEditor code out side of Window</p>

    <br class="webkit-block-placeholder"></p>

    here is the code...I have also attached output which i am getting.</p>

    <br class="webkit-block-placeholder"></p>

    </p>
    
    <%@ Page Language="C#" AutoEventWireup="true" *CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <br class="webkit-block-placeholder">
    <%@ Register Assembly="Coolite.Web.UI" Namespace="Coolite.Web.UI" TagPrefix="cool" %>
    <br class="webkit-block-placeholder">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <br class="webkit-block-placeholder">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    ** *<title>Untitled Page</title>
    </head>
    <body>
    ** *<form id="form1" runat="server">
    ** *<cool:ScriptManager ID="ScriptManager1" runat="server" />
    ** *
    ** * *<%-- *<cool:Window ID="wLogin" runat="server" Title="IHCVE Login" AutoShow="true" Modal="true" *Height="400" Width="600" Closable="false" MonitorResize="true">
    ** * * * * *<Content>--%>
    ** * * * * * * *<cool:HtmlEditor ID="HtmlEditor1" runat="server" CreateLinkText="Click to create link" >
    ** * * * * * * * * *<%--<ClientEvents>
    ** * * * * * * * * * * *
    ** * * * * * * * * *</ClientEvents>--%>
    ** * * * * * * *</cool:HtmlEditor>
    ** * * * * * * *
    ** * * * * * * *<cool:Calendar ID="Calendar1" runat="server">
    ** * * * * * * *</cool:Calendar>
    ** * * * * <%-- </Content>
    ** * * *</cool:Window>
    ** * * *--%>
    ** *
    
    ** *</form>
    </body>
    </html>
    <br class="webkit-block-placeholder">
    </p>
    </p>
  7. #7

    RE: HtmlEditor



    Very strange.

    I get that exact same behaviour in IE+FF when AutoShow="true". When I remove AutoShow everything is good.

    Any possiblitiy your browser could be caching?

    As well, posting the block of Ext.onReady script that gets written to the head of the Page may help us diagnose.


    Geoffrey McGill
    Founder
  8. #8

    RE: HtmlEditor



    We've fixed the postback problem with window. The <cool:Window> control will now postback it's content to the Page.

    The following sample demonstrates a simple example.

    <%@ Page Language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Button1_Click(object sender, EventArgs e)
        {
            this.Label1.Text = "You entered: " + this.TextBox1.Text;
        }
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head2" runat="server">
        <title>Ext Window with PostBack</title>
    </head>
    <body>
        <form id="form1" runat="server">
            
            <cool:ScriptManager ID="ScriptManager1" runat="server" />
    
            <asp:Label ID="Label1" runat="server" />
            <cool:Window 
                ID="Window1" 
                runat="server" 
                AutoShow="True" 
                BodyStyle="padding: 6px;" 
                Collapsible="True">
                <Content>
                    <asp:TextBox ID="TextBox1" runat="server" /><br />
                    <asp:Button runat="server" id="Button1" Text="submit" &#111;nclick="Button1_Click" />
                </Content>
            </cool:Window>
                    
        </form>
    </body>
    </html>
    As far as the other rendering problem you noted, I'm almost 100% positive it was because the AutoShow property was set to true.

    Please let us know if it's still giving you problems.

    The new Window with postback support will be available with the next release (v0.4) due out at the end of the February.

    If you're desperate for the fix, pm me and I'll get you a build.
    Geoffrey McGill
    Founder
  9. #9

    RE: HtmlEditor

    *It is working fine now.<br class="webkit-block-placeholder">
    however i encountered a new problem..
    <br class="webkit-block-placeholder">
    I have added HtmlEditor in the example u posted in previous post. when i try to collapse the window which contains the editor it replaces its contents with "false". This is happening only in Firefox.
  10. #10

    RE: HtmlEditor

    Hi arya009,

    The HtmlEditor displaying 'false' is unfortunately caused by a bug in FF (and Safari). At the moment there are some limitations as to where the HtmlEditor can be placed. Any location where the container is hidden (i.e. Window collapse/expand) will render this bug.

    Adding the HtmlEditor to a Window works fine, just not collapsing a Window with an HtmlEditor inside.

    I have a theory on how to work around, but have yet to get something solid. I'm devoting some time today to figure out this problem.

    I'll do my best to keep this thread updated.
    Geoffrey McGill
    Founder
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] ListView with HtmlEditor -> HtmlEditor value is null
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Apr 17, 2012, 12:50 AM
  2. HtmlEditor Render Bug
    By htmlEditor in forum 1.x Help
    Replies: 6
    Last Post: Sep 13, 2011, 8:57 PM
  3. HtmlEditor not working with Ext.NET 1.0 RC1
    By beufreecasse in forum 1.x Help
    Replies: 2
    Last Post: Jun 13, 2011, 11:07 PM
  4. HtmlEditor -- Remove <P> tag
    By bmagana in forum 1.x Help
    Replies: 0
    Last Post: Jun 09, 2011, 5:46 PM
  5. HtmlEditor contains
    By okutbay in forum 1.x Help
    Replies: 0
    Last Post: May 06, 2010, 9:37 AM

Posting Permissions