How to make it so pressing enter doesn't cause the comment to post?

Allon Prooit Posted in Beginning Developers 6 years ago

Wanting to make it so that you can have multiple lines in the comments field. I have upgraded OssnComments to include a button for submitting the comments. Would like to make it so that when you press enter you get a break and can enter comments on successive lines. How do you do this? Any thoughts?

Replies
German Michael Zülsdorff Replied 6 years ago

I have no idea about your 'upgraded' OssnComments component...
Default OssnComments will add newlines on pressing Shift-Enter

us Roman Lohov Replied 6 years ago

Try removing .submit() from js file in OssnComments.

$('#comment-container-' + $container).submit();
Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions