public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
BUGFIX: Make GCB 'Apply' button work by using WYSIWYGPageFormSubmit() 
instead of SyntaxPageFormSubmit(). I think SyntaxPageFormSubmit() should 
only be used for templates and stuff, GCBs should behave just like Pages I 
think. Thanks to reneh for finding this bug.

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4053 
3d254a34-79dc-0310-9e5f-be208747d8a0
elijahlofgren (author)
Tue Jul 24 09:17:02 -0700 2007
commit  ffd8985f5ae6bc79bb89696db3e0543762eaacb0
tree    c61428277f245fd119652394615006e6644aed2a
parent  3cb1fc8b6c599fd601dc3002b4f180bb91e8c507
...
188
189
190
 
191
192
193
194
195
 
196
197
198
199
200
 
201
202
 
203
204
205
...
188
189
190
191
192
193
194
195
 
196
197
198
199
200
 
201
202
 
203
204
205
206
0
@@ -188,18 +188,19 @@ if (strlen($htmlblob) > 0)
0
     $CMS_ADMIN_SUBTITLE = $htmlblob;
0
     }
0
 
0
+// Detect if a WYSIWYG is in use, and grab its form submit action (copied from editcotent.php)
0
 $addlScriptSubmit = '';
0
 foreach (array_keys($gCms->modules) as $moduleKey)
0
 {
0
   $module =& $gCms->modules[$moduleKey];
0
- if (!($module['installed'] && $module['active'] && $module['object']->IsSyntaxHighlighter()))
0
+ if (!($module['installed'] && $module['active'] && $module['object']->IsWYSIWYG()))
0
   {
0
     continue;
0
   }
0
 
0
- if ($module['object']->SyntaxActive() or get_preference(get_userid(), 'syntaxhighlighter') == $module['object']->GetName())
0
+ if ($module['object']->WYSIWYGActive() or get_preference(get_userid(), 'wysiwyg') == $module['object']->GetName())
0
   {
0
- $addlScriptSubmit .= $module['object']->SyntaxPageFormSubmit();
0
+ $addlScriptSubmit .= $module['object']->WYSIWYGPageFormSubmit();
0
   }
0
 }
0
 

Comments

    No one has commented yet.