Changeset 803

Show
Ignore:
Timestamp:
11/21/2007 11:48:24 AM (3 years ago)
Author:
OlivierBorowski
Message:

Use WikkaEdit as GUI editor (WikiEdit is not used anymore), refs #584, #578, #575
Add an additionnal "div" for textarea decorations, this fixes the "textarea-width:100%" bug, refs #576

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/handlers/edit/edit.php

    r738 r803  
    245245                        // hence hsc_secure() instead of htmlspecialchars_ent() which UNescapes entities! 
    246246                        // JW/2007-02-20: why is this? wouldn't it be  easier for the person editing to show actual characters instead of entities? 
    247                         '<textarea id="body" name="body">'.$this->hsc_secure($body).'</textarea>'."\n"; # #427 
     247                        '<div id="textarea_container">'."\n". 
     248                        '<textarea id="body" name="body">'.$this->hsc_secure($body).'</textarea>'."\n". # #427 
     249                        '</div>'."\n"; 
    248250                if ($buttons_position == 'bottom') 
    249251                { 
     
    254256                if ($this->GetConfigValue('gui_editor') == 1)   // @@@ cast to boolean and compare to TRUE 
    255257                { 
    256                         // Relocation: build paths using configured value(s) 
    257                         $protoedit_url = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/protoedit.js'); 
    258                         $wikiedit_path = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/wikiedit2.js'); 
    259                         $output .= '<script type="text/javascript" src="'.$protoedit_url.'"></script>'."\n". 
    260                                            '<script type="text/javascript" src="'.$wikiedit_path.'"></script>'."\n"; 
    261                         // Relocation: we need to pass image path (ending in '/') relative to 
    262                         // configured WikiEdit path as a fourth parameter to wE.init : 
    263                         // that way WikiEdit can find its own images even if it's relocated/shared 
    264                         $wikiedit_imgpath = $this->StaticHref($this->GetConfigValue('wikiedit_uripath').'/images/'); 
    265                         $output .= '<script type="text/javascript">'."  wE = new WikiEdit(); wE.init('body','WikiEdit','editornamecss','".$wikiedit_imgpath."');".'</script>'."\n"; 
     258                        $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_data.js"></script>'."\n"; 
     259                        $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_search.js"></script>'."\n"; 
     260                        $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit_actions.js"></script>'."\n"; 
     261                        $output .= '<script type="text/javascript" src="3rdparty/plugins/wikkaedit/wikkaedit.js"></script>'."\n";                        
    266262                } 
    267263        }