Ignore:
Timestamp:
Apr 12, 2011, 1:12:51 PM (13 years ago)
Author:
patdenice
Message:

feature:2262
Replace editarea by Codemirror:
http://codemirror.net

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/show_default.php

    r8728 r10307  
    3939  $template->set_filename('show_default', dirname(__FILE__) . '/show_default.tpl');
    4040 
    41   // Editarea
    42   $editarea_options = array(
    43     'syntax' => 'php',
    44     'start_highlight' => true,
    45     'allow_toggle' => false,
    46     'is_editable' => false,
    47     'language' => substr($user['language'], 0, 2));
    48 
    4941  $file = file_get_contents(PHPWG_ROOT_PATH . $path);
    5042  $title = str_replace('/', ' / ', $path);
     
    5446    'DEFAULT_CONTENT' => $file,
    5547    'LOCALEDIT_PATH' => LOCALEDIT_PATH,
    56     'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on',
    57     'EDITAREA_OPTIONS' => $editarea_options));
     48    'LOAD_CODEMIRROR' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on',
     49    'CODEMIRROR_MODE' => 'application/x-httpd-php'
     50    )
     51  );
    5852
    5953  $page['body_id'] = 'thePopuphelpPage';
Note: See TracChangeset for help on using the changeset viewer.