I have failed in finding documentation on this. Is there a feature to allow users to switch toolbar on the file without post back, and ajax? For example to have a button that let's user do "Basic Mode" or "Advanced Mode" and all it does is change the toolbar. Trying to avoid loading the whole page, if not will have to resort to ajax.
Mon, 02/21/2011 - 16:01
#1

Re: Toolbar Switch
First make your wizy;
<script type="text/javascript"> var fckHeight = 539 var oFCKeditor = new FCKeditor('content'); oFCKeditor.BasePath = "../utilities/fckeditor/"; oFCKeditor.Value = 'test'; oFCKeditor.Height = fckHeight; oFCKeditor.Create(); </script>Then add this script later after your wizy is made, perhaps right above the end body tag.
< script type="text/javascript"> $("#wizy_mode_switch").toggle(function(){ $(this).text("Switch to Basic Mode"); FCKeditorAPI.GetInstance("content").ToolbarSet.Load("Basic"); $("#content___Frame").css("height",fckHeight+52); },function(){ $(this).text("Switch to Advanced Mode"); FCKeditorAPI.GetInstance("content").ToolbarSet.Load("Default"); $("#content___Frame").css("height",fckHeight); }); </script>Hope this helps.
Re: Toolbar Switch