[CLOSED] HtmlEditor

  1. #1

    [CLOSED] HtmlEditor

    Hello

    I am using ext-1.0 version, I am getting an JS error on "HtlmlEditor" using Generic Plugins, error is "Microsoft JScript runtime error: Object expected"

    Here is my code
    Advise..

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="HtmlEditor.aspx.vb" Inherits="Contract_HtmlEditor" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" 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>Ext.NET Example</title>
        <link href="~/Styles/htmleditorplugins.css" rel="stylesheet" type="text/css" /> 
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" />
        <ext:HtmlEditor ID="TestEditor" runat="server" Width="950" Height="400">
            <Plugins>
                <ext:GenericPlugin ID="GenericPlugin1" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Link"
                    Path="Ext.ux.HtmlEditor.Plugins-0.2-all-debug.js" />
                <ext:GenericPlugin ID="GenericPlugin2" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Divider" />
                <ext:GenericPlugin ID="GenericPlugin3" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Word" />
                <ext:GenericPlugin ID="GenericPlugin4" runat="server" InstanceName="Ext.ux.form.HtmlEditor.FindAndReplace" />
                <ext:GenericPlugin ID="GenericPlugin5" runat="server" InstanceName="Ext.ux.form.HtmlEditor.UndoRedo" />
                <ext:GenericPlugin ID="GenericPlugin6" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Divider" />
                <ext:GenericPlugin ID="GenericPlugin7" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Image" />
                <ext:GenericPlugin ID="GenericPlugin8" runat="server" InstanceName="Ext.ux.form.HtmlEditor.Table" />
                <ext:GenericPlugin ID="GenericPlugin9" runat="server" InstanceName="Ext.ux.form.HtmlEditor.HR" />
                <ext:GenericPlugin ID="GenericPlugin10" runat="server" InstanceName="Ext.ux.form.HtmlEditor.SpecialCharacters" />
                <ext:GenericPlugin ID="GenericPlugin11" runat="server" InstanceName="Ext.ux.form.HtmlEditor.IndentOutdent" />
                <ext:GenericPlugin ID="GenericPlugin12" runat="server" InstanceName="Ext.ux.form.HtmlEditor.SubSuperScript" />
                <ext:GenericPlugin ID="GenericPlugin13" runat="server" InstanceName="Ext.ux.form.HtmlEditor.RemoveFormat" />
            </Plugins>
        </ext:HtmlEditor>
        </form>
    </body>
    </html>
    Last edited by geoffrey.mcgill; Dec 20, 2010 at 10:01 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please provide us with .js and .css files to test.
  3. #3
    See Attached
    Attached Files
  4. #4
    Hi,

    There are no the following classes in Ext.ux.HtmlEditor.Plugins-0.2-all-debug.js

    1. Ext.ux.form.HtmlEditor.Link
    2. Ext.ux.form.HtmlEditor.FindAndReplace
    3. Ext.ux.form.HtmlEditor.UndoRedo
    4. Ext.ux.form.HtmlEditor.Image

    I was able to get your code working when commented out the respective GenericPlugin controls.

    I guess these classes were renamed or removed/replaced in this version of plugin.
  5. #5
    Thanks alot, you can close this request now..

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. [CLOSED] HTMLEditor defaultFont
    By SamFoot in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 30, 2009, 8:29 AM
  3. [CLOSED] HtmlEditor
    By state in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 10, 2009, 5:21 PM
  4. [CLOSED] ext:HtmlEditor cleanHtml
    By Emre in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 27, 2009, 1:35 PM
  5. [CLOSED] HtmlEditor
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Sep 23, 2008, 8:44 AM

Tags for this Thread

Posting Permissions