# Tinymce problem

**URL:** <https://www.ruby-forum.com/t/tinymce-problem/174238>\
**Category:** Rails\
**Created:** [August 23, 2009, 4:48am UTC](https://www.ruby-forum.com/t/tinymce-problem/174238 "2009-08-23T04:48:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 23, 2009, 4:48am UTC](https://www.ruby-forum.com/t/tinymce-problem/174238/1 "2009-08-23T04:48:13Z")

</div>

Hi,

I am using tinymce for giving text editor the editing options.  
The problem its giving me is that if I press 1 enter, it actually ends  
up with two enters.

Example:

In editor I tpye  
"  
abc  
abccc"

But it ends up as "  
abc

abccc"

Does any one know about this?

---

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 23, 2009, 11:27am UTC](https://www.ruby-forum.com/t/tinymce-problem/174238/2 "2009-08-23T11:27:22Z")

</div>

On 23 Aug 2009, at 03:47, Ritvvij [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> "  
> abc  
> abccc"
> 
> But it ends up as "  
> abc
> 
> abccc"
> 
> Does any one know about this?

You’ve posted to totally the wrong list but to answer your question:  
you need to use shift+return to insert a break. Return actually  
creates a new paragraph which is why you’re seeing an extra line break.

> 

Ben

---

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 23, 2009, 6:51pm UTC](https://www.ruby-forum.com/t/tinymce-problem/174238/3 "2009-08-23T18:51:01Z")

</div>

Oh this is accepted behavior ?

---

<div class="post-metadata">

**Author:** ![Ritvvij](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/bbce88/32.png) [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Post date:** [August 23, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/tinymce-problem/174238/4 "2009-08-23T22:04:41Z")

</div>

Ritvvij wrote:

> Hi,
> 
> I am using tinymce for giving text editor the editing options.  
> The problem its giving me is that if I press 1 enter, it actually ends  
> up with two enters.
> 
> Example:
> 
> In editor I tpye  
> "  
> abc  
> abccc"
> 
> But it ends up as "  
> abc
> 
> abccc"
> 
> Does any one know about this?

Then you need to style your p tags to have a smaller top and bottom  
border’s/margin’s in your style sheet.  
Hope that helps
