Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: openSUSE 10.2
Web server: apache
Perl version: 5.88
Client OS:  
Web Browser: firefox / IE
Categories: Plugins

-- BrianMahoney - 26 Jul 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-09-01 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.