So, I'm using FCK Editor on a webpage and when I hit enter it will create "<p>" tag by default. How can I change this to a "<br" tag instead?
I'm not sure which version I am using. I noticed that it also does the same thing on the demo page.
Thanks for the help!
I'm not sure which version I am using. I noticed that it also does the same thing on the demo page.
Thanks for the help!
Re: When I Hit Enter It Creates A New Paragraph. New Line Instea
FCKConfig.EnterMode = 'p' or 'br' or 'div'
Re: When I Hit Enter It Creates A New Paragraph. New Line Instea
I was unable to get that to work. Here what I have currently in fckconfig.js
Re: When I Hit Enter It Creates A New Paragraph. New Line Instea
Re: When I Hit Enter It Creates A New Paragraph. New Line Instea
In fckconfig.js I added the line "FCKConfig.EnterMode = 'br' ; // p | div | br" to the bottom of the file. I also changed "FCKConfig.UseBROnCarriageReturn = false;"
to "true"
This changed the way text is entered into the editor, but when I view the source it ends each line of text as
instead of
Re: When I Hit Enter It Creates A New Paragraph.
Hi Guys
To save having to go into source, the easiest way to create a new line rather than a new paragraph is to hold down the "shift" key and hit the "enter" key.
This will start a new line (inserts a <br> into the source code for you).
Hope this helps, Tina