Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you paste linefeeds into mediawiki?

Tags:

mediawiki

In a text editor (notepad) I create text like this

=Heading=
* item1
* item2
* item3

Then I try to copy and paste that into mediawiki and it turns it into

=Heading= * item1 * item2 * item3

How do I get mediawiki to STOP removing the end of lines in pre-formatted text?

like image 744
gman Avatar asked Aug 05 '12 00:08

gman


2 Answers

@gman's answer no longer works (using WikiEditor version 0.3.1).

If you are just a wiki editor you actually need to uncheck

     Enable navigable table of contents 

under

     My Preferences->Labs features

If you are the host of the wiki, you should add this line to your LocalSettings.php file:

$wgDefaultUserOptions['usenavigabletoc'] = 0;

This disables the navigation column on the right side of the wiki editor for all users, which seems to be the cause of the line breaks not working properly.

like image 120
Mastergalen Avatar answered Oct 01 '22 01:10

Mastergalen


The issue is you need to turn off Show edit toolbar (requires JavaScript) under My Preferences->Editing

With that on copy and paste has issues with linefeeds. With it off the issues go away.

like image 43
gman Avatar answered Oct 01 '22 00:10

gman