/**
  * Return the a {@link WizardComponent} to allow editing of your
  * plugin in the Wizard.
  * 
  * @return object WizardComponent
  * @access public
  * @since 5/8/07
  */
 function getWizardComponent()
 {
     $wrapper = new WComponentCollection();
     $harmoni = Harmoni::instance();
     ob_start();
     $property = $wrapper->addComponent('comment', new WTextField());
     $property->setSize(80);
     $property->setStartingDisplayText(_("Add a comment about your changes here."));
     $property = $wrapper->addComponent('content', HtmlTextArea::withRowsAndColumns(20, 80));
     $property->setValue($this->applyEditorSafeTextTemplates($this->cleanHTML($this->untokenizeLocalUrls($this->getContent()))));
     $property->chooseEditor('fck');
     $fckArea = $property->getEditor('fck');
     $fckArea->setOption('ToolbarSet', 'ContentBlock');
     $fckArea->setConfigOption('CustomConfigurationsPath', MYPATH . '/javascript/fck_custom_config.js');
     $fckArea->setConfigOption('ImageBrowserWindowWidth', '700');
     $fckArea->setConfigOption('ImageBrowserWindowHeight', '600');
     $fckTextArea = $property->getEditor('fck');
     $harmoni->request->startNamespace('media');
     $fckTextArea->enableFileBrowsingAtUrl($harmoni->request->quickURL('media', 'filebrowser', array('node' => $this->getId())));
     $harmoni->request->endNamespace();
     $writeJsCallback = "function (htmlString) { " . "edInsertContent(this.form.elements['[[fieldname:]]'], htmlString); " . "}";
     $property->addPostHtml('none', "<br/>" . Segue_MediaLibrary::getMediaButtons($this->getId(), $writeJsCallback));
     $writeJsCallback = "function (htmlString) { " . "var oEditor = FCKeditorAPI.GetInstance('[[fieldname:]]'); " . "oEditor.InsertHtml(htmlString); " . "}";
     $property->addPostHtml('fck', "<br/>" . Segue_MediaLibrary::getMediaButtons($this->getId(), $writeJsCallback));
     print "[[content]]";
     print $this->getWikiHelp();
     $property = $wrapper->addComponent('abstractLength', new WTextField());
     $property->setSize(3);
     $property->setValue($this->getRawDescription());
     print "\n\t<br/>";
     print _("Abstract to [[abstractLength]] words. (Enter '0' for no abstract)");
     print "\n\t<br/>";
     print "\n\t<br/>";
     print "[[comment]]";
     $wrapper->setContent(ob_get_clean());
     return $wrapper;
 }