[Javascript] Div content editable

Andrew Gibson andyg at ihug.co.nz
Sun Oct 20 01:57:20 CDT 2002


I have a div which is contenteditable

But when the user hits enter, it creates a new <p></p>, resulting in the cursor dropping 2 lines but I just want it to drop a single line!

How can I have it so the enter button only creates, I presume, a <br> so the cursor just drops a single line?

Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20021020/131e204a/attachment.htm>


More information about the Javascript mailing list