diff options
author | patdenice <patdenice@piwigo.org> | 2011-04-12 11:12:51 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-04-12 11:12:51 +0000 |
commit | a740ef91e6689f86011b70c7bbe2589abf78ae6b (patch) | |
tree | bb4a6deb7395b0f545bb760cf34f093e910f1cff /plugins/LocalFilesEditor/show_default.php | |
parent | bb7c28f86febddd376ee0400807507991a2d7b48 (diff) |
feature:2262
Replace editarea by Codemirror:
http://codemirror.net
git-svn-id: http://piwigo.org/svn/trunk@10307 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/LocalFilesEditor/show_default.php')
-rw-r--r-- | plugins/LocalFilesEditor/show_default.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/LocalFilesEditor/show_default.php b/plugins/LocalFilesEditor/show_default.php index 4a8e68289..9dc325643 100644 --- a/plugins/LocalFilesEditor/show_default.php +++ b/plugins/LocalFilesEditor/show_default.php @@ -38,14 +38,6 @@ if (isset($_GET['file'])) $template->set_filename('show_default', dirname(__FILE__) . '/show_default.tpl'); - // Editarea - $editarea_options = array( - 'syntax' => 'php', - 'start_highlight' => true, - 'allow_toggle' => false, - 'is_editable' => false, - 'language' => substr($user['language'], 0, 2)); - $file = file_get_contents(PHPWG_ROOT_PATH . $path); $title = str_replace('/', ' / ', $path); @@ -53,8 +45,10 @@ if (isset($_GET['file'])) 'TITLE' => $title, 'DEFAULT_CONTENT' => $file, 'LOCALEDIT_PATH' => LOCALEDIT_PATH, - 'LOAD_EDITAREA' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on', - 'EDITAREA_OPTIONS' => $editarea_options)); + 'LOAD_CODEMIRROR' => isset($conf['LocalFilesEditor']) ? $conf['LocalFilesEditor'] : 'on', + 'CODEMIRROR_MODE' => 'application/x-httpd-php' + ) + ); $page['body_id'] = 'thePopuphelpPage'; |