Hello Don,

It seems that you discovered a bug here. The button doesn't seem to
have any effect when the WYSIWYG extension is used without Halo.

The easiest workaround for your problem would be that in the user
preferences you exclude the template namespace from being edited with
the Richtext editor.

The official FCK extension for Mediawiki [1] allows to set a global
option in the LocalSettings.php to exclude certain namespaces from
being edited with the FCKeditor. You could define this like:
$wgFCKEditorExcludedNamespaces= array(NS_TEMPLATE);

Unfortunalely the WYSIWYG extension of Halo doesn't support this global
setting. Therefore I attached a patch to this mail, that you can apply
the the FCKeditor.body.php file so that $wgFCKEditorExcludedNamespaces
is recognized as well.

This doesn't solve the problem with the button, but at least gets you
the normal editor for pages in the Template namespace.

Best regards, Stephan

[1] http://www.mediawiki.org/wiki/Extension:FCKeditor_%28Official%29

On Tue, Nov 09, 2010 at 01:47:18PM -0800, don undeen wrote:
> hey guys,
> I'm beginning the upgrade grind on my wiki installations.
> 
> I've installed the wysiwyg text editor from Halo, and I'm hainv a problem, in 
> that i can't seem to disable it in the interface.
> 
> What i mean is, there's a button that says "switch t wiki text editor", but 
> clicking on it doesn't expose the wiki text.
> 
> this is especially annoying when I'm trying to edit templates, as the wysiwyg 
> editor only shows <noinclude><includonly>
> 
> any ideas?

> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a 
> Billion" shares his insights and actions to help propel your 
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev

> _______________________________________________
> Semediawiki-devel mailing list
> Semediawiki-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

--- FCKeditor.body.php  (SVN last changed revision 6730)
+++ FCKeditor.body.php  Locally modified
@@ -72,7 +72,7 @@
 
        private function getExcludedNamespaces()
        {
-               global $wgUser;
+               global $wgUser, $wgFCKEditorExcludedNamespaces;
 
                if ( is_null( $this->excludedNamespaces ) ) {
                        $this->excludedNamespaces = array();
@@ -81,6 +81,9 @@
                                        $this->excludedNamespaces[] = 
constant(strtoupper(str_replace("riched_disable_", "", $toggle)));
                                }
                        }
+                       if ( !is_null($wgFCKEditorExcludedNamespaces) ) {
+                               $this->excludedNamespaces = 
array_unique(array_merge($this->excludedNamespaces, 
$wgFCKEditorExcludedNamespaces));
+                       }
                }
 
                return $this->excludedNamespaces;
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to