Body tag content between browsers

Last post 03-13-2009, 5:07 PM by Adam. 15 replies.
Sort Posts: Previous Next
  •  11-23-2008, 4:11 PM 46179

    Body tag content between browsers

    With the editor set to edit whole document:-
    $editor->EditCompleteDocument=true;
    Adding a body style as:-

    $editor->EditorBodyStyle="margin:0px;padding:0px;font:normal 12px arial;color:#6633ff;background:#ffffff;";

    FIREFOX 3.0.4 creates a body tag of:-

    <body style="margin: 0pt; padding: 3px; background: #ffffff none repeat scroll 0% 0%; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: #6633ff; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">

    IE 7.0.6001.18000 creates a body tag of:-

    <body>

    Whilst the view within the editor shows the body style applied the code created in IE does not include it.

    Why is so much mozilla specific code added to the body tag in firefox?
    Why is nothing added to the body tag in IE?
    If the end user (In IE) then edits the document properties and changes the font color it does not take effect. The original color added to EditorBodyStyle overides this.
    Also in Firefox why is a diffault padding of 3px added even though it's been specified as 0px, my setting overridden?
     
    This obviously does not create code that works on all browsers if the code created is displayed in an iframe afterwards because the style information is missing for IE.
     
    Am I doing something wrong? Is there something I need to add to the config or is this a fault?
     
    Thanks
    GT
  •  11-25-2008, 1:12 AM 46265 in reply to 46179

    Re: Body tag content between browsers

    Glenn,
     
    Please download the control again.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-26-2008, 5:44 AM 46307 in reply to 46265

    Re: Body tag content between browsers

    I've downloaded the latest version and it is exactly the same.

  •  12-04-2008, 2:12 AM 46550 in reply to 46307

    Re: Body tag content between browsers

    Hi, Have you found a solution to this problem?
  •  12-12-2008, 7:55 AM 46854 in reply to 46550

    Re: Body tag content between browsers

    Hi Glenn,
     
    We can reproduce this, we investigating this issue, and will get back to you as soon as possible.
     
     
    Regards,
     
    Ken
  •  01-07-2009, 4:15 PM 47532 in reply to 46854

    Re: Body tag content between browsers

    Am I likely to ever see any progress with this issue?

    It seems that support for this product is very poor, at least with the PHP version of it anyway. It's been 6 weeks since I first posted on here with this bug.

    Businesses that have purchased licenses expect a lot more especially when they are incorporating this into their websites and can’t wait 6 weeks for a bug (which shouldn’t be there) to be fixed. I’ve had to find a workaround to this problem and I’m considering moving away to one of the other editors available.
  •  01-07-2009, 4:30 PM 47533 in reply to 47532

    Re: Body tag content between browsers

    This issue will be fixed in the coming new version which will be released in the end of January.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-09-2009, 3:51 AM 48484 in reply to 47533

    Re: Body tag content between browsers

    Did a "New Version" get released? 
  •  03-06-2009, 11:15 AM 49573 in reply to 48484

    Re: Body tag content between browsers

  •  03-06-2009, 2:55 PM 49595 in reply to 49573

    Re: Body tag content between browsers

    Hi,

    I have just downloaded the latest version and tested.

    Firefox now gives:-
    <body style="margin: 0px; padding: 0px; background: #ffffff none repeat scroll 0% 0%; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; color: #6633ff; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
     
    So the "padding: 3px;" has been fixed in firefox !!! Great.
     
    HOWEVER
     
    IE still produces an empty body tag:-
     
    <body>
     
    This is useless for the reasons first described.
     
    All the other faults still exist after 3 months 2 weeks. Perhaps it's time for me to give up on this product?
    I even reported a spelling mistake when I first bought the product nearly a year ago which is still there.
    "Set font color" -> "More Colors" -> Dialog says "Web Paletteee"
     
    Last one is very trivial but I think it summerizes the support on this product. I know the support is much better with .net which is a shame really.
     
     
     
     
     
  •  03-06-2009, 3:32 PM 49596 in reply to 49595

    Re: Body tag content between browsers

    <html>
         <head>
         </head>
         <body bgcolor="red">
             <img alt="" src="http://cutesoft.net/Uploads/12.jpg" border="0" width="100" height="100" />
         </body>
    </html>
     
    Can you try the above code?
     
    >>IE still produces an empty body tag:
     
    Can you show me how to reproduce this issue in this example?
     
     
    >>"Set font color" -> "More Colors" -> Dialog says "Web Paletteee"
     
    >>I know the support is much better with .net
     
    PHP shares the same JavaScript code base with ASP.NET.
     
    All bug fixes apply to both version.
     
    Please open CuteEditor_Files\Dialogs\Colorpicker.php and change the title to:
     
    <title><?php echo GetString("MoreColors") ; ?></title>
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-07-2009, 1:37 PM 49604 in reply to 49596

    Re: Body tag content between browsers

    Ok the online version appears to work but when I tested with the downloaded version it did not work at that point.

    Has the download location been updated with this new code?
  •  03-07-2009, 1:45 PM 49605 in reply to 49604

    Re: Body tag content between browsers

    There is still a bug.
     
    Here's how you can reproduce the bug in your online example (you will have to edit your source first):-
     
    Inside your Edithtml.php source code I noticed you had the essential line commented out :-
    $editor->EditorBodyStyle=....
     
    This is the instruction that is causing the main problem.
     
    Make sure the EditorBodyStyle is set to say "margin:0px;"
     
    When you load the page in IE you will see that the margin is applied correctly to the document.
    Now click HTML tab.
     
    You will see that this margin setting has NOT been written to the body tag.
     
    If you add it yourself at this point it remains (didn't before but looks like you've fixed this).
     
    So any contents of EditorBodyStyle is applied to the contents but is not written into the body tag in IE.
  •  03-09-2009, 9:17 AM 49624 in reply to 49604

    Re: Body tag content between browsers

    Glenn:

    Ok the online version appears to work but when I tested with the downloaded version it did not work at that point.

    Has the download location been updated with this new code?
     
    Yes.  The download package has been updated with the latest code.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-11-2009, 6:01 PM 49781 in reply to 49624

    Re: Body tag content between browsers

    Hi,
     
    You did not respond to my last message stating that the BUG is still there only to the one before asking if you updated the download.
     
    You asked me how you could reproduce it in your online example and I have given you an answer how you can. Can you now please let me know when this will be solved.
     
    Thank you.
  •  03-13-2009, 5:07 PM 49879 in reply to 49605

    Re: Body tag content between browsers

    Glenn:
    There is still a bug.
     
    Here's how you can reproduce the bug in your online example (you will have to edit your source first):-
     
    Inside your Edithtml.php source code I noticed you had the essential line commented out :-
    $editor->EditorBodyStyle=....
     
    This is the instruction that is causing the main problem.
     
    Make sure the EditorBodyStyle is set to say "margin:0px;"
     
    When you load the page in IE you will see that the margin is applied correctly to the document.
    Now click HTML tab.
     
    You will see that this margin setting has NOT been written to the body tag.
     
    If you add it yourself at this point it remains (didn't before but looks like you've fixed this).
     
    So any contents of EditorBodyStyle is applied to the contents but is not written into the body tag in IE.
     
    If you are editing full html page, you should not use the EditorBodyStyle property because the full html page is is under your control, include the body tag.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML