Question
In WYSIWYG editors, if you hit enter/return, it will separate your lines into new paragraphs, leaving a lot of empty space between the two lines of text.
However, when you work in the TWiki editor:
An empty line separates paragraphs, A simple newline doesn't.
Harald Joerg suggested that "the easiest workaround would be to simply hit return twice if you want a new paragraph. As an alternative, you can explicitly add
%BR%
, a line break, which will be translated into a HTML
element and is usually formatted with less space between the lines than a new paragraph."
Does anyone know if there is a way to make this a permanent change - often when i am using WYSIWYG editors such as
TinyMCE / kupu - hitting enter yields new paragraph spacing in one touch of the enter key.
The reason I am trying to offer the WYSIWYG compatibility is to make it easier to create a page for inexperienced users who may find a editing screen with code intimidating, thus avoiding using the wiki.
Environment
--
BrianMahoney - 26 Jul 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Unfortunately TML has quite strict rules about how newlines in text are interpreted, and i would be loath to try and change those. Harald's suggestions are really your only option on the TML side.
You can try finagling the options in the JS editor - for example, IIRC
TinyMCE has options for controlling whether <br> or <p> is inserted when the user hits return.
--
CrawfordCurrie - 01 Sep 2007