I've written a javascript html editor but i'm having problems...
I'm using a <div> tag with contenteditable="true" as the main editor window.
the only problem is when i type in it it uses <P> tags for each new line.
this is causing a bouble-spacing effect. how do i keep this from happening? is it possible to disable the <p> tags ability to line break?
example:
i type this[hit enter]then this.
-and i get:
on the browser it looks like this:
i type this
then this.
please help!!!
Dan Trenz
Ann Arbor, MI
I'm using a <div> tag with contenteditable="true" as the main editor window.
the only problem is when i type in it it uses <P> tags for each new line.
this is causing a bouble-spacing effect. how do i keep this from happening? is it possible to disable the <p> tags ability to line break?
example:
i type this[hit enter]then this.
-and i get:
Code:
<p>i type this</p>
<p>then this.</p>
on the browser it looks like this:
i type this
then this.
please help!!!
Dan Trenz
Ann Arbor, MI