Drupal 6.x + MCFileManager

New to Drupal 6 is the WYSIWYG API which makes light work of handling multiple flavors of wysiwyg editors. When upgrading to WYSIWYG API 6.13 you will have to change the location where your installed editors live. They move up the directory path to sit in the following location: sites/all/libraries

Next is getting your existing plugins such as MCFileManager to work with the new framework. Its actually quite easy. Open sites/all/modules/wysiwyg/editors/tinymce.inc and insert the following code around line 414 after the advimage declaration.

'filemanager' => array(
      'path' => $editor['library path'] . '/plugins/filemanager',
      'buttons' => array('filemanager' => t('File Manager')),
      'url' => '',
      'internal' => TRUE,
      'load' => TRUE,
    ),

Then you will need to change your relative path to the files directory so you can start uploading files. To do this you need to open sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/filesmanager/config.php and change the filesystem.rootpath to be "../../../../../../../default/files"

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p> <a> <em> <strong> <ul> <ol> <li> <b> <strong> <i> <u> <img> <br> <br/>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Recent flickr photos

Diving in Crete
Crete sunset
Residence in cliff
Tommy
Diving in crete
Crete
Crete
Athens
Athens
Athens

Recent tracks

  • Lullabies To Paralyze
  • Five Songs and a Cover
  • Finding Beauty In Negative Spaces
  • Rage Against the Machine
  • Scream
  • Weezer (Blue)
  • Stadium Arcadium (disc 1: Jupiter)
  • Them Crooked Vultures