Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm building a website fro a client which uses TinyMCE as the main WYSIWYG editor. Now my client asked if it is possible to write a line and make a line break and then continue without leaving a space between the text before and after the line break (e.g. just like in word).

I told him that the web uses paragraph for formatting and not line breaks. Still he'd like to use line breaks for formatting. Should I convince him not to use line breaks for formatting or should I just switch TinyMCE to line break mode (which the is not recommended in the TinyMCE documentation).

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Simply use the <br /> tag wherever you want a new line...

If tinyMCE doesn't have a button for that already, I remember it was dead simple to write plugins like that with a few lines of javascript.

Same as on SE, you can use it like this:

This should work <br />with no problems.

This should work
with no problems.

share|improve this answer
    
What do you mean by SE? –  wowpatrick Aug 6 '11 at 14:08
    
this site (or network of Q&A sites), SE = StackExchange –  thorsten müller Aug 6 '11 at 14:10
    
See. Good to know. –  wowpatrick Aug 6 '11 at 14:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.