1

Topic: P instead of BR

Simple question. Why TinyMCE inserts BR on Enter, I'd like it to insert P tag... How?

2

Re: P instead of BR

I thought that was standard behaviour as my version puts in a p tag - you have to hit Shift + Enter to get a BR.

3

Re: P instead of BR

It doesn't work on mine. It puts BR. I use version 1.38.

4

Re: P instead of BR

See the section on: force_br_newlines

Here:
http://tinymce.moxiecode.com/docs/using.htm

Yet another editor hacker
[Not affiliated with moxycode - I just love TinyMCE smile]

5

Re: P instead of BR

yep! I just have it force_br_newlines : false and still nothing happens. I got BR

6

Re: P instead of BR

What browser(s) are you using?

Do you get this error in all browsers, or just one?

Yet another editor hacker
[Not affiliated with moxycode - I just love TinyMCE smile]

7

Re: P instead of BR

im using both firefox and ie. both insert <br/>

8

Re: P instead of BR

Spooky - could you post your init call here?

It could always be a bug, though - might be worth posting on the bug forum about it, but might as well test everything for them that we can first smile

Yet another editor hacker
[Not affiliated with moxycode - I just love TinyMCE smile]

9

Re: P instead of BR

I will place focus on fixing the P vs BR on enter Firefox issue in the next release of TinyMCE. This nasty little issue is pretty annoying and somewhat hard to fix.

When this fix is finished, TinyMCE will produce P elements on enter in both FF and MSIE and produce BR elements on Shift+Enter.

Best regards,
Spocke

Best regards,
Spocke - Main developer of TinyMCE

10

Re: P instead of BR

great!

11

Re: P instead of BR

I'd like to have a option to select what I to get on Enter and Shift+Enter - <p> or <br /> tongue ... depends a bit on the application what's better.