Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

WYSIWIG editors and preservation of HTML whitespace / formatting?

$
0
0

Hi, all. I'm tinkering with the wysiwig module and CKeditor under Drupal 6 at present, and I have a concern and some questions.

I've tried using wysiwyg editors in the past, but I have never been particularly happy with the results. My main concern is preserving the raw HTML formatting/whitespace in the node body. When I switch between the normal (non-wysiwyg) view and the wysiwyg editor (and back again), wysiwyg editors seem to trash the original whitespace formatting of the HTML (and I can't see any good reason for that).

I'm sure there are ways to control this behavior in the wysiwyg editor (in this case, CKeditor) but I haven't found it yet.

What I don't understand is why wysiwyg editors' default behavior is to trash the whitespace of the original HTML source. This is a deal-breaker for me, because I want to be able to disable the wysiwyg editor (or have it disabled by default) and use the native Drupal form to edit raw HTML, and the wysiwyg editors all seem to mangle the HTML by removing the whitespace. Cleanly formatted HTML is important to me. (And no, I don't want to pass the HTML through HTML Tidy or something like that...)

Now, my questions:

  1. How to configure wysiwyg module and CKeditorto preserve the current node body HTML source whitespace? If such information is available online, no need to explain, just provide a link :D
  2. Which wysiwyg editors are good (or better) at this? Should I use something other than CKeditor?

Viewing all articles
Browse latest Browse all 49199

Trending Articles