Ignore:
Timestamp:
09/19/06 19:35:56 (13 years ago)
Author:
ray
Message:

ExtendedFileManager? updates:

*to complete cofigurability through js directories can now be set for images and files individually (optional & backwards compatible)

  • relocated button from the end of toolbar next to createlink
  • insert image/link with double click
  • preview img didn't have src when no image selected, which showed a "image not found icon" in IE
  • slight modifications and updates in Readme.txt (kicked out afru's website. The domain isn't even registered anymore)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/editor.php

    r521 r579  
    88 * http://www.afrusoft.com/htmlarea 
    99 */ 
     10if(isset($_REQUEST['mode'])) $insertMode=$_REQUEST['mode']; 
     11        if(!isset($insertMode)) $insertMode="image"; 
    1012 
    1113require_once('config.inc.php'); 
     
    1315require_once('../ImageManager/Classes/ImageEditor.php'); 
    1416 
    15 $manager = new ExtendedFileManager($IMConfig); 
     17$manager = new ExtendedFileManager($IMConfig,$insertMode); 
    1618$editor = new ImageEditor($manager); 
    1719 
     
    2931/*<![CDATA[*/ 
    3032 
    31     var _backend_url = "<?php print $IMConfig['backend_url']; ?>"; 
     33    var _backend_url = "<?php print $IMConfig['backend_url']."&mode=$insertMode"; ?>&"; 
    3234 
    3335        if(window.opener) 
     
    142144</div> 
    143145<div id="contents"> 
    144 <iframe src="<?php print $IMConfig['backend_url']; ?>__function=editorFrame&img=<?php if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>" name="editor" id="editor"  scrolling="auto" title="Image Editor" frameborder="0"></iframe> 
     146<iframe src="<?php print $IMConfig['backend_url']; ?>__function=editorFrame&img=<?php if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>&mode=<?php echo $insertMode ?>" name="editor" id="editor"  scrolling="auto" title="Image Editor" frameborder="0"></iframe> 
    145147</div> 
    146148<div id="bottom"></div> 
Note: See TracChangeset for help on using the changeset viewer.