Extension talk:TinyMCE MW

Code TinyMCE_MW.php
'''Click edit THEN copy and paste. If you don't, special characters will convert and the extension will not work.'''

|is", $text, $a)) {		$wgUseTinymce = false;}	else{$wgUseTinymce = true;}	return true; }

?>

6/24/07 v0.2.1

 * Misc. fixes

6/25/07 v0.3.0

 * Fixed TinyMCE_MW to work with inputbox extension.
 * Section now for custom extension tags.

6/26/07 v0.4.0

 * Updated inputbox handler to fix 'p /p' tags
 * Does not support wikitext h1 tags because "|=.*?=|is" grabs too much.
 * Support toggling. Enable and Disable TinyMCE toolbar by a link in upper right corner of editpage.

6/27/07 v0.4.1

 * Set 'convert_newlines_to_brs : false' ; it was inserting new br tags on each re-edit

6/28/07 v0.4.3

 * WikiDB tag support. Disables TinyMCE before editing any articles with WikiDB tags.

7/1/07 v0.5.3

 * Added better link support. Added relative_url, remove_script_host, document_base_url

9/20/07 v0.5.4

 * Modified #Allow_repeat_tagsm and #Allow_categorytree_tags replacements

Error.
Fatal error: Cannot instantiate non-existent class: stripstate in /home/atuaesco/public_html/extensions/TinyMCE_MW.php on line 237 I have this error when i try to edit a page

Try version 0.5.4 --JoeSox 18:33, 20 September 2007 (UTC)

Slight fix
I use a wiki with quite a lot of rewriting happening. In my case I need to be able to set $wgTinymceDir from my LocalSettings.php. This small modification makes this possible. Line:283 if(!isset($wgTinymceDir)) $wgTinymceDir = "tinymce"; --Rob 02:39, 4 October 2007 (UTC)

The new bugfix 0.5.4 has trouble with Extension:CategoryTree
If I turn TinyMCE_MW on, end save an article with the &lt;categorytree&gt;-tag into the Editorbox (makes no difference if "hide editor" is used), then I get this error: Fatal error: Maximum execution time of 30 seconds exceeded in /srv/www/htdocs/wiki/extensions/TinyMCE_MW.php on line 119 This is on line 119 of TinyMCE_MW.php: $tinymcetext = str_replace($a[0], html_entity_decode($r), $tinymcetext);#htmlentities With your earlier version 0.5.3 this doesn't appear, so it seams to cause a bug and not fix. By comparation of these version there are big differences between the lines around 119, especialy this looks a little bit supecious: New in 0.5.4: #Allow_categorytree_tags while (preg_match("| |is", $tinymcetext, $a)) { ... Old code in 0.5.3: #Allow_categorytree_tags while (preg_match("|&lt;categorytree&gt;(.*?)&lt;/categorytree&gt;|is", $tinymcetext, $a)) { ... We now rollback to 0.5.3 but I'll be greatefull if this plugin will improved in future.

Regards -Stefan

79.211.199.93 12:02, 4 October 2007 (UTC)