From:  Postmaster <noreply@spiraldesign.com>
Date:  21 Jan 2005 04:32:20 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.editor
Subject:  

Re: designMode having problems with newlines?

NNTP-Posting-Host:  host-64-246-146-16.ubr0.dc1-alb.inoc.net

Hi Balu,

It seems that the problem is that your "empty.html" is missing attributes in
the header and body.

Try specifying the DOCTYPE, the META character set and setting the BODY
margins (I pasted an example below for you). Not having the BODY margins is
is the problem causing your bug.

Nice job on your editor code & implementation so far!

Would it be possible for me to use/adapt your table editing code? I have
been looking for something to do that for a while with my editor.


"EMPTY.HTML" file setup:
---------------------------------------------





    Editor Content






testing... This is not really  empty... 

---------------------------------------------

Best regards,
Robert


On 1/17/05 5:38 PM, in article 352t34F4gdsh3U1@individual.net, "Thomas
-Balu- Walter"  wrote:

> I am just playing around with the mozilla editor/designMode
> implementation. To do so I've created a small prototype to test the
> functionality, etc.
> 
> You can find a temporary copy (unclean source) at
> http://www.b-a-l-u.de/Playground/tmpedit/
> 
> The problem I experience seems to be related to newlines in the file
> empty.html the edit-iFrame get's loaded with at the beginning.
> 
> If you load the page, switch to source view and try to add some content
> at the end (or in one of the table cells or similar) the typed
> chars are added a few characters to the left of the cursor.
> 
> Removing the newlines from the empty.html avoids this problem.
> 
> But is this a bug or a feature? What else might cause this? Is the only
> method to avoid this problem the removal of the newlines?
> 
>    Balu


			
			
AA AB AC AD
BA BB BC BD
CA CB CC CD
DA DB DC DD