1

First, the problem: I create a new Basic Page content with simple text and a couple of carriage returns, for example:

this
is
my
content.

I save the content using "Filtered HTML". When I then try to edit that content (still with "Filtered HTML") the content in the body of the editor has lost all the carriage returns (and formatting if applied) and looks like this:

this is my content.

If I save this content it still looks like the above.

This does not happen with the WYSIWYG module installed but no editor added. When I add TinyMCE and configure with any buttons, then I get the above problem. This also happens with CKEditor.

I've tried three new clean installs of test sites (two on my local server and one remote) and I get the same results when I try to configure an editor with WYSIWYG.

The only non-core modules I have installed are chaos tool and WYSIWYG.

Very perplexing. Can anyone help?

1 Answer 1

0

Put <br/> in view source mode of your field as your line separators.

2
  • Isn't the whole point of a CMS like Drupal that users don't have to insert HTML into their posts? Are you saying that the problem I describe is normal behavour for editors in Drupal?
    – user13713
    Commented Feb 14, 2013 at 17:08
  • this is a more general problem of WYSIWIG editors. a carriage return produces a new <p> (paragraph). you can style the space in bewteen them via css. also there are other workarounds, like a plugin/button for your WYSIWIG editor, that produces a <br> tag.
    – rémy
    Commented Feb 14, 2013 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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