How do I add rich text editor to JoomPlace Online FlashQuiz? - Joomla! Forum - community, help and support


i need add rich text editor questions , answers of joomplace online flash quiz component. how add ? please help
demo page of online flash quiz : http://demo.joomplace.com/administrator ... eflashquiz
extension download : http://www.joomplace.com/free-joomla-ex ... onent.html
thanks in advance.

i think change needed somewhere in following file..
components\com_onlineflashquiz\quiz\common\classes\view\form.class.php

code: select all

      function settextarea($property/*, $lim=false*/)
      {
      
         if($this->m_rights<1)
         {
            $this->html .= nl2br($property['value']);
            return ;
         }
         while(list($key,$value) = each($property))
         {
            if(strtolower($key) == 'value')
            {
               $text = $value;
               break;
            }
         }
         if(isset($property['value']))
         {
            unset($property['value']);
         }
         $this->html .= '<textarea ';
         if (isset($property['name']) && $property['name']) {
            $this->html .= ' name="'.$property['name'].'" ';
            unset($property['name']);
         }
         /*if ($lim) {
            $this->html .= ' onkeydown = "if (this.value.length > 99) this.value = this.value.substring(0, 99);"';
            $this->html .= ' onkeyup = "if (this.value.length > 99) this.value = this.value.substring(0, 99);"';
         }*
         $property['class'] = empty($property['class'])?'flat':$property['class'];
         $property['cols'] = empty($property['cols'])?45:$property['cols'];
         $property['rows'] = empty($property['rows'])?4:$property['rows'];
         //$property['name'] = empty($property['name'])?'':$property['name'];
         
         $this->addproperty($property);
         $this->html .= '>';
         $this->html .= $text;
         $this->html .= '</textarea>';
         
      }


when disabled above code, text area in question part disappeared. please help!





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support