Extension:TinyMCE MW

What can this extension do?
If you already have pages written in Mediawiki wikitext, this extension enables Moxiecode's TinyMCE and does not break a majority of Mediawiki wikitext. Also, TinyMCE_MW has a new 'msword' configuration theme. msword follows the MS Office 2003 toolbar layout. Call TinyMCE's,   and a built-in   theme from LocalSettings.php. TinyMCE_MW was built and tested on Mediawiki-1.10.0, IE 6. Successfully tested CategoryTree extension for compatibility with new tags.

Usage
TinyMCE is not naturally a Wikitext editor. TinyMCE is a javascript WYSIWYG editor. With this extension, you can easily use TinyMCE with Mediawiki and provide users with a toolbar editor they may be more familiar with.

Installation
1) Download TinyMCE and unzip into your MediaWiki extensions path (the result should look like ..\Yourwiki\extensions\tinymce\...) 2) Copy and create TinyMCE_MW.php in your MediaWiki extensions path (..\Yourwiki\extensions) 3) Add the following lines to LocalSettings.php: $wgUseTinymce = true;#Init needed for clicking on a new article link $wgDefaultUserOptions ['showtoolbar'] = 0; #new users get this default or modify DefaultSetting.php $wgTinymceTheme = "msword";                 #"simple", "advanced", "msword", else none $wgMyWikiURL = "http://$wgDBserver/$wgScriptPath/index.php/"; $wgExt_valid_elements = "data[table|template],repeat[table|sort],categorytree[mode|depth],inputbox [type|bgcolor|width|default|preload|editintro|buttonlabel|searchbuttonlabel|break], big"; require_once("$IP/extensions/TinyMCE_MW.php");
 * 1) TinyMCE_MW.php: Easily implement Moxiecode's TinyMCE into MediaWiki

Code
Copy and paste from TinyMCE_MW.php

Limitations and Bug/Error

 * Does not support Wikitext Bullet list.
 * Does not support Wikitext Numbered list.
 * Does not support Wikitext Redirect to another article.
 * Does not support Wikitext Tables.
 * Does not support h1 tags because "|=.*?=|is" grabs too much. Just manually use h1 tags.

(Please keep in mind that TinyMCE does handle these features)

MW-Tables not correct
Hi! Thanks for this extension! I installed in on my wiki but now all old tables in wiki syntax are shown in plaintext code. What do i have to change for enabling the standard mw parser as well? -- 195.127.44.186 15:12, 4 July 2007 (UTC)


 * Hi, I don't recommend installing TinyMCE for already existing Mediawiki Installations. I have not had time to test Wikitext tables, in great detail, but I could see how it would not parse correctly.  Have you tried using the Disable Advanced Editor link the saving the wikitext table?  Some other ways could be implemented to handle this problem. 1) Detect the wikitext table tags and disable TinyMCE_MW (see function wfCheckBeforeEdit). 2)Add a wikitext handler in function wfTinymceParserPaste so it will get formatted properly. 3) Just reedit the tables using the advanced editor. --JoeSox 15:56, 4 July 2007 (UTC)

Its me again! Line breaks do not work as well. In a standard mw installation, a blank line is interpreted as a line break. If it is possible i would like to use tinymce only for creating and editing tables. Is there a possibility? -- 195.127.44.186 15:17, 4 July 2007 (UTC)


 * I have had challenges with line breaks, which you may see in the extension code. Most of this is caused by TinyMCE's built-in reformating.  Some of it is customizable.  Just dig into the TinyMCE documentation and things may become clearer to you on how to customize TinyMCE_MW.  Let me know if you have more questions or have some useful additions for the extension. --JoeSox 15:56, 4 July 2007 (UTC)

Error: MediaWiki 1.10.1 + TinyMCE 2_1_1_1 + MSServer 200
Aftre integrating TinyMCE 2_1_1_1 in my project (MediaWiki 1.10.1 + WAMP + MSServer 2003), MediaWik correctly work with easy, small article only. And TinyMCE don't work.

"Hide Editor" is represented in an edit window. After click on this, it changes on "Enable Advanced Editor"

If article no easy then I take Errors Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\mediawiki\extensions\TinyMCE_MW.php on line 223 or Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\mediawiki\extensions\TinyMCE_MW.php on line 226 BunakovM 13:38, 9 August 2007 (UTC)

Requested Features

 * Enable Ajax usage.

Changing TinyMCE Font and Font Size
After hours of trial and error and googling, I am deciding to share some very helpful information. NOTE:To change the default font and size for TinyMCE, add these two lines to your theme's editor_content.css body{} section: font-family: Arial; font-size: 14px; NOTE:To decrease the space between lines after a carriage return place this line to your theme's editor_content.css: p {margin: 0; padding: 0;}

NOTE: Delete all of your cache (temporary internet files), then close your browser. Then re-open your browser.

Conclusion
Moxiecode's TinyMCE is a very impressive WYSIWYG editor. I looked all over for a MediaWiki extention or any information. Hopefully, this works for you and is helpfull. --JoeSox 03:41, 24 June 2007 (UTC)