Strange linebreaks in WYSIWYG drupal module!

4 posts / 0 new
Last post
Nethmi's picture
Offline
Joined: 22 Nov 2010
Posts:
Strange linebreaks in WYSIWYG drupal module!

Hello everyone,
This morning seems to be a sucking one. I was trying to give WYSIWYG features to my D6 site. I enabled WYSIWYG drupal module and installed TinyMCE library.

Unfortunately TinyMCE adds strange line breaks when pressing the enter key. If I'm correct, when pressing the Enter key once, I get 2 line breaks.
But I discovered that when pressing the SHIFT+Enter keys, It works fine.

Please don't ask me to show a message on top of page asking site users to use Shift+Enter instead of Enter key.

I need a good solution.

I changed the CSS files to Garland's, changed settings for each editor profile, added linebreak tags to input formats, switched off/on linebreak converter, etc etc. It was sucking everytime!

I simply need to change the behaviour of Shift+Enter and Enter keys.

anjula's picture
Offline
Joined: 10 Aug 2010
Posts:

Solution: use CKeditor!

I'm not a day-to-day drupal developer, but I have used Drupal 5.

I had the same problem. I haven't used WYSIWYG module.

I gave a try to CKeditor. I could edit the settings file of CKeditor library. I changed the default behaviour when pressing Enter Key to a < br > tag (default was < p >.). It really solved!

SilverX's picture
Offline
Joined: 28 Oct 2010
Posts:

Anjula gave the answer!

Ckeditor project - http://drupal.org/project/ckeditor

you will see a message saying move to WYSIWYG module. Go to "view all releases" and download the ckeditor module.
Enable it.

In admin > settings > ckeditor , change the enter key behaviour to a br tag and shift enter to a "p" tag.

However if you love wysiwyg module, install wysiwyg module/ckeditor *library* and change settings of ck library.(there is a readme.txt there)

anjula's picture
Offline
Joined: 10 Aug 2010
Posts:

If you want to change the buttons in ckeditor.module, definetely you can do it in settings.js file.
But if you use Wysiwyg module, you can do it without editing the files.

So I recommend wysiwyg module. It's actively maintained and has a good support. Ckeditor module seems to be abondoned.

Nethmi wants to use TinyMCE. But I couldn't find a way to alter enter key behaviour in tinemce settings. Sorry.