Skip Navigation Links » Forums » Jiffycms HTML Editor V1.x » General-Questions » Re-Problem-with-Insert-Table-in
  • List of posts 
    Problem with Insert Table in HTMLEditor
    Problem with Insert Table in HTMLEditor
    Not top poster.
    Joined on 08 Jan 2010
    Total posts: 14
    Reply

    I have an HTMLEditor on my page and everything is running good so far, but when i tried to create an Html Table using the Create Table button on the Editor i got this msg:

    Microsoft JScript runtime error: 'parentNode' is null or not an object

    the message was on the following line:

    a.parentNode.replaceChild(e,a)

    since parameter "a" is being null this problem occurs.

    any idea why is that happening?

    Thanks in advance


    Re: Problem with Insert Table in HTMLEditor
    Not top poster.
    Joined on 08 Jan 2010
    Total posts: 14
    Reply

    I retested it again, it seems to be working fine on Firefox & GoogleChrome, but when trying on IE8 it crashed, i also tried the example website on the IE8 but it worked fine, i don't know what i'm doing wrong.

    Here is a sample of the code:

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
        Inherits="ContactUs" Title="Contact Us" CodeBehind="ContactUs.aspx.cs" ValidateRequest="false"  EnableViewState="true" %>

      <Jiffy:Editor ID="txtArabic" runat="server" EnableFileBrowser="True" Height="500px"
                                        IconsMode="ImageSprites">
                            <EmbeddedImagePicker ID="EmbeddedImagePicker1" runat="server" ImageBrowserEnabled="true">
                            </EmbeddedImagePicker>
      </Jiffy:Editor>


    Re: Problem with Insert Table in HTMLEditor
    Not top poster.
    Joined on 03 Feb 2010
    Total posts: 6
    Reply

    I'm having the exect same problem.  Here is some additional info:  If I click "ignore" on the error message the table is inserted, proceeded by this tag in html view:

     <p id="$temp$jcms">
        </p>

    Re: Problem with Insert Table in HTMLEditor
    Forum moderator
    Not top poster.
    Joined on 06 Jan 2009
    Total posts: 210
    Reply

    Hello, unfortunately I was unable to repo it. Are you using the latest version?

    The easiest way is to ensure that you have the same version as that of the online sample and then make it reproducible online. Don't worry, I will work with you till this is resolved.

    Have a good day,




    Alessandro Zifiglio
    Jiffycms.net
    We are now on twitter! Follow us for the latest.
    Re: Problem with Insert Table in HTMLEditor
    Forum moderator
    Not top poster.
    Joined on 06 Jan 2009
    Total posts: 210
    Reply

    mm without going into the details, the p element you see above is a temporary element that I have specially crafted for IE and you should not see it. Your seeing this means something unexpected broke. This basically allows the editor to break out of an inline element or an element that cannot contain a block level element such as the table while using builtin functionality in IE itself.

    So, what would be best is if you can paste a portion of the markup that is already in the editor and where exactly you are trying to insert the element. Eg, if you have a div and inside this div somewhere between the words apple and orange you wanted to insert the table, then I want to know this.This way I can repo it. Since the two of you report the same problem, it probably means it's happening under some specific circumstance and probably a bug i need to fix.

    Many thanks,




    Alessandro Zifiglio
    Jiffycms.net
    We are now on twitter! Follow us for the latest.
    Re: Problem with Insert Table in HTMLEditor
    Not top poster.
    Joined on 03 Feb 2010
    Total posts: 6
    Reply
    It happens no matter where I try to insert the table, even if there is no other markup yet.  I am using it in a project with a master page and as part of the editItem template of a listview, it seems like that has something to do with it, as I started a new project to test that had nothing but a editor control on it and it inserted tables fine.
    Re: Problem with Insert Table in HTMLEditor
    Forum moderator
    Not top poster.
    Joined on 06 Jan 2009
    Total posts: 210
    Reply

    Ok cool. I shall use your setup as a starting point and let you both know more.





    Alessandro Zifiglio
    Jiffycms.net
    We are now on twitter! Follow us for the latest.
    Re: Problem with Insert Table in HTMLEditor
    Not top poster.
    Joined on 08 Jan 2010
    Total posts: 14
    Reply

    i found out what the problem was, its from the AjaxControlToolkit, if you are using the latest version then u'll probebly get this error, but if you downgrade to the May 2009 release this problem will be fixed.

    I actually figured it out by chance, since i had other problems with the latest version of the toolkit and when i changed it the Table problem in the editor disappeared as well.

    Please let me know if you're still getting the error or if your not using the Ajax at all.

    Hope i was of help.