/    Sign up×
Community /Pin to ProfileBookmark

contenteditable div | hitting enter problem

I have several contenteditable divs that are used to post information, however whenver I hit the enter key to move to the next line, a line break is created and the div duplicates.. or one of the two). The link below are the before and after hitting enter while using the editable div.

[ATTACH]14264[/ATTACH]

[ATTACH]14265[/ATTACH]

hitting shift+enter however nearly works correctly..

[upl-file uuid=33b95942-eb04-4517-8de7-660f1b29e178 size=11kB]Screen shot 2011-06-21 at 10.42.37 AM.png[/upl-file]

[upl-file uuid=02d04280-7426-40df-aecb-17792ebeae86 size=13kB]Screen shot 2011-06-21 at 10.42.54 AM.png[/upl-file]

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @captainrad spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...