From 6e6e0c4786a6acde748ba93ad05cc217b574c129 Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Sat, 22 Jun 2013 15:10:53 +0200 Subject: [PATCH] Removing ComicPress companion: not used, not developed anymore --- .../comicpress-companion/companion.php | 49 - .../comicpress-companion/companion_core.php | 229 ---- .../edit_area/autocompletion.js | 491 ------- .../edit_area/edit_area.css | 530 -------- .../edit_area/edit_area.js | 525 ------- .../edit_area/edit_area_compressor.php | 408 ------ .../edit_area/edit_area_full.gz | Bin 29125 -> 0 bytes .../edit_area/edit_area_full.js | 38 - .../edit_area/edit_area_full_with_plugins.gz | Bin 29707 -> 0 bytes .../edit_area/edit_area_full_with_plugins.js | 39 - .../edit_area/edit_area_functions.js | 1203 ----------------- .../edit_area/edit_area_loader.js | 1080 --------------- .../edit_area/elements_functions.js | 333 ----- .../edit_area/highlight.js | 391 ------ .../edit_area/images/autocompletion.gif | Bin 359 -> 0 bytes .../edit_area/images/close.gif | Bin 102 -> 0 bytes .../edit_area/images/fullscreen.gif | Bin 198 -> 0 bytes .../edit_area/images/go_to_line.gif | Bin 1053 -> 0 bytes .../edit_area/images/help.gif | Bin 295 -> 0 bytes .../edit_area/images/highlight.gif | Bin 256 -> 0 bytes .../edit_area/images/load.gif | Bin 1041 -> 0 bytes .../edit_area/images/move.gif | Bin 257 -> 0 bytes .../edit_area/images/newdocument.gif | Bin 170 -> 0 bytes .../edit_area/images/opacity.png | Bin 147 -> 0 bytes .../edit_area/images/processing.gif | Bin 825 -> 0 bytes .../edit_area/images/redo.gif | Bin 169 -> 0 bytes .../edit_area/images/reset_highlight.gif | Bin 168 -> 0 bytes .../edit_area/images/save.gif | Bin 285 -> 0 bytes .../edit_area/images/search.gif | Bin 191 -> 0 bytes .../edit_area/images/smooth_selection.gif | Bin 174 -> 0 bytes .../edit_area/images/spacer.gif | Bin 43 -> 0 bytes .../edit_area/images/statusbar_resize.gif | Bin 79 -> 0 bytes .../edit_area/images/undo.gif | Bin 175 -> 0 bytes .../edit_area/images/word_wrap.gif | Bin 951 -> 0 bytes .../edit_area/keyboard.js | 145 -- .../edit_area/langs/bg.js | 73 - .../edit_area/langs/cs.js | 67 - .../edit_area/langs/de.js | 67 - .../edit_area/langs/dk.js | 67 - .../edit_area/langs/en.js | 67 - .../edit_area/langs/eo.js | 67 - .../edit_area/langs/es.js | 64 - .../edit_area/langs/fi.js | 67 - .../edit_area/langs/fr.js | 67 - .../edit_area/langs/hr.js | 67 - .../edit_area/langs/it.js | 67 - .../edit_area/langs/ja.js | 67 - .../edit_area/langs/mk.js | 67 - .../edit_area/langs/nl.js | 67 - .../edit_area/langs/pl.js | 67 - .../edit_area/langs/pt.js | 67 - .../edit_area/langs/ru.js | 67 - .../edit_area/langs/sk.js | 67 - .../edit_area/langs/zh.js | 67 - .../edit_area/license_apache.txt | 7 - .../edit_area/license_bsd.txt | 10 - .../edit_area/license_lgpl.txt | 458 ------- .../edit_area/manage_area.js | 623 --------- .../edit_area/plugins/charmap/charmap.js | 90 -- .../edit_area/plugins/charmap/css/charmap.css | 64 - .../plugins/charmap/images/charmap.gif | Bin 245 -> 0 bytes .../edit_area/plugins/charmap/jscripts/map.js | 373 ----- .../edit_area/plugins/charmap/langs/bg.js | 12 - .../edit_area/plugins/charmap/langs/cs.js | 6 - .../edit_area/plugins/charmap/langs/de.js | 6 - .../edit_area/plugins/charmap/langs/dk.js | 6 - .../edit_area/plugins/charmap/langs/en.js | 6 - .../edit_area/plugins/charmap/langs/eo.js | 6 - .../edit_area/plugins/charmap/langs/es.js | 6 - .../edit_area/plugins/charmap/langs/fr.js | 6 - .../edit_area/plugins/charmap/langs/hr.js | 6 - .../edit_area/plugins/charmap/langs/it.js | 6 - .../edit_area/plugins/charmap/langs/ja.js | 6 - .../edit_area/plugins/charmap/langs/mk.js | 6 - .../edit_area/plugins/charmap/langs/nl.js | 6 - .../edit_area/plugins/charmap/langs/pl.js | 6 - .../edit_area/plugins/charmap/langs/pt.js | 6 - .../edit_area/plugins/charmap/langs/ru.js | 6 - .../edit_area/plugins/charmap/langs/sk.js | 6 - .../edit_area/plugins/charmap/langs/zh.js | 6 - .../edit_area/plugins/charmap/popup.html | 24 - .../edit_area/plugins/test/css/test.css | 3 - .../edit_area/plugins/test/images/test.gif | Bin 87 -> 0 bytes .../edit_area/plugins/test/langs/bg.js | 10 - .../edit_area/plugins/test/langs/cs.js | 4 - .../edit_area/plugins/test/langs/de.js | 4 - .../edit_area/plugins/test/langs/dk.js | 4 - .../edit_area/plugins/test/langs/en.js | 4 - .../edit_area/plugins/test/langs/eo.js | 4 - .../edit_area/plugins/test/langs/es.js | 4 - .../edit_area/plugins/test/langs/fr.js | 4 - .../edit_area/plugins/test/langs/hr.js | 4 - .../edit_area/plugins/test/langs/it.js | 4 - .../edit_area/plugins/test/langs/ja.js | 4 - .../edit_area/plugins/test/langs/mk.js | 4 - .../edit_area/plugins/test/langs/nl.js | 4 - .../edit_area/plugins/test/langs/pl.js | 4 - .../edit_area/plugins/test/langs/pt.js | 4 - .../edit_area/plugins/test/langs/ru.js | 4 - .../edit_area/plugins/test/langs/sk.js | 4 - .../edit_area/plugins/test/langs/zh.js | 4 - .../edit_area/plugins/test/test.js | 110 -- .../edit_area/plugins/test/test2.js | 1 - .../edit_area/reg_syntax.js | 166 --- .../edit_area/reg_syntax/basic.js | 69 - .../edit_area/reg_syntax/brainfuck.js | 44 - .../edit_area/reg_syntax/c.js | 62 - .../edit_area/reg_syntax/coldfusion.js | 119 -- .../edit_area/reg_syntax/cpp.js | 65 - .../edit_area/reg_syntax/css.js | 84 -- .../edit_area/reg_syntax/html.js | 50 - .../edit_area/reg_syntax/java.js | 56 - .../edit_area/reg_syntax/js.js | 93 -- .../edit_area/reg_syntax/pas.js | 82 -- .../edit_area/reg_syntax/perl.js | 88 -- .../edit_area/reg_syntax/php.js | 156 --- .../edit_area/reg_syntax/python.js | 144 -- .../edit_area/reg_syntax/robotstxt.js | 24 - .../edit_area/reg_syntax/ruby.js | 67 - .../edit_area/reg_syntax/sql.js | 55 - .../edit_area/reg_syntax/tsql.js | 87 -- .../edit_area/reg_syntax/vb.js | 52 - .../edit_area/reg_syntax/xml.js | 56 - .../comicpress-companion/edit_area/regexp.js | 139 -- .../edit_area/resize_area.js | 73 - .../edit_area/search_replace.js | 174 --- .../edit_area/template.html | 100 -- .../includes/cceditor.php | 54 - .../includes/ccexamples.php | 42 - .../comicpress-companion/includes/cchelp.php | 23 - .../plugins/comicpress-companion/readme.txt | 112 -- .../tabbed/tabbed_pages.css | 63 - .../tabbed/tabbed_pages.js | 28 - .../tabbed/tabbed_pages_ie.css | 60 - .../comicpress-companion/tabbed/tabs_0.gif | Bin 238 -> 0 bytes .../comicpress-companion/tabbed/tabs_2.gif | Bin 226 -> 0 bytes 136 files changed, 11179 deletions(-) delete mode 100644 wp-content/plugins/comicpress-companion/companion.php delete mode 100644 wp-content/plugins/comicpress-companion/companion_core.php delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/autocompletion.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area.css delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_compressor.php delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_full.gz delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_full.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.gz delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_functions.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/edit_area_loader.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/elements_functions.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/highlight.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/autocompletion.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/close.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/fullscreen.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/go_to_line.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/help.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/highlight.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/load.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/move.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/newdocument.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/opacity.png delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/processing.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/redo.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/reset_highlight.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/save.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/search.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/smooth_selection.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/spacer.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/statusbar_resize.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/undo.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/images/word_wrap.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/keyboard.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/bg.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/cs.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/de.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/dk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/en.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/eo.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/es.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/fi.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/fr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/hr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/it.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/ja.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/mk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/nl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/pl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/pt.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/ru.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/sk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/langs/zh.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/license_apache.txt delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/license_bsd.txt delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/license_lgpl.txt delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/manage_area.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/charmap.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/css/charmap.css delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/images/charmap.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/jscripts/map.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/bg.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/cs.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/de.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/dk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/en.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/eo.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/es.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/fr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/hr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/it.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ja.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/mk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/nl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pt.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ru.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/sk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/zh.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/popup.html delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/css/test.css delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/images/test.gif delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/bg.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/cs.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/de.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/dk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/en.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/eo.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/es.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/fr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/hr.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/it.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ja.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/mk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/nl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pt.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ru.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/sk.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/zh.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/test.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/plugins/test/test2.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/basic.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/brainfuck.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/c.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/coldfusion.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/cpp.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/css.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/html.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/java.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/js.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/pas.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/perl.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/php.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/python.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/robotstxt.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/ruby.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/sql.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/tsql.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/vb.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/reg_syntax/xml.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/regexp.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/resize_area.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/search_replace.js delete mode 100644 wp-content/plugins/comicpress-companion/edit_area/template.html delete mode 100644 wp-content/plugins/comicpress-companion/includes/cceditor.php delete mode 100644 wp-content/plugins/comicpress-companion/includes/ccexamples.php delete mode 100644 wp-content/plugins/comicpress-companion/includes/cchelp.php delete mode 100644 wp-content/plugins/comicpress-companion/readme.txt delete mode 100644 wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.css delete mode 100644 wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.js delete mode 100644 wp-content/plugins/comicpress-companion/tabbed/tabbed_pages_ie.css delete mode 100644 wp-content/plugins/comicpress-companion/tabbed/tabs_0.gif delete mode 100644 wp-content/plugins/comicpress-companion/tabbed/tabs_2.gif diff --git a/wp-content/plugins/comicpress-companion/companion.php b/wp-content/plugins/comicpress-companion/companion.php deleted file mode 100644 index 03a21353d..000000000 --- a/wp-content/plugins/comicpress-companion/companion.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php -/* -Plugin Name: Theme Companion -Plugin URI: http://frumph.net/ -Description: CSS Editor, Extra Options and Functions for themes. -Version: 0.3.4 -Author: Philip M. Hofer (Frumph) -Author URI: http://frumph.net/ - -Copyright 2009-2012 Philip M. Hofer (Frumph) (email : philip@frumph.net) - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -*/ -if (is_admin()) { - @require_once(dirname (__FILE__) . '/companion_core.php'); -} - -add_action('wp_head', 'companion_html_header_load'); - -function companion_html_header_load() { - $wp_dirs = wp_upload_dir(); - if (file_exists($wp_dirs['basedir'] . '/css/header.html')) { - $f = fopen($wp_dirs['basedir'] . '/css/header.html', 'r'); - $companion_file_contents = fread($f, filesize($wp_dirs['basedir']. '/css/header.html')); - if (!empty($companion_file_contents)) { - echo $companion_file_contents; - } - } - - if (file_exists($wp_dirs['basedir'] . '/css/custom_style.css')) { ?> -<link rel='stylesheet' id='custom_stylesheet' href='<?php echo $wp_dirs['baseurl']; ?>/css/custom_style.css' type='text/css' media='all' /> - <?php - } -} - -?> \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/companion_core.php b/wp-content/plugins/comicpress-companion/companion_core.php deleted file mode 100644 index a049c8d9b..000000000 --- a/wp-content/plugins/comicpress-companion/companion_core.php +++ /dev/null @@ -1,229 +0,0 @@ -<?php - -add_action('admin_menu', 'companion_init_hooks'); -add_action('admin_foot', 'companion_css_footer'); - -function companion_pluginfo($whichinfo = null) { - global $companion_pluginfo; - if (empty($comicpress_themeinfo) || $whichinfo == 'reset') { - // need to create this config. NOW. - $companion_pluginfo = ''; - $companion_coreinfo = wp_upload_dir(); - $companion_addinfo = array( - 'themeurl' => get_template_directory_uri(), - 'themepath' => get_template_directory(), - 'styleurl' => get_stylesheet_directory_uri(), - 'stylepath' => get_stylesheet_directory(), - 'plugindir' => plugin_dir_url(dirname (__FILE__)) . 'comicpress-companion', - 'pluginurl' => get_option('siteurl') . '/wp-content/plugins/comicpress-companion' - ); - $companion_pluginfo = array_merge($companion_coreinfo, $companion_addinfo); - } - if ($whichinfo) return $companion_pluginfo[$whichinfo]; - return $companion_pluginfo; -} - -function companion_is_multisite() { - global $wpmu_version; - if (function_exists('is_multisite')) - if (is_multisite()) return true; - if (!empty($wpmu_version)) return true; - return false; -} - -// Add menu page -function companion_init_hooks() { - $companion_hook = add_submenu_page('themes.php', 'companion', __('Companion', 'companion'), 'manage_options', 'companion', 'companion_admin_page'); - add_action('admin_head-'.$companion_hook, 'companion_config_page_head'); - add_action('admin_print_scripts-'.$companion_hook, 'companion_load_scripts'); - add_action('admin_print_styles-'.$companion_hook, 'companion_load_styles'); -} - -function companion_load_scripts() { - wp_enqueue_script('jquery'); - wp_enqueue_script('edit_area_full', companion_pluginfo('pluginurl') . '/edit_area/edit_area_full.js'); - wp_enqueue_script('tabbed_pages', companion_pluginfo('pluginurl') . '/tabbed/tabbed_pages.js'); -} - -function companion_load_styles() { - global $is_IE; - if ($is_IE) { - wp_enqueue_style('tabbed_style_ie', companion_pluginfo('pluginurl') . '/tabbed/tabbed_pages_ie.css'); - } else { - wp_enqueue_style('tabbed_style', companion_pluginfo('pluginurl') . '/tabbed/tabbed_pages.css'); - } -} - -function companion_config_page_head() { ?> -<script language="javascript" type="text/javascript"> - editAreaLoader.init({ - id : "newcontent" // textarea id - ,syntax: "css" // syntax to be uses for highlighting - ,start_highlight: true // to display with highlight mode on start-up -}); -</script> -<?php -} - - -/** - * options page - * -*/ -function companion_admin_page() { - global $is_iis7; -?> - <div class="wrap"> - <h2 class="alignleft">Theme Companion</h2> - <br clear="all" /> - <?php - if (isset($_REQUEST['file'])) { - switch ( stripslashes($_REQUEST['file']) ) { - case "style": - $edit_file = "custom_style"; - break; - case "head": - $edit_file = "header"; - break; - default: - $edit_file = "custom_style"; - break; - } - } else $edit_file = "custom_style"; - if ($edit_file == 'header') { - $companion_edit_type = 'html'; - } else { - $companion_edit_type = 'css'; - } - - $companion_edit_file = companion_pluginfo('basedir') . '/css/' . $edit_file . '.' . $companion_edit_type; - $original = false; - if (isset($_REQUEST['file']) && ($_REQUEST['file'] == 'original')) { - $original = true; - $companion_edit_file = companion_pluginfo('themepath') . '/style.css'; - } - - if (isset($_REQUEST['newcontent'])) $companion_file_content = trim(stripslashes($_REQUEST['newcontent'])); - ?> - - <?php - - if (isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'update-options') ) { - - if ('companion_css_save' == $_REQUEST['action'] ) { - $companion_file_content = trim(stripslashes($_REQUEST['newcontent'])); - if (!file_exists($companion_edit_file)) wp_mkdir_p(dirname($companion_edit_file)); - if (empty($companion_file_content)) { - // echo "Shows Empty"; - if (file_exists($companion_edit_file)) { - unlink($companion_edit_file); ?> - <div class="updated fade"><p><strong>File Deleted!</strong></p></div> - <?php } - } else { - // echo "Shows having content."; - $ok = false; - if (($fh = @fopen($companion_edit_file, "w")) !== false) { - if (fwrite($fh, $companion_file_content) !== false) { - $ok = true; - } - fclose($fh); - } - if ($ok) { ?> - <div class="updated fade"><p><strong>Saved</strong></p></div> - <?php } else { ?> - <div class="updated fade"><p><strong>Fail: Could'nt Save the file.</strong></p></div> - <?php } - } - } - } - if (file_exists($companion_edit_file)) { - $f = fopen($companion_edit_file, 'r'); - $companion_file_content = fread($f, filesize($companion_edit_file)); - $companion_file_content = htmlspecialchars($companion_file_content); - } else { - global $current_theme, $themes; - if ($companion_edit_type == 'css') { - $companion_file_content = "/* Companion Custom CSS over-rides for [ ".get_bloginfo('name')." ]: $current_theme - ".$themes[$current_theme]['Version']." */\r\n"; - } else { - $companion_file_content = "<!-- Companion Custom HTML Insert for [ ".get_bloginfo('name')." ]: $current_theme - ".$themes[$current_theme]['Version']." -->\r\n"; - } - } - ?> - - <div id="ccadmin"> - <div class="on" title="cceditor"><span>CSS Override Editor</span></div> - <div class="off" title="ccexamples"><span>Examples</span></div> - <div class="off" title="cchelp"><span>Help</span></div> - </div> - <div id="cceditor" class="show"> - <div class="inside"> - - <form method="post" id="template" name="template" action=""> - <?php wp_nonce_field('update-options') ?> - <table style="width: auto"> - <tr> - <td valign="top"> - <label> - <?php if (!$original) { ?> - Now editing: <?php echo basename($companion_edit_file); ?><br /> - <?php } else { ?> - Now Viewing: style.css<br /> - <?php } ?> - <?php - - if (!$original) { - if ( $is_iis7 ) { - if (win_is_writable($companion_edit_file)) { - echo 'WIN: File exists and is writable.<br />'; - } else { - wp_mkdir_p(dirname($companion_edit_file)); - echo '<i>WIN: File '.basename($companion_edit_file).' does *not* exist or is not writable, try to save the file. If you still get this error check permissions.</i><br />'; - } - } else { - if (is_writable($companion_edit_file)) { - echo 'NIX: File Exists and is writable.<br />'; - } else { - wp_mkdir_p(dirname($companion_edit_file)); - echo '<i>NIX: File '.basename($companion_edit_file).' does *not* exist or is not writable, try to save the file. If you still get this error check permissions.</i><br />'; - } - } - } else { - echo 'Loading Original Style.CSS, it is NOT writable, you are to use the custom editor area to add changes that you want to make, and only changes.<br />'; - } - $base = admin_url(); - ?> - [<a href="<?php echo $base; ?>themes.php?page=companion&file=original">Show Original Style.CSS</a>] | [<a href="<?php echo $base; ?>themes.php?page=companion&file=custom">Edit Custom Style</a>] - <?php if (!companion_is_multisite() || is_super_admin()) { ?> - | [<a href="<?php echo $base; ?>themes.php?page=companion&file=head">Add HTML code to the <head> area</a>]<br /> - <?php } ?> - <textarea class="codepress <?php echo $companion_edit_type; ?>" rows="25" style="width: 100%;" name="newcontent" id="newcontent"><?php echo $companion_file_content; ?></textarea><br /> - <br /> - </label> - </td> - </tr> - </table> - <?php if (!$original) { ?> - <input name="submit" type="submit" class="button-primary" value="Save Custom CSS Overrides" /> - <input type="hidden" name="action" value="companion_css_save" /> - <?php } ?> - </form> - </div> - </div> - <?php - require_once('includes/ccexamples.php'); - require_once('includes/cchelp.php'); - ?> - <div style="float: left;">Theme Companion is made by <a href="http://frumph.net/">Philip M. Hofer (Frumph)</a>. - </div> - <div style="clear: both;"></div> - </div> - - </div> - - </div> - - - <?php -} - -?> \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/autocompletion.js b/wp-content/plugins/comicpress-companion/edit_area/autocompletion.js deleted file mode 100644 index c5d646a33..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/autocompletion.js +++ /dev/null @@ -1,491 +0,0 @@ -/** - * Autocompletion class - * - * An auto completion box appear while you're writing. It's possible to force it to appear with Ctrl+Space short cut - * - * Loaded as a plugin inside editArea (everything made here could have been made in the plugin directory) - * But is definitly linked to syntax selection (no need to do 2 different files for color and auto complete for each syntax language) - * and add a too important feature that many people would miss if included as a plugin - * - * - init param: autocompletion_start - * - Button name: "autocompletion" - */ - -var EditArea_autocompletion= { - - /** - * Get called once this file is loaded (editArea still not initialized) - * - * @return nothing - */ - init: function(){ - // alert("test init: "+ this._someInternalFunction(2, 3)); - - if(editArea.settings["autocompletion"]) - this.enabled= true; - else - this.enabled= false; - this.current_word = false; - this.shown = false; - this.selectIndex = -1; - this.forceDisplay = false; - this.isInMiddleWord = false; - this.autoSelectIfOneResult = false; - this.delayBeforeDisplay = 100; - this.checkDelayTimer = false; - this.curr_syntax_str = ''; - - this.file_syntax_datas = {}; - } - /** - * Returns the HTML code for a specific control string or false if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the EditArea user interface. - * Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} ctrl_name: the name of the control to add - * @return HTML code for a specific control or false. - * @type string or boolean - */ - /*,get_control_html: function(ctrl_name){ - switch( ctrl_name ){ - case 'autocompletion': - // Control id, button img, command - return parent.editAreaLoader.get_button_html('autocompletion_but', 'autocompletion.gif', 'toggle_autocompletion', false, this.baseURL); - break; - } - return false; - }*/ - /** - * Get called once EditArea is fully loaded and initialised - * - * @return nothing - */ - ,onload: function(){ - if(this.enabled) - { - var icon= document.getElementById("autocompletion"); - if(icon) - editArea.switchClassSticky(icon, 'editAreaButtonSelected', true); - } - - this.container = document.createElement('div'); - this.container.id = "auto_completion_area"; - editArea.container.insertBefore( this.container, editArea.container.firstChild ); - - // add event detection for hiding suggestion box - parent.editAreaLoader.add_event( document, "click", function(){ editArea.plugins['autocompletion']._hide();} ); - parent.editAreaLoader.add_event( editArea.textarea, "blur", function(){ editArea.plugins['autocompletion']._hide();} ); - - } - - /** - * Is called each time the user touch a keyboard key. - * - * @param (event) e: the keydown event - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,onkeydown: function(e){ - if(!this.enabled) - return true; - - if (EA_keys[e.keyCode]) - letter=EA_keys[e.keyCode]; - else - letter=String.fromCharCode(e.keyCode); - // shown - if( this._isShown() ) - { - // if escape, hide the box - if(letter=="Esc") - { - this._hide(); - return false; - } - // Enter - else if( letter=="Entrer") - { - var as = this.container.getElementsByTagName('A'); - // select a suggested entry - if( this.selectIndex >= 0 && this.selectIndex < as.length ) - { - as[ this.selectIndex ].onmousedown(); - return false - } - // simply add an enter in the code - else - { - this._hide(); - return true; - } - } - else if( letter=="Tab" || letter=="Down") - { - this._selectNext(); - return false; - } - else if( letter=="Up") - { - this._selectBefore(); - return false; - } - } - // hidden - else - { - - } - - // show current suggestion list and do autoSelect if possible (no matter it's shown or hidden) - if( letter=="Space" && CtrlPressed(e) ) - { - //parent.console.log('SHOW SUGGEST'); - this.forceDisplay = true; - this.autoSelectIfOneResult = true; - this._checkLetter(); - return false; - } - - // wait a short period for check that the cursor isn't moving - setTimeout("editArea.plugins['autocompletion']._checkDelayAndCursorBeforeDisplay();", editArea.check_line_selection_timer +5 ); - this.checkDelayTimer = false; - return true; - } - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} cmd: the name of the command being executed - * @param {unknown} param: the parameter of the command - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,execCommand: function(cmd, param){ - switch( cmd ){ - case 'toggle_autocompletion': - var icon= document.getElementById("autocompletion"); - if(!this.enabled) - { - if(icon != null){ - editArea.restoreClass(icon); - editArea.switchClassSticky(icon, 'editAreaButtonSelected', true); - } - this.enabled= true; - } - else - { - this.enabled= false; - if(icon != null) - editArea.switchClassSticky(icon, 'editAreaButtonNormal', false); - } - return true; - } - return true; - } - ,_checkDelayAndCursorBeforeDisplay: function() - { - this.checkDelayTimer = setTimeout("if(editArea.textarea.selectionStart == "+ editArea.textarea.selectionStart +") EditArea_autocompletion._checkLetter();", this.delayBeforeDisplay - editArea.check_line_selection_timer - 5 ); - } - // hide the suggested box - ,_hide: function(){ - this.container.style.display="none"; - this.selectIndex = -1; - this.shown = false; - this.forceDisplay = false; - this.autoSelectIfOneResult = false; - } - // display the suggested box - ,_show: function(){ - if( !this._isShown() ) - { - this.container.style.display="block"; - this.selectIndex = -1; - this.shown = true; - } - } - // is the suggested box displayed? - ,_isShown: function(){ - return this.shown; - } - // setter and getter - ,_isInMiddleWord: function( new_value ){ - if( typeof( new_value ) == "undefined" ) - return this.isInMiddleWord; - else - this.isInMiddleWord = new_value; - } - // select the next element in the suggested box - ,_selectNext: function() - { - var as = this.container.getElementsByTagName('A'); - - // clean existing elements - for( var i=0; i<as.length; i++ ) - { - if( as[i].className ) - as[i].className = as[i].className.replace(/ focus/g, ''); - } - - this.selectIndex++; - this.selectIndex = ( this.selectIndex >= as.length || this.selectIndex < 0 ) ? 0 : this.selectIndex; - as[ this.selectIndex ].className += " focus"; - } - // select the previous element in the suggested box - ,_selectBefore: function() - { - var as = this.container.getElementsByTagName('A'); - - // clean existing elements - for( var i=0; i<as.length; i++ ) - { - if( as[i].className ) - as[i].className = as[ i ].className.replace(/ focus/g, ''); - } - - this.selectIndex--; - - this.selectIndex = ( this.selectIndex >= as.length || this.selectIndex < 0 ) ? as.length-1 : this.selectIndex; - as[ this.selectIndex ].className += " focus"; - } - ,_select: function( content ) - { - cursor_forced_position = content.indexOf( '{@}' ); - content = content.replace(/{@}/g, '' ); - editArea.getIESelection(); - - // retrive the number of matching characters - var start_index = Math.max( 0, editArea.textarea.selectionEnd - content.length ); - - line_string = editArea.textarea.value.substring( start_index, editArea.textarea.selectionEnd + 1); - limit = line_string.length -1; - nbMatch = 0; - for( i =0; i<limit ; i++ ) - { - if( line_string.substring( limit - i - 1, limit ) == content.substring( 0, i + 1 ) ) - nbMatch = i + 1; - } - // if characters match, we should include them in the selection that will be replaced - if( nbMatch > 0 ) - parent.editAreaLoader.setSelectionRange(editArea.id, editArea.textarea.selectionStart - nbMatch , editArea.textarea.selectionEnd); - - parent.editAreaLoader.setSelectedText(editArea.id, content ); - range= parent.editAreaLoader.getSelectionRange(editArea.id); - - if( cursor_forced_position != -1 ) - new_pos = range["end"] - ( content.length-cursor_forced_position ); - else - new_pos = range["end"]; - parent.editAreaLoader.setSelectionRange(editArea.id, new_pos, new_pos); - this._hide(); - } - - - /** - * Parse the AUTO_COMPLETION part of syntax definition files - */ - ,_parseSyntaxAutoCompletionDatas: function(){ - //foreach syntax loaded - for(var lang in parent.editAreaLoader.load_syntax) - { - if(!parent.editAreaLoader.syntax[lang]['autocompletion']) // init the regexp if not already initialized - { - parent.editAreaLoader.syntax[lang]['autocompletion']= {}; - // the file has auto completion datas - if(parent.editAreaLoader.load_syntax[lang]['AUTO_COMPLETION']) - { - // parse them - for(var i in parent.editAreaLoader.load_syntax[lang]['AUTO_COMPLETION']) - { - datas = parent.editAreaLoader.load_syntax[lang]['AUTO_COMPLETION'][i]; - tmp = {}; - if(datas["CASE_SENSITIVE"]!="undefined" && datas["CASE_SENSITIVE"]==false) - tmp["modifiers"]="i"; - else - tmp["modifiers"]=""; - tmp["prefix_separator"]= datas["REGEXP"]["prefix_separator"]; - tmp["match_prefix_separator"]= new RegExp( datas["REGEXP"]["prefix_separator"] +"$", tmp["modifiers"]); - tmp["match_word"]= new RegExp("(?:"+ datas["REGEXP"]["before_word"] +")("+ datas["REGEXP"]["possible_words_letters"] +")$", tmp["modifiers"]); - tmp["match_next_letter"]= new RegExp("^("+ datas["REGEXP"]["letter_after_word_must_match"] +")$", tmp["modifiers"]); - tmp["keywords"]= {}; - //console.log( datas["KEYWORDS"] ); - for( var prefix in datas["KEYWORDS"] ) - { - tmp["keywords"][prefix]= { - prefix: prefix, - prefix_name: prefix, - prefix_reg: new RegExp("(?:"+ parent.editAreaLoader.get_escaped_regexp( prefix ) +")(?:"+ tmp["prefix_separator"] +")$", tmp["modifiers"] ), - datas: [] - }; - for( var j=0; j<datas["KEYWORDS"][prefix].length; j++ ) - { - tmp["keywords"][prefix]['datas'][j]= { - is_typing: datas["KEYWORDS"][prefix][j][0], - // if replace with is empty, replace with the is_typing value - replace_with: datas["KEYWORDS"][prefix][j][1] ? datas["KEYWORDS"][prefix][j][1].replace('�', datas["KEYWORDS"][prefix][j][0] ) : '', - comment: datas["KEYWORDS"][prefix][j][2] ? datas["KEYWORDS"][prefix][j][2] : '' - }; - - // the replace with shouldn't be empty - if( tmp["keywords"][prefix]['datas'][j]['replace_with'].length == 0 ) - tmp["keywords"][prefix]['datas'][j]['replace_with'] = tmp["keywords"][prefix]['datas'][j]['is_typing']; - - // if the comment is empty, display the replace_with value - if( tmp["keywords"][prefix]['datas'][j]['comment'].length == 0 ) - tmp["keywords"][prefix]['datas'][j]['comment'] = tmp["keywords"][prefix]['datas'][j]['replace_with'].replace(/{@}/g, '' ); - } - - } - tmp["max_text_length"]= datas["MAX_TEXT_LENGTH"]; - parent.editAreaLoader.syntax[lang]['autocompletion'][i] = tmp; - } - } - } - } - } - - ,_checkLetter: function(){ - // check that syntax hasn't changed - if( this.curr_syntax_str != editArea.settings['syntax'] ) - { - if( !parent.editAreaLoader.syntax[editArea.settings['syntax']]['autocompletion'] ) - this._parseSyntaxAutoCompletionDatas(); - this.curr_syntax= parent.editAreaLoader.syntax[editArea.settings['syntax']]['autocompletion']; - this.curr_syntax_str = editArea.settings['syntax']; - //console.log( this.curr_syntax ); - } - - if( editArea.is_editable ) - { - time=new Date; - t1= time.getTime(); - editArea.getIESelection(); - this.selectIndex = -1; - start=editArea.textarea.selectionStart; - var str = editArea.textarea.value; - var results= []; - - - for(var i in this.curr_syntax) - { - var last_chars = str.substring(Math.max(0, start-this.curr_syntax[i]["max_text_length"]), start); - var matchNextletter = str.substring(start, start+1).match( this.curr_syntax[i]["match_next_letter"]); - // if not writting in the middle of a word or if forcing display - if( matchNextletter || this.forceDisplay ) - { - // check if the last chars match a separator - var match_prefix_separator = last_chars.match(this.curr_syntax[i]["match_prefix_separator"]); - - // check if it match a possible word - var match_word= last_chars.match(this.curr_syntax[i]["match_word"]); - - //console.log( match_word ); - if( match_word ) - { - var begin_word= match_word[1]; - var match_curr_word= new RegExp("^"+ parent.editAreaLoader.get_escaped_regexp( begin_word ), this.curr_syntax[i]["modifiers"]); - //console.log( match_curr_word ); - for(var prefix in this.curr_syntax[i]["keywords"]) - { - // parent.console.log( this.curr_syntax[i]["keywords"][prefix] ); - for(var j=0; j<this.curr_syntax[i]["keywords"][prefix]['datas'].length; j++) - { - // parent.console.log( this.curr_syntax[i]["keywords"][prefix]['datas'][j]['is_typing'] ); - // the key word match or force display - if( this.curr_syntax[i]["keywords"][prefix]['datas'][j]['is_typing'].match(match_curr_word) ) - { - // parent.console.log('match'); - hasMatch = false; - var before = last_chars.substr( 0, last_chars.length - begin_word.length ); - - // no prefix to match => it's valid - if( !match_prefix_separator && this.curr_syntax[i]["keywords"][prefix]['prefix'].length == 0 ) - { - if( ! before.match( this.curr_syntax[i]["keywords"][prefix]['prefix_reg'] ) ) - hasMatch = true; - } - // we still need to check the prefix if there is one - else if( this.curr_syntax[i]["keywords"][prefix]['prefix'].length > 0 ) - { - if( before.match( this.curr_syntax[i]["keywords"][prefix]['prefix_reg'] ) ) - hasMatch = true; - } - - if( hasMatch ) - results[results.length]= [ this.curr_syntax[i]["keywords"][prefix], this.curr_syntax[i]["keywords"][prefix]['datas'][j] ]; - } - } - } - } - // it doesn't match any possible word but we want to display something - // we'll display to list of all available words - else if( this.forceDisplay || match_prefix_separator ) - { - for(var prefix in this.curr_syntax[i]["keywords"]) - { - for(var j=0; j<this.curr_syntax[i]["keywords"][prefix]['datas'].length; j++) - { - hasMatch = false; - // no prefix to match => it's valid - if( !match_prefix_separator && this.curr_syntax[i]["keywords"][prefix]['prefix'].length == 0 ) - { - hasMatch = true; - } - // we still need to check the prefix if there is one - else if( match_prefix_separator && this.curr_syntax[i]["keywords"][prefix]['prefix'].length > 0 ) - { - var before = last_chars; //.substr( 0, last_chars.length ); - if( before.match( this.curr_syntax[i]["keywords"][prefix]['prefix_reg'] ) ) - hasMatch = true; - } - - if( hasMatch ) - results[results.length]= [ this.curr_syntax[i]["keywords"][prefix], this.curr_syntax[i]["keywords"][prefix]['datas'][j] ]; - } - } - } - } - } - - // there is only one result, and we can select it automatically - if( results.length == 1 && this.autoSelectIfOneResult ) - { - // console.log( results ); - this._select( results[0][1]['replace_with'] ); - } - else if( results.length == 0 ) - { - this._hide(); - } - else - { - // build the suggestion box content - var lines=[]; - for(var i=0; i<results.length; i++) - { - var line= "<li><a href=\"#\" class=\"entry\" onmousedown=\"EditArea_autocompletion._select('"+ results[i][1]['replace_with'].replace(new RegExp('"', "g"), """) +"');return false;\">"+ results[i][1]['comment']; - if(results[i][0]['prefix_name'].length>0) - line+='<span class="prefix">'+ results[i][0]['prefix_name'] +'</span>'; - line+='</a></li>'; - lines[lines.length]=line; - } - // sort results - this.container.innerHTML = '<ul>'+ lines.sort().join('') +'</ul>'; - - var cursor = _$("cursor_pos"); - this.container.style.top = ( cursor.cursor_top + editArea.lineHeight ) +"px"; - this.container.style.left = ( cursor.cursor_left + 8 ) +"px"; - this._show(); - } - - this.autoSelectIfOneResult = false; - time=new Date; - t2= time.getTime(); - - //parent.console.log( begin_word +"\n"+ (t2-t1) +"\n"+ html ); - } - } -}; - -// Load as a plugin -editArea.settings['plugins'][ editArea.settings['plugins'].length ] = 'autocompletion'; -editArea.add_plugin('autocompletion', EditArea_autocompletion); \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area.css b/wp-content/plugins/comicpress-companion/edit_area/edit_area.css deleted file mode 100644 index 172b366f2..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area.css +++ /dev/null @@ -1,530 +0,0 @@ -body, html{ - margin: 0; - padding: 0; - height: 100%; - border: none; - overflow: hidden; - background-color: #FFF; -} - -body, html, table, form, textarea{ - font: 12px monospace, sans-serif; -} - -#editor{ - border: solid #888 1px; - overflow: hidden; -} - -#result{ - z-index: 4; - overflow-x: auto; - overflow-y: scroll; - border-top: solid #888 1px; - border-bottom: solid #888 1px; - position: relative; - clear: both; -} - -#result.empty{ - overflow: hidden; -} - -#container{ - overflow: hidden; - border: solid blue 0; - position: relative; - z-index: 10; - padding: 0 5px 0 45px; - /*padding-right: 5px;*/ -} - -#textarea{ - position: relative; - top: 0; - left: 0; - margin: 0; - padding: 0; - width: 100%; - height: 100%; - overflow: hidden; - z-index: 7; - border-width: 0; - background-color: transparent; - resize: none; -} - -#textarea, #textarea:hover{ - outline: none; /* safari outline fix */ -} - -#content_highlight{ - white-space: pre; - margin: 0; - padding: 0; - position : absolute; - z-index: 4; - overflow: visible; -} - - -#selection_field, #selection_field_text{ - margin: 0; - background-color: #E1F2F9; -/* height: 1px; */ - position: absolute; - z-index: 5; - top: -100px; - padding: 0; - white-space: pre; - overflow: hidden; -} - -#selection_field.show_colors { - z-index: 3; - background-color:#EDF9FC; - -} - -#selection_field strong{ - font-weight:normal; -} - -#selection_field.show_colors *, #selection_field_text * { - visibility: hidden; -} - -#selection_field_text{ - background-color:transparent; -} - -#selection_field_text strong{ - font-weight:normal; - background-color:#3399FE; - color: #FFF; - visibility:visible; -} - -#container.word_wrap #content_highlight, -#container.word_wrap #selection_field, -#container.word_wrap #selection_field_text, -#container.word_wrap #test_font_size{ - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ - width: 99%; -} - -#line_number{ - position: absolute; - overflow: hidden; - border-right: solid black 1px; - z-index:8; - width: 38px; - padding: 0 5px 0 0; - margin: 0 0 0 -45px; - text-align: right; - color: #AAAAAA; -} - -#test_font_size{ - padding: 0; - margin: 0; - visibility: hidden; - position: absolute; - white-space: pre; -} - -pre{ - margin: 0; - padding: 0; -} - -.hidden{ - opacity: 0.2; - filter:alpha(opacity=20); -} - -#result .edit_area_cursor{ - position: absolute; - z-index:6; - background-color: #FF6633; - top: -100px; - margin: 0; -} - -#result .edit_area_selection_field .overline{ - background-color: #996600; -} - - -/* area popup */ -.editarea_popup{ - border: solid 1px #888888; - background-color: #ECE9D8; - width: 250px; - padding: 4px; - position: absolute; - visibility: hidden; - z-index: 15; - top: -500px; -} - -.editarea_popup, .editarea_popup table{ - font-family: sans-serif; - font-size: 10pt; -} - -.editarea_popup img{ - border: 0; -} - -.editarea_popup .close_popup{ - float: right; - line-height: 16px; - border: 0; - padding: 0; -} - -.editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{ - margin: 0; - padding: 0; -} - -.editarea_popup .copyright{ - text-align: right; -} - -/* Area_search */ -div#area_search_replace{ - /*width: 250px;*/ -} - -div#area_search_replace img{ - border: 0; -} - -div#area_search_replace div.button{ - text-align: center; - line-height: 1.7em; -} - -div#area_search_replace .button a{ - cursor: pointer; - border: solid 1px #888888; - background-color: #DEDEDE; - text-decoration: none; - padding: 0 2px; - color: #000000; - white-space: nowrap; -} - -div#area_search_replace a:hover{ - /*border: solid 1px #888888;*/ - background-color: #EDEDED; -} - -div#area_search_replace #move_area_search_replace{ - cursor: move; - border: solid 1px #888; -} - -div#area_search_replace #close_area_search_replace{ - text-align: right; - vertical-align: top; - white-space: nowrap; -} - -div#area_search_replace #area_search_msg{ - height: 18px; - overflow: hidden; - border-top: solid 1px #888; - margin-top: 3px; -} - -/* area help */ -#edit_area_help{ - width: 350px; -} - -#edit_area_help div.close_popup{ - float: right; -} - -/* area_toolbar */ -.area_toolbar{ - /*font: 11px sans-serif;*/ - width: 100%; - /*height: 21px; */ - margin: 0; - padding: 0; - background-color: #ECE9D8; - text-align: center; -} - -.area_toolbar, .area_toolbar table{ - font: 11px sans-serif; -} - -.area_toolbar img{ - border: 0; - vertical-align: middle; -} - -.area_toolbar input{ - margin: 0; - padding: 0; -} - -.area_toolbar select{ - font-family: 'MS Sans Serif',sans-serif,Verdana,Arial; - font-size: 7pt; - font-weight: normal; - margin: 2px 0 0 0 ; - padding: 0; - vertical-align: top; - background-color: #F0F0EE; -} - -table.statusbar{ - width: 100%; -} - -.area_toolbar td.infos{ - text-align: center; - width: 130px; - border-right: solid 1px #888; - border-width: 0 1px 0 0; - padding: 0; -} - -.area_toolbar td.total{ - text-align: right; - width: 50px; - padding: 0; -} - -.area_toolbar td.resize{ - text-align: right; -} -/* -.area_toolbar span{ - line-height: 1px; - padding: 0; - margin: 0; -}*/ - -.area_toolbar span#resize_area{ - cursor: nw-resize; - visibility: hidden; -} - -/* toolbar buttons */ -.editAreaButtonNormal, .editAreaButtonOver, .editAreaButtonDown, .editAreaSeparator, .editAreaSeparatorLine, .editAreaButtonDisabled, .editAreaButtonSelected { - border: 0; margin: 0; padding: 0; background: transparent; - margin-top: 0; - margin-left: 1px; - padding: 0; -} - -.editAreaButtonNormal { - border: 1px solid #ECE9D8 !important; - cursor: pointer; -} - -.editAreaButtonOver { - border: 1px solid #0A246A !important; - cursor: pointer; - background-color: #B6BDD2; -} - -.editAreaButtonDown { - cursor: pointer; - border: 1px solid #0A246A !important; - background-color: #8592B5; -} - -.editAreaButtonSelected { - border: 1px solid #C0C0BB !important; - cursor: pointer; - background-color: #F4F2E8; -} - -.editAreaButtonDisabled { - filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30); - -moz-opacity:0.3; - opacity: 0.3; - border: 1px solid #F0F0EE !important; - cursor: pointer; -} - -.editAreaSeparatorLine { - margin: 1px 2px; - background-color: #C0C0BB; - width: 2px; - height: 18px; -} - -/* waiting screen */ -#processing{ - display: none; - background-color:#ECE9D8; - border: solid #888 1px; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: 100; - text-align: center; -} - -#processing_text{ - position:absolute; - left: 50%; - top: 50%; - width: 200px; - height: 20px; - margin-left: -100px; - margin-top: -10px; - text-align: center; -} -/* end */ - - -/**** tab browsing area ****/ -#tab_browsing_area{ - display: none; - background-color: #CCC9A8; - border-top: 1px solid #888; - text-align: left; - margin: 0; -} - -#tab_browsing_list { - padding: 0; - margin: 0; - list-style-type: none; - white-space: nowrap; -} -#tab_browsing_list li { - float: left; - margin: -1px; -} -#tab_browsing_list a { - position: relative; - display: block; - text-decoration: none; - float: left; - cursor: pointer; - line-height:14px; -} - -#tab_browsing_list a span { - display: block; - color: #000; - background: #ECE9D8; - border: 1px solid #888; - border-width: 1px 1px 0; - text-align: center; - padding: 2px 2px 1px 4px; - position: relative; /*IE 6 hack */ -} - -#tab_browsing_list a b { - display: block; - border-bottom: 2px solid #617994; -} - -#tab_browsing_list a .edited { - display: none; -} - -#tab_browsing_list a.edited .edited { - display: inline; -} - -#tab_browsing_list a img{ - margin-left: 7px; -} - -#tab_browsing_list a.edited img{ - margin-left: 3px; -} - -#tab_browsing_list a:hover span { - background: #F4F2E8; - border-color: #0A246A; -} - -#tab_browsing_list .selected a span{ - background: #046380; - color: #FFF; -} - - -#no_file_selected{ - height: 100%; - width: 150%; /* Opera need more than 100% */ - background: #CCC; - display: none; - z-index: 20; - position: absolute; -} - - -/*** Non-editable mode ***/ -.non_editable #editor -{ - border-width: 0 1px; -} - -.non_editable .area_toolbar -{ - display: none; -} - -/*** Auto completion ***/ -#auto_completion_area -{ - background: #FFF; - border: solid 1px #888; - position: absolute; - z-index: 15; - width: 280px; - height: 180px; - overflow: auto; - display:none; -} - -#auto_completion_area a, #auto_completion_area a:visited -{ - display: block; - padding: 0 2px 1px; - color: #000; - text-decoration:none; -} - -#auto_completion_area a:hover, #auto_completion_area a:focus, #auto_completion_area a.focus -{ - background: #D6E1FE; - text-decoration:none; -} - -#auto_completion_area ul -{ - margin: 0; - padding: 0; - list-style: none inside; -} -#auto_completion_area li -{ - padding: 0; -} -#auto_completion_area .prefix -{ - font-style: italic; - padding: 0 3px; -} \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area.js b/wp-content/plugins/comicpress-companion/edit_area/edit_area.js deleted file mode 100644 index 27674f675..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area.js +++ /dev/null @@ -1,525 +0,0 @@ -/****** - * - * EditArea - * Developped by Christophe Dolivet - * Released under LGPL, Apache and BSD licenses (use the one you want) - * -******/ - - function EditArea(){ - var t=this; - t.error= false; // to know if load is interrrupt - - t.inlinePopup= [{popup_id: "area_search_replace", icon_id: "search"}, - {popup_id: "edit_area_help", icon_id: "help"}]; - t.plugins= {}; - - t.line_number=0; - - parent.editAreaLoader.set_browser_infos(t); // navigator identification - // fix IE8 detection as we run in IE7 emulate mode through X-UA <meta> tag - if( t.isIE >= 8 ) - t.isIE = 7; - - t.last_selection={}; - t.last_text_to_highlight=""; - t.last_hightlighted_text= ""; - t.syntax_list= []; - t.allready_used_syntax= {}; - t.check_line_selection_timer= 50; // the timer delay for modification and/or selection change detection - - t.textareaFocused= false; - t.highlight_selection_line= null; - t.previous= []; - t.next= []; - t.last_undo=""; - t.files= {}; - t.filesIdAssoc= {}; - t.curr_file= ''; - //t.loaded= false; - t.assocBracket={}; - t.revertAssocBracket= {}; - // bracket selection init - t.assocBracket["("]=")"; - t.assocBracket["{"]="}"; - t.assocBracket["["]="]"; - for(var index in t.assocBracket){ - t.revertAssocBracket[t.assocBracket[index]]=index; - } - t.is_editable= true; - - - /*t.textarea=""; - - t.state="declare"; - t.code = []; // store highlight syntax for languagues*/ - // font datas - t.lineHeight= 16; - /*t.default_font_family= "monospace"; - t.default_font_size= 10;*/ - t.tab_nb_char= 8; //nb of white spaces corresponding to a tabulation - if(t.isOpera) - t.tab_nb_char= 6; - - t.is_tabbing= false; - - t.fullscreen= {'isFull': false}; - - t.isResizing=false; // resize var - - // init with settings and ID (area_id is a global var defined by editAreaLoader on iframe creation - t.id= area_id; - t.settings= editAreas[t.id]["settings"]; - - if((""+t.settings['replace_tab_by_spaces']).match(/^[0-9]+$/)) - { - t.tab_nb_char= t.settings['replace_tab_by_spaces']; - t.tabulation=""; - for(var i=0; i<t.tab_nb_char; i++) - t.tabulation+=" "; - }else{ - t.tabulation="\t"; - } - - // retrieve the init parameter for syntax - if(t.settings["syntax_selection_allow"] && t.settings["syntax_selection_allow"].length>0) - t.syntax_list= t.settings["syntax_selection_allow"].replace(/ /g,"").split(","); - - if(t.settings['syntax']) - t.allready_used_syntax[t.settings['syntax']]=true; - - - }; - EditArea.prototype.init= function(){ - var t=this, a, s=t.settings; - t.textarea = _$("textarea"); - t.container = _$("container"); - t.result = _$("result"); - t.content_highlight = _$("content_highlight"); - t.selection_field = _$("selection_field"); - t.selection_field_text= _$("selection_field_text"); - t.processing_screen = _$("processing"); - t.editor_area = _$("editor"); - t.tab_browsing_area = _$("tab_browsing_area"); - t.test_font_size = _$("test_font_size"); - a = t.textarea; - - if(!s['is_editable']) - t.set_editable(false); - - t.set_show_line_colors( s['show_line_colors'] ); - - if(syntax_selec= _$("syntax_selection")) - { - // set up syntax selection lsit in the toolbar - for(var i=0; i<t.syntax_list.length; i++) { - var syntax= t.syntax_list[i]; - var option= document.createElement("option"); - option.value= syntax; - if(syntax==s['syntax']) - option.selected= "selected"; - option.innerHTML= t.get_translation("syntax_" + syntax, "word"); - syntax_selec.appendChild(option); - } - } - - // add plugins buttons in the toolbar - spans= parent.getChildren(_$("toolbar_1"), "span", "", "", "all", -1); - - for(var i=0; i<spans.length; i++){ - - id=spans[i].id.replace(/tmp_tool_(.*)/, "$1"); - if(id!= spans[i].id){ - for(var j in t.plugins){ - if(typeof(t.plugins[j].get_control_html)=="function" ){ - html=t.plugins[j].get_control_html(id); - if(html!=false){ - html= t.get_translation(html, "template"); - var new_span= document.createElement("span"); - new_span.innerHTML= html; - var father= spans[i].parentNode; - spans[i].parentNode.replaceChild(new_span, spans[i]); - break; // exit the for loop - } - } - } - } - } - - // init datas - //a.value = 'a';//editAreas[t.id]["textarea"].value; - - if(s["debug"]) - { - t.debug=parent.document.getElementById("edit_area_debug_"+t.id); - } - // init size - //this.update_size(); - - if(_$("redo") != null) - t.switchClassSticky(_$("redo"), 'editAreaButtonDisabled', true); - - // insert css rules for highlight mode - if(typeof(parent.editAreaLoader.syntax[s["syntax"]])!="undefined"){ - for(var i in parent.editAreaLoader.syntax){ - if (typeof(parent.editAreaLoader.syntax[i]["styles"]) != "undefined"){ - t.add_style(parent.editAreaLoader.syntax[i]["styles"]); - } - } - } - - // init key events - if(t.isOpera) - _$("editor").onkeypress = keyDown; - else - _$("editor").onkeydown = keyDown; - - for(var i=0; i<t.inlinePopup.length; i++){ - if(t.isOpera) - _$(t.inlinePopup[i]["popup_id"]).onkeypress = keyDown; - else - _$(t.inlinePopup[i]["popup_id"]).onkeydown = keyDown; - } - - if(s["allow_resize"]=="both" || s["allow_resize"]=="x" || s["allow_resize"]=="y") - t.allow_resize(true); - - parent.editAreaLoader.toggle(t.id, "on"); - //a.focus(); - // line selection init - t.change_smooth_selection_mode(editArea.smooth_selection); - // highlight - t.execCommand("change_highlight", s["start_highlight"]); - - // get font size datas - t.set_font(editArea.settings["font_family"], editArea.settings["font_size"]); - - // set unselectable text - children= parent.getChildren(document.body, "", "selec", "none", "all", -1); - for(var i=0; i<children.length; i++){ - if(t.isIE) - children[i].unselectable = true; // IE - else - children[i].onmousedown= function(){return false}; - /* children[i].style.MozUserSelect = "none"; // Moz - children[i].style.KhtmlUserSelect = "none"; // Konqueror/Safari*/ - } - - a.spellcheck= s["gecko_spellcheck"]; - - /** Browser specific style fixes **/ - - // fix rendering bug for highlighted lines beginning with no tabs - if( t.isFirefox >= '3' ) { - t.content_highlight.style.paddingLeft= "1px"; - t.selection_field.style.paddingLeft= "1px"; - t.selection_field_text.style.paddingLeft= "1px"; - } - - if(t.isIE && t.isIE < 8 ){ - a.style.marginTop= "-1px"; - } - /* - if(t.isOpera){ - t.editor_area.style.position= "absolute"; - }*/ - - if( t.isSafari ){ - t.editor_area.style.position = "absolute"; - a.style.marginLeft ="-3px"; - if( t.isSafari < 3.2 ) // Safari 3.0 (3.1?) - a.style.marginTop ="1px"; - } - - // si le textarea n'est pas grand, un click sous le textarea doit provoquer un focus sur le textarea - parent.editAreaLoader.add_event(t.result, "click", function(e){ if((e.target || e.srcElement)==editArea.result) { editArea.area_select(editArea.textarea.value.length, 0);} }); - - if(s['is_multi_files']!=false) - t.open_file({'id': t.curr_file, 'text': ''}); - - t.set_word_wrap( s['word_wrap'] ); - - setTimeout("editArea.focus();editArea.manage_size();editArea.execCommand('EA_load');", 10); - //start checkup routine - t.check_undo(); - t.check_line_selection(true); - t.scroll_to_view(); - - for(var i in t.plugins){ - if(typeof(t.plugins[i].onload)=="function") - t.plugins[i].onload(); - } - if(s['fullscreen']==true) - t.toggle_full_screen(true); - - parent.editAreaLoader.add_event(window, "resize", editArea.update_size); - parent.editAreaLoader.add_event(parent.window, "resize", editArea.update_size); - parent.editAreaLoader.add_event(top.window, "resize", editArea.update_size); - parent.editAreaLoader.add_event(window, "unload", function(){ - // in case where editAreaLoader have been already cleaned - if( parent.editAreaLoader ) - { - parent.editAreaLoader.remove_event(parent.window, "resize", editArea.update_size); - parent.editAreaLoader.remove_event(top.window, "resize", editArea.update_size); - } - if(editAreas[editArea.id] && editAreas[editArea.id]["displayed"]){ - editArea.execCommand("EA_unload"); - } - }); - - - /*date= new Date(); - alert(date.getTime()- parent.editAreaLoader.start_time);*/ - }; - - - - //called by the toggle_on - EditArea.prototype.update_size= function(){ - var d=document,pd=parent.document,height,width,popup,maxLeft,maxTop; - - if( typeof editAreas != 'undefined' && editAreas[editArea.id] && editAreas[editArea.id]["displayed"]==true){ - if(editArea.fullscreen['isFull']){ - pd.getElementById("frame_"+editArea.id).style.width = pd.getElementsByTagName("html")[0].clientWidth + "px"; - pd.getElementById("frame_"+editArea.id).style.height = pd.getElementsByTagName("html")[0].clientHeight + "px"; - } - - if(editArea.tab_browsing_area.style.display=='block' && ( !editArea.isIE || editArea.isIE >= 8 ) ) - { - editArea.tab_browsing_area.style.height = "0px"; - editArea.tab_browsing_area.style.height = (editArea.result.offsetTop - editArea.tab_browsing_area.offsetTop -1)+"px"; - } - - height = d.body.offsetHeight - editArea.get_all_toolbar_height() - 4; - editArea.result.style.height = height +"px"; - - width = d.body.offsetWidth -2; - editArea.result.style.width = width+"px"; - //alert("result h: "+ height+" w: "+width+"\ntoolbar h: "+this.get_all_toolbar_height()+"\nbody_h: "+document.body.offsetHeight); - - // check that the popups don't get out of the screen - for( i=0; i < editArea.inlinePopup.length; i++ ) - { - popup = _$(editArea.inlinePopup[i]["popup_id"]); - maxLeft = d.body.offsetWidth - popup.offsetWidth; - maxTop = d.body.offsetHeight - popup.offsetHeight; - if( popup.offsetTop > maxTop ) - popup.style.top = maxTop+"px"; - if( popup.offsetLeft > maxLeft ) - popup.style.left = maxLeft+"px"; - } - - editArea.manage_size( true ); - editArea.fixLinesHeight( editArea.textarea.value, 0,-1); - } - }; - - - EditArea.prototype.manage_size= function(onlyOneTime){ - if(!editAreas[this.id]) - return false; - - if(editAreas[this.id]["displayed"]==true && this.textareaFocused) - { - var area_height,resized= false; - - //1) Manage display width - //1.1) Calc the new width to use for display - if( !this.settings['word_wrap'] ) - { - var area_width= this.textarea.scrollWidth; - area_height= this.textarea.scrollHeight; - // bug on old opera versions - if(this.isOpera && this.isOpera < 9.6 ){ - area_width=10000; - } - //1.2) the width is not the same, we must resize elements - if(this.textarea.previous_scrollWidth!=area_width) - { - this.container.style.width= area_width+"px"; - this.textarea.style.width= area_width+"px"; - this.content_highlight.style.width= area_width+"px"; - this.textarea.previous_scrollWidth=area_width; - resized=true; - } - } - // manage wrap width - if( this.settings['word_wrap'] ) - { - newW=this.textarea.offsetWidth; - if( this.isFirefox || this.isIE ) - newW-=2; - if( this.isSafari ) - newW-=6; - this.content_highlight.style.width=this.selection_field_text.style.width=this.selection_field.style.width=this.test_font_size.style.width=newW+"px"; - } - - //2) Manage display height - //2.1) Calc the new height to use for display - if( this.isOpera || this.isFirefox || this.isSafari ) { - area_height= this.getLinePosTop( this.last_selection["nb_line"] + 1 ); - } else { - area_height = this.textarea.scrollHeight; - } - //2.2) the width is not the same, we must resize elements - if(this.textarea.previous_scrollHeight!=area_height) - { - this.container.style.height= (area_height+2)+"px"; - this.textarea.style.height= area_height+"px"; - this.content_highlight.style.height= area_height+"px"; - this.textarea.previous_scrollHeight= area_height; - resized=true; - } - - //3) if there is new lines, we add new line numbers in the line numeration area - if(this.last_selection["nb_line"] >= this.line_number) - { - var newLines= '', destDiv=_$("line_number"), start=this.line_number, end=this.last_selection["nb_line"]+100; - for( i = start+1; i < end; i++ ) - { - newLines+='<div id="line_'+ i +'">'+i+"</div>"; - this.line_number++; - } - destDiv.innerHTML= destDiv.innerHTML + newLines; - - this.fixLinesHeight( this.textarea.value, start, -1 ); - } - - //4) be sure the text is well displayed - this.textarea.scrollTop="0px"; - this.textarea.scrollLeft="0px"; - if(resized==true){ - this.scroll_to_view(); - } - } - - if(!onlyOneTime) - setTimeout("editArea.manage_size();", 100); - }; - - EditArea.prototype.execCommand= function(cmd, param){ - - for(var i in this.plugins){ - if(typeof(this.plugins[i].execCommand)=="function"){ - if(!this.plugins[i].execCommand(cmd, param)) - return; - } - } - switch(cmd){ - case "save": - if(this.settings["save_callback"].length>0) - eval("parent."+this.settings["save_callback"]+"('"+ this.id +"', editArea.textarea.value);"); - break; - case "load": - if(this.settings["load_callback"].length>0) - eval("parent."+this.settings["load_callback"]+"('"+ this.id +"');"); - break; - case "onchange": - if(this.settings["change_callback"].length>0) - eval("parent."+this.settings["change_callback"]+"('"+ this.id +"');"); - break; - case "EA_load": - if(this.settings["EA_load_callback"].length>0) - eval("parent."+this.settings["EA_load_callback"]+"('"+ this.id +"');"); - break; - case "EA_unload": - if(this.settings["EA_unload_callback"].length>0) - eval("parent."+this.settings["EA_unload_callback"]+"('"+ this.id +"');"); - break; - case "toggle_on": - if(this.settings["EA_toggle_on_callback"].length>0) - eval("parent."+this.settings["EA_toggle_on_callback"]+"('"+ this.id +"');"); - break; - case "toggle_off": - if(this.settings["EA_toggle_off_callback"].length>0) - eval("parent."+this.settings["EA_toggle_off_callback"]+"('"+ this.id +"');"); - break; - case "re_sync": - if(!this.do_highlight) - break; - case "file_switch_on": - if(this.settings["EA_file_switch_on_callback"].length>0) - eval("parent."+this.settings["EA_file_switch_on_callback"]+"(param);"); - break; - case "file_switch_off": - if(this.settings["EA_file_switch_off_callback"].length>0) - eval("parent."+this.settings["EA_file_switch_off_callback"]+"(param);"); - break; - case "file_close": - if(this.settings["EA_file_close_callback"].length>0) - return eval("parent."+this.settings["EA_file_close_callback"]+"(param);"); - break; - - default: - if(typeof(eval("editArea."+cmd))=="function") - { - if(this.settings["debug"]) - eval("editArea."+ cmd +"(param);"); - else - try{eval("editArea."+ cmd +"(param);");}catch(e){}; - } - } - }; - - EditArea.prototype.get_translation= function(word, mode){ - if(mode=="template") - return parent.editAreaLoader.translate(word, this.settings["language"], mode); - else - return parent.editAreaLoader.get_word_translation(word, this.settings["language"]); - }; - - EditArea.prototype.add_plugin= function(plug_name, plug_obj){ - for(var i=0; i<this.settings["plugins"].length; i++){ - if(this.settings["plugins"][i]==plug_name){ - this.plugins[plug_name]=plug_obj; - plug_obj.baseURL=parent.editAreaLoader.baseURL + "plugins/" + plug_name + "/"; - if( typeof(plug_obj.init)=="function" ) - plug_obj.init(); - } - } - }; - - EditArea.prototype.load_css= function(url){ - try{ - link = document.createElement("link"); - link.type = "text/css"; - link.rel= "stylesheet"; - link.media="all"; - link.href = url; - head = document.getElementsByTagName("head"); - head[0].appendChild(link); - }catch(e){ - document.write("<link href='"+ url +"' rel='stylesheet' type='text/css' />"); - } - }; - - EditArea.prototype.load_script= function(url){ - try{ - script = document.createElement("script"); - script.type = "text/javascript"; - script.src = url; - script.charset= "UTF-8"; - head = document.getElementsByTagName("head"); - head[0].appendChild(script); - }catch(e){ - document.write("<script type='text/javascript' src='" + url + "' charset=\"UTF-8\"><"+"/script>"); - } - }; - - // add plugin translation to language translation array - EditArea.prototype.add_lang= function(language, values){ - if(!parent.editAreaLoader.lang[language]) - parent.editAreaLoader.lang[language]={}; - for(var i in values) - parent.editAreaLoader.lang[language][i]= values[i]; - }; - - // short cut for document.getElementById() - function _$(id){return document.getElementById( id );}; - - var editArea = new EditArea(); - parent.editAreaLoader.add_event(window, "load", init); - - function init(){ - setTimeout("editArea.init(); ", 10); - }; diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_compressor.php b/wp-content/plugins/comicpress-companion/edit_area/edit_area_compressor.php deleted file mode 100644 index f2cc532af..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area_compressor.php +++ /dev/null @@ -1,408 +0,0 @@ -<?php - /****** - * - * EditArea PHP compressor - * Developped by Christophe Dolivet - * Released under LGPL, Apache and BSD licenses - * v1.1.3 (2007/01/18) - * - ******/ - - // CONFIG - $param['cache_duration']= 3600 * 24 * 10; // 10 days util client cache expires - $param['compress'] = true; // enable the code compression, should be activated but it can be usefull to desactivate it for easier error retrieving (true or false) - $param['debug'] = false; // Enable this option if you need debuging info - $param['use_disk_cache']= true; // If you enable this option gzip files will be cached on disk. - $param['use_gzip']= true; // Enable gzip compression - // END CONFIG - - $compressor= new Compressor($param); - - class Compressor{ - - - function compressor($param) - { - $this->__construct($param); - } - - function __construct($param) - { - $this->start_time= $this->get_microtime(); - $this->file_loaded_size=0; - $this->param= $param; - $this->script_list=""; - $this->path= dirname(__FILE__)."/"; - if(isset($_GET['plugins'])){ - $this->load_all_plugins= true; - $this->full_cache_file= $this->path."edit_area_full_with_plugins.js"; - $this->gzip_cache_file= $this->path."edit_area_full_with_plugins.gz"; - }else{ - $this->load_all_plugins= false; - $this->full_cache_file= $this->path."edit_area_full.js"; - $this->gzip_cache_file= $this->path."edit_area_full.gz"; - } - - $this->check_gzip_use(); - $this->send_headers(); - $this->check_cache(); - $this->load_files(); - $this->send_datas(); - } - - function send_headers() - { - header("Content-type: text/javascript; charset: UTF-8"); - header("Vary: Accept-Encoding"); // Handle proxies - header(sprintf("Expires: %s GMT", gmdate("D, d M Y H:i:s", time() + $this->param['cache_duration'])) ); - if($this->use_gzip) - header("Content-Encoding: ".$this->gzip_enc_header); - } - - function check_gzip_use() - { - $encodings = array(); - $desactivate_gzip=false; - - if (isset($_SERVER['HTTP_ACCEPT_ENCODING'])) - $encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING']))); - - // desactivate gzip for IE version < 7 - if(preg_match("/(?:msie )([0-9.]+)/i", $_SERVER['HTTP_USER_AGENT'], $ie)) - { - if($ie[1]<7) - $desactivate_gzip=true; - } - - // Check for gzip header or northon internet securities - if (!$desactivate_gzip && $this->param['use_gzip'] && (in_array('gzip', $encodings) || in_array('x-gzip', $encodings) || isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) { - $this->gzip_enc_header= in_array('x-gzip', $encodings) ? "x-gzip" : "gzip"; - $this->use_gzip=true; - $this->cache_file=$this->gzip_cache_file; - }else{ - $this->use_gzip=false; - $this->cache_file=$this->full_cache_file; - } - } - - function check_cache() - { - // Only gzip the contents if clients and server support it - if (file_exists($this->cache_file)) { - // check if cache file must be updated - $cache_date=0; - if ($dir = opendir($this->path)) { - while (($file = readdir($dir)) !== false) { - if(is_file($this->path.$file) && $file!="." && $file!="..") - $cache_date= max($cache_date, filemtime($this->path.$file)); - } - closedir($dir); - } - if($this->load_all_plugins){ - $plug_path= $this->path."plugins/"; - if (($dir = @opendir($plug_path)) !== false) - { - while (($file = readdir($dir)) !== false) - { - if ($file !== "." && $file !== "..") - { - if(is_dir($plug_path.$file) && file_exists($plug_path.$file."/".$file.".js")) - $cache_date= max($cache_date, filemtime("plugins/".$file."/".$file.".js")); - } - } - closedir($dir); - } - } - - if(filemtime($this->cache_file) >= $cache_date){ - // if cache file is up to date - $last_modified = gmdate("D, d M Y H:i:s",filemtime($this->cache_file))." GMT"; - if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && strcasecmp($_SERVER["HTTP_IF_MODIFIED_SINCE"], $last_modified) === 0) - { - header("HTTP/1.1 304 Not Modified"); - header("Last-modified: ".$last_modified); - header("Cache-Control: Public"); // Tells HTTP 1.1 clients to cache - header("Pragma:"); // Tells HTTP 1.0 clients to cache - } - else - { - header("Last-modified: ".$last_modified); - header("Cache-Control: Public"); // Tells HTTP 1.1 clients to cache - header("Pragma:"); // Tells HTTP 1.0 clients to cache - header('Content-Length: '.filesize($this->cache_file)); - echo file_get_contents($this->cache_file); - } - die; - } - } - return false; - } - - function load_files() - { - $loader= $this->get_content("edit_area_loader.js")."\n"; - - // get the list of other files to load - $loader= preg_replace("/(t\.scripts_to_load=\s*)\[([^\]]*)\];/e" - , "\$this->replace_scripts('script_list', '\\1', '\\2')" - , $loader); - - $loader= preg_replace("/(t\.sub_scripts_to_load=\s*)\[([^\]]*)\];/e" - , "\$this->replace_scripts('sub_script_list', '\\1', '\\2')" - , $loader); - - $this->datas= $loader; - $this->compress_javascript($this->datas); - - // load other scripts needed for the loader - preg_match_all('/"([^"]*)"/', $this->script_list, $match); - foreach($match[1] as $key => $value) - { - $content= $this->get_content(preg_replace("/\\|\//i", "", $value).".js"); - $this->compress_javascript($content); - $this->datas.= $content."\n"; - } - //$this->datas); - //$this->datas= preg_replace('/(( |\t|\r)*\n( |\t)*)+/s', "", $this->datas); - - // improved compression step 1/2 - $this->datas= preg_replace(array("/(\b)EditAreaLoader(\b)/", "/(\b)editAreaLoader(\b)/", "/(\b)editAreas(\b)/"), array("EAL", "eAL", "eAs"), $this->datas); - //$this->datas= str_replace(array("EditAreaLoader", "editAreaLoader", "editAreas"), array("EAL", "eAL", "eAs"), $this->datas); - $this->datas.= "var editAreaLoader= eAL;var editAreas=eAs;EditAreaLoader=EAL;"; - - // load sub scripts - $sub_scripts=""; - $sub_scripts_list= array(); - preg_match_all('/"([^"]*)"/', $this->sub_script_list, $match); - foreach($match[1] as $value){ - $sub_scripts_list[]= preg_replace("/\\|\//i", "", $value).".js"; - } - - if($this->load_all_plugins){ - // load plugins scripts - $plug_path= $this->path."plugins/"; - if (($dir = @opendir($plug_path)) !== false) - { - while (($file = readdir($dir)) !== false) - { - if ($file !== "." && $file !== "..") - { - if(is_dir($plug_path.$file) && file_exists($plug_path.$file."/".$file.".js")) - $sub_scripts_list[]= "plugins/".$file."/".$file.".js"; - } - } - closedir($dir); - } - } - - foreach($sub_scripts_list as $value){ - $sub_scripts.= $this->get_javascript_content($value); - } - // improved compression step 2/2 - $sub_scripts= preg_replace(array("/(\b)editAreaLoader(\b)/", "/(\b)editAreas(\b)/", "/(\b)editArea(\b)/", "/(\b)EditArea(\b)/"), array("eAL", "eAs", "eA", "EA"), $sub_scripts); - // $sub_scripts= str_replace(array("editAreaLoader", "editAreas", "editArea", "EditArea"), array("eAL", "eAs", "eA", "EA"), $sub_scripts); - $sub_scripts.= "var editArea= eA;EditArea=EA;"; - - - // add the scripts - // $this->datas.= sprintf("editAreaLoader.iframe_script= \"<script type='text/javascript'>%s</script>\";\n", $sub_scripts); - - - // add the script and use a last compression - if( $this->param['compress'] ) - { - $last_comp = array( 'Á' => 'this', - 'Â' => 'textarea', - 'Ã' => 'function', - 'Ä' => 'prototype', - 'Å' => 'settings', - 'Æ' => 'length', - 'Ç' => 'style', - 'È' => 'parent', - 'É' => 'last_selection', - 'Ê' => 'value', - 'Ë' => 'true', - 'Ì' => 'false' - /*, - 'Î' => '"', - 'Ï' => "\n", - 'À' => "\r"*/); - } - else - { - $last_comp = array(); - } - - $js_replace= ''; - foreach( $last_comp as $key => $val ) - $js_replace .= ".replace(/". $key ."/g,'". str_replace( array("\n", "\r"), array('\n','\r'), $val ) ."')"; - - $this->datas.= sprintf("editAreaLoader.iframe_script= \"<script type='text/javascript'>%s</script>\"%s;\n", - str_replace( array_values($last_comp), array_keys($last_comp), $sub_scripts ), - $js_replace); - - if($this->load_all_plugins) - $this->datas.="editAreaLoader.all_plugins_loaded=true;\n"; - - - // load the template - $this->datas.= sprintf("editAreaLoader.template= \"%s\";\n", $this->get_html_content("template.html")); - // load the css - $this->datas.= sprintf("editAreaLoader.iframe_css= \"<style>%s</style>\";\n", $this->get_css_content("edit_area.css")); - - // $this->datas= "function editArea(){};editArea.prototype.loader= function(){alert('bouhbouh');} var a= new editArea();a.loader();"; - - } - - function send_datas() - { - if($this->param['debug']){ - $header=sprintf("/* USE PHP COMPRESSION\n"); - $header.=sprintf("javascript size: based files: %s => PHP COMPRESSION => %s ", $this->file_loaded_size, strlen($this->datas)); - if($this->use_gzip){ - $gzip_datas= gzencode($this->datas, 9, FORCE_GZIP); - $header.=sprintf("=> GZIP COMPRESSION => %s", strlen($gzip_datas)); - $ratio = round(100 - strlen($gzip_datas) / $this->file_loaded_size * 100.0); - }else{ - $ratio = round(100 - strlen($this->datas) / $this->file_loaded_size * 100.0); - } - $header.=sprintf(", reduced by %s%%\n", $ratio); - $header.=sprintf("compression time: %s\n", $this->get_microtime()-$this->start_time); - $header.=sprintf("%s\n", implode("\n", $this->infos)); - $header.=sprintf("*/\n"); - $this->datas= $header.$this->datas; - } - $mtime= time(); // ensure that the 2 disk files will have the same update time - // generate gzip file and cahce it if using disk cache - if($this->use_gzip){ - $this->gzip_datas= gzencode($this->datas, 9, FORCE_GZIP); - if($this->param['use_disk_cache']) - $this->file_put_contents($this->gzip_cache_file, $this->gzip_datas, $mtime); - } - - // generate full js file and cache it if using disk cache - if($this->param['use_disk_cache']) - $this->file_put_contents($this->full_cache_file, $this->datas, $mtime); - - // generate output - if($this->use_gzip) - echo $this->gzip_datas; - else - echo $this->datas; - -// die; - } - - - function get_content($end_uri) - { - $end_uri=preg_replace("/\.\./", "", $end_uri); // Remove any .. (security) - $file= $this->path.$end_uri; - if(file_exists($file)){ - $this->infos[]=sprintf("'%s' loaded", $end_uri); - /*$fd = fopen($file, 'rb'); - $content = fread($fd, filesize($file)); - fclose($fd); - return $content;*/ - return $this->file_get_contents($file); - }else{ - $this->infos[]=sprintf("'%s' not loaded", $end_uri); - return ""; - } - } - - function get_javascript_content($end_uri) - { - $val=$this->get_content($end_uri); - - $this->compress_javascript($val); - $this->prepare_string_for_quotes($val); - return $val; - } - - function compress_javascript(&$code) - { - if($this->param['compress']) - { - // remove all comments - // (\"(?:[^\"\\]*(?:\\\\)*(?:\\\"?)?)*(?:\"|$))|(\'(?:[^\'\\]*(?:\\\\)*(?:\\'?)?)*(?:\'|$))|(?:\/\/(?:.|\r|\t)*?(\n|$))|(?:\/\*(?:.|\n|\r|\t)*?(?:\*\/|$)) - $code= preg_replace("/(\"(?:[^\"\\\\]*(?:\\\\\\\\)*(?:\\\\\"?)?)*(?:\"|$))|(\'(?:[^\'\\\\]*(?:\\\\\\\\)*(?:\\\\\'?)?)*(?:\'|$))|(?:\/\/(?:.|\r|\t)*?(\n|$))|(?:\/\*(?:.|\n|\r|\t)*?(?:\*\/|$))/s", "$1$2$3", $code); - // remove line return, empty line and tabulation - $code= preg_replace('/(( |\t|\r)*\n( |\t)*)+/s', " ", $code); - // add line break before "else" otherwise navigators can't manage to parse the file - $code= preg_replace('/(\b(else)\b)/', "\n$1", $code); - // remove unnecessary spaces - $code= preg_replace('/( |\t|\r)*(;|\{|\}|=|==|\-|\+|,|\(|\)|\|\||&\&|\:)( |\t|\r)*/', "$2", $code); - } - } - - function get_css_content($end_uri){ - $code=$this->get_content($end_uri); - // remove comments - $code= preg_replace("/(?:\/\*(?:.|\n|\r|\t)*?(?:\*\/|$))/s", "", $code); - // remove spaces - $code= preg_replace('/(( |\t|\r)*\n( |\t)*)+/s', "", $code); - // remove spaces - $code= preg_replace('/( |\t|\r)?(\:|,|\{|\})( |\t|\r)+/', "$2", $code); - - $this->prepare_string_for_quotes($code); - return $code; - } - - function get_html_content($end_uri){ - $code=$this->get_content($end_uri); - //$code= preg_replace('/(\"(?:\\\"|[^\"])*(?:\"|$))|' . "(\'(?:\\\'|[^\'])*(?:\'|$))|(?:\/\/(?:.|\r|\t)*?(\n|$))|(?:\/\*(?:.|\n|\r|\t)*?(?:\*\/|$))/s", "$1$2$3", $code); - $code= preg_replace('/(( |\t|\r)*\n( |\t)*)+/s', " ", $code); - $this->prepare_string_for_quotes($code); - return $code; - } - - function prepare_string_for_quotes(&$str){ - // prepare the code to be putted into quotes - /*$pattern= array("/(\\\\)?\"/", '/\\\n/' , '/\\\r/' , "/(\r?\n)/"); - $replace= array('$1$1\\"', '\\\\\\n', '\\\\\\r' , '\\\n"$1+"');*/ - $pattern= array("/(\\\\)?\"/", '/\\\n/' , '/\\\r/' , "/(\r?\n)/"); - if($this->param['compress']) - $replace= array('$1$1\\"', '\\\\\\n', '\\\\\\r' , '\n'); - else - $replace= array('$1$1\\"', '\\\\\\n', '\\\\\\r' , "\\n\"\n+\""); - $str= preg_replace($pattern, $replace, $str); - } - - function replace_scripts($var, $param1, $param2) - { - $this->$var=stripslashes($param2); - return $param1."[];"; - } - - /* for php version that have not thoses functions */ - function file_get_contents($file) - { - $fd = fopen($file, 'rb'); - $content = fread($fd, filesize($file)); - fclose($fd); - $this->file_loaded_size+= strlen($content); - return $content; - } - - function file_put_contents($file, &$content, $mtime=-1) - { - if($mtime==-1) - $mtime=time(); - $fp = @fopen($file, "wb"); - if ($fp) { - fwrite($fp, $content); - fclose($fp); - touch($file, $mtime); - return true; - } - return false; - } - - function get_microtime() - { - list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); - } - } -?> diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full.gz b/wp-content/plugins/comicpress-companion/edit_area/edit_area_full.gz deleted file mode 100644 index 8cfc846f1649c8de8bc1f12dc660d90d717e67ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29125 zcmb2|=3oE==C^xutEG=m)c95TJ-lJV;e!&)0!wm^D_MMT_P*k_d(%_xQ#YRo@yt^+ zP;qBtWHFv{V#1FJPoAVc{xkRU!#dkv$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P@PV?AfcQZ1|@-)<PGn7nC^dq7fof$k_*E#RL zmfL=8Vcu%D%uOHf%}rmoQpbAr2_uKq0j_(S=bqnh6A?J^{N4LCKhIuXZXL(%@zd>W z(zZ>G`&-xVtJw4Ttau#vJq?Mgb}wyT)_y+Q{OjYJ&*|3f@jw3x*j(5lTJ@pE&|3f4 zZvXnPGHd6qFO0bO<?`Qc61r(m->i8h7cuLT@`Wjx{)<arxz~Q)-fzp@v$gH=qx)?l zQzOLJeXi4=X%IA%RiKzNx^9vG&pcNF-7xtq@$L<OPhIcSz3kH~>vp@YYN6{3;pY)X z8%{3xwZCE22FpL%zdT=U%gAznuU~N~GP<wtM$3(A<JP9<hDGu-=h;+#`td+JSkmB_ z<kKw|xssCK)!4{Sam)DME-7nNUiRThyCCOE)5c$FuFe_)X}9O*nr*3k5UHF{GMQxo zyT{>E%P+PZJ~6HBPi5}rlA5~g?Mq4{n&0TfTOHXZ=6Ysvs-eN9N$0F>CUU&{yr9se z=fleGwYf!iFJ{#4{QLQMzy11^%TD*#ndazmAMy%V&mn*Bib;dkOiS^)ICGXwQQHqJ z-o>=XUqCsXZ^DGlO$tRKnUWmWmc-?Y)Fgyn`~By%d;C|Q?i-(kub+Q)ZHi&ii$Jp( zUk{kPjW(IKDMLLaH@0l~j}5CUZY@u|{mFOg>DDb@i_-%x_VlN_fA;h{#w(;R_H;q@ z!?%HZcc%X4)@0uQYUZVV>F*+5FeLKkNJR!s_Pgf3Wb4_l*VawuNIG+C!HN~xGj6Wj zR#|j?)#<0z9%7pF>neBree=OlBZifK;+8K<4{b=+>@LieoqTA*15<+^GcHCJo}DeZ jPI5<jP!CVmr8S3Vtf@G0_09j!|G6FV?);m*pOFCoywJv* diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full.js b/wp-content/plugins/comicpress-companion/edit_area/edit_area_full.js deleted file mode 100644 index db136a89a..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full.js +++ /dev/null @@ -1,38 +0,0 @@ - function EAL(){var t=this;t.version="0.8.1.1";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true; -else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span); -else father.insertBefore(span,next);}if(!eAs[id]["initialized"]){t.execCommand(id,"EA_init");if(eAs[id]["settings"]["display"]=="later"){eAs[id]["initialized"]=true;return;}}if(t.isIE){t.init_ie_textarea(id);}area=eAs[id];for(i=0;i<area["settings"]["tab_toolbar"].length;i++){html_toolbar_content+=t.get_control_html(area["settings"]["tab_toolbar"][i],area["settings"]["language"]);}html_toolbar_content=t.translate(html_toolbar_content,area["settings"]["language"],"template");if(!t.iframe_script){t.iframe_script="";for(i=0;i<t.sub_scripts_to_load.length;i++)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+t.sub_scripts_to_load[i]+'.js"></script>';}for(i=0;i<area["settings"]["plugins"].length;i++){if(!t.all_plugins_loaded)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/'+area["settings"]["plugins"][i]+'.js"></script>';t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/langs/'+area["settings"]["language"]+'.js"></script>';}if(!t.iframe_css){t.iframe_css="<link href='"+t.baseURL+"edit_area.css' rel='stylesheet' type='text/css' />";}template=t.template.replace(/\[__BASEURL__\]/g,t.baseURL);template=template.replace("[__TOOLBAR__]",html_toolbar_content);template=t.translate(template,area["settings"]["language"],"template");template=template.replace("[__CSSRULES__]",t.iframe_css);template=template.replace("[__JSCODE__]",t.iframe_script);template=template.replace("[__EA_VERSION__]",t.version);area.textarea=d.getElementById(area["settings"]["id"]);eAs[area["settings"]["id"]]["textarea"]=area.textarea;if(typeof(window.frames["frame_"+area["settings"]["id"]])!='undefined')delete window.frames["frame_"+area["settings"]["id"]];father=area.textarea.parentNode;content=d.createElement("iframe");content.name="frame_"+area["settings"]["id"];content.id="frame_"+area["settings"]["id"];content.style.borderWidth="0px";setAttribute(content,"frameBorder","0");content.style.overflow="hidden";content.style.display="none";next=area.textarea.nextSibling;if(next==null)father.appendChild(content); -else father.insertBefore(content,next);f=window.frames["frame_"+area["settings"]["id"]];f.document.open();f.eAs=eAs;f.area_id=area["settings"]["id"];f.document.area_id=area["settings"]["id"];f.document.write(template);f.document.close();},toggle:function(id,toggle_to){if(!toggle_to)toggle_to=(eAs[id]["displayed"]==true)?"off":"on";if(eAs[id]["displayed"]==true&&toggle_to=="off"){this.toggle_off(id);} -else if(eAs[id]["displayed"]==false&&toggle_to=="on"){this.toggle_on(id);}return false;},toggle_off:function(id){var fs=window.frames,f,t,parNod,nxtSib,selStart,selEnd,scrollTop,scrollLeft;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];if(f.editArea.fullscreen['isFull'])f.editArea.toggle_full_screen(false);eAs[id]["displayed"]=false;t.wrap="off";setAttribute(t,"wrap","off");parNod=t.parentNode;nxtSib=t.nextSibling;parNod.removeChild(t);parNod.insertBefore(t,nxtSib);t.value=f.editArea.textarea.value;selStart=f.editArea.last_selection["selectionStart"];selEnd=f.editArea.last_selection["selectionEnd"];scrollTop=f.document.getElementById("result").scrollTop;scrollLeft=f.document.getElementById("result").scrollLeft;document.getElementById("frame_"+id).style.display='none';t.style.display="inline";try{t.focus();}catch(e){};if(this.isIE){t.selectionStart=selStart;t.selectionEnd=selEnd;t.focused=true;set_IE_selection(t);} -else{if(this.isOpera&&this.isOpera < 9.6){t.setSelectionRange(0,0);}try{t.setSelectionRange(selStart,selEnd);}catch(e){};}t.scrollTop=scrollTop;t.scrollLeft=scrollLeft;f.editArea.execCommand("toggle_off");}},toggle_on:function(id){var fs=window.frames,f,t,selStart=0,selEnd=0,scrollTop=0,scrollLeft=0,curPos,elem;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];area=f.editArea;area.textarea.value=t.value;curPos=eAs[id]["settings"]["cursor_position"];if(t.use_last==true){selStart=t.last_selectionStart;selEnd=t.last_selectionEnd;scrollTop=t.last_scrollTop;scrollLeft=t.last_scrollLeft;t.use_last=false;} -else if(curPos=="auto"){try{selStart=t.selectionStart;selEnd=t.selectionEnd;scrollTop=t.scrollTop;scrollLeft=t.scrollLeft;}catch(ex){}}this.set_editarea_size_from_textarea(id,document.getElementById("frame_"+id));t.style.display="none";document.getElementById("frame_"+id).style.display="inline";area.execCommand("focus");eAs[id]["displayed"]=true;area.execCommand("update_size");f.document.getElementById("result").scrollTop=scrollTop;f.document.getElementById("result").scrollLeft=scrollLeft;area.area_select(selStart,selEnd-selStart);area.execCommand("toggle_on");} -else{elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem,width,height;elem=document.getElementById(id);width=Math.max(eAs[id]["settings"]["min_width"],elem.offsetWidth)+"px";height=Math.max(eAs[id]["settings"]["min_height"],elem.offsetHeight)+"px";if(elem.style.width.indexOf("%")!=-1)width=elem.style.width;if(elem.style.height.indexOf("%")!=-1)height=elem.style.height;frame.style.width=width;frame.style.height=height;},set_base_url:function(){var t=this,elems,i,docBasePath;if(!this.baseURL){elems=document.getElementsByTagName('script');for(i=0;i<elems.length;i++){if(elems[i].src&&elems[i].src.match(/edit_area_[^\\\/]*$/i)){var src=elems[i].src;src=src.substring(0,src.lastIndexOf('/'));this.baseURL=src;this.file_name=elems[i].src.substr(elems[i].src.lastIndexOf("/")+1);break;}}}docBasePath=document.location.href;if(docBasePath.indexOf('?')!=-1)docBasePath=docBasePath.substring(0,docBasePath.indexOf('?'));docBasePath=docBasePath.substring(0,docBasePath.lastIndexOf('/'));if(t.baseURL.indexOf('://')==-1&&t.baseURL.charAt(0)!='/'){t.baseURL=docBasePath+"/"+t.baseURL;}t.baseURL+="/";},get_button_html:function(id,img,exec,isFileSpecific,baseURL){var cmd,html;if(!baseURL)baseURL=this.baseURL;cmd='editArea.execCommand(\''+exec+'\')';html='<a id="a_'+id+'" href="javascript:'+cmd+'" onclick="'+cmd+';return false;" onmousedown="return false;" target="_self" fileSpecific="'+(isFileSpecific?'yes':'no')+'">';html+='<img id="'+id+'" src="'+baseURL+'images/'+img+'" title="{$'+id+'}" width="20" height="20" class="editAreaButtonNormal" onmouseover="editArea.switchClass(this,\'editAreaButtonOver\');" onmouseout="editArea.restoreClass(this);" onmousedown="editArea.restoreAndSwitchClass(this,\'editAreaButtonDown\');" /></a>';return html;},get_control_html:function(button_name,lang){var t=this,i,but,html,si;for(i=0;i<t.advanced_buttons.length;i++){but=t.advanced_buttons[i];if(but[0]==button_name){return t.get_button_html(but[0],but[1],but[2],but[3]);}}switch(button_name){case "*":case "return":return "<br />";case "|":case "separator":return '<img src="'+t.baseURL+'images/spacer.gif" width="1" height="15" class="editAreaSeparatorLine">';case "select_font":html="<select id='area_font_size' onchange='javascript:editArea.execCommand(\"change_font_size\")' fileSpecific='yes'>";html+="<option value='-1'>{$font_size}</option>";si=[8,9,10,11,12,14];for(i=0;i<si.length;i++){html+="<option value='"+si[i]+"'>"+si[i]+" pt</option>";}html+="</select>";return html;case "syntax_selection":html="<select id='syntax_selection' onchange='javascript:editArea.execCommand(\"change_syntax\",this.value)' fileSpecific='yes'>";html+="<option value='-1'>{$syntax_selection}</option>";html+="</select>";return html;}return "<span id='tmp_tool_"+button_name+"'>["+button_name+"]</span>";},get_template:function(){if(this.template==""){var xhr_object=null;if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest(); -else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP"); -else{alert("XMLHTTPRequest not supported. EditArea not loaded");return;}xhr_object.open("GET",this.baseURL+"template.html",false);xhr_object.send(null);if(xhr_object.readyState==4)this.template=xhr_object.responseText; -else this.has_error();}},translate:function(text,lang,mode){if(mode=="word")text=eAL.get_word_translation(text,lang); -else if(mode="template"){eAL.current_language=lang;text=text.replace(/\{\$([^\}]+)\}/gm,eAL.translate_template);}return text;},translate_template:function(){return eAL.get_word_translation(EAL.prototype.translate_template.arguments[1],eAL.current_language);},get_word_translation:function(val,lang){var i;for(i in eAL.lang[lang]){if(i==val)return eAL.lang[lang][i];}return "_"+val;},load_script:function(url){var t=this,d=document,script,head;if(t.loadedFiles[url])return;try{script=d.createElement("script");script.type="text/javascript";script.src=url;script.charset="UTF-8";d.getElementsByTagName("head")[0].appendChild(script);}catch(e){d.write('<sc'+'ript language="javascript" type="text/javascript" src="'+url+'" charset="UTF-8"></sc'+'ript>');}t.loadedFiles[url]=true;},add_event:function(obj,name,handler){try{if(obj.attachEvent){obj.attachEvent("on"+name,handler);} -else{obj.addEventListener(name,handler,false);}}catch(e){}},remove_event:function(obj,name,handler){try{if(obj.detachEvent)obj.detachEvent("on"+name,handler); -else obj.removeEventListener(name,handler,false);}catch(e){}},reset:function(e){var formObj,is_child,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(window.frames["frame_"+i]&&is_child&&eAs[i]["displayed"]==true){var exec='window.frames["frame_'+i+'"].editArea.textarea.value=document.getElementById("'+i+'").value;';exec+='window.frames["frame_'+i+'"].editArea.execCommand("focus");';exec+='window.frames["frame_'+i+'"].editArea.check_line_selection();';exec+='window.frames["frame_'+i+'"].editArea.execCommand("reset");';window.setTimeout(exec,10);}}return;},submit:function(e){var formObj,is_child,fs=window.frames,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(is_child){if(fs["frame_"+i]&&eAs[i]["displayed"]==true)document.getElementById(i).value=fs["frame_"+i].editArea.textarea.value;eAL.execCommand(i,"EA_submit");}}if(typeof(formObj.edit_area_replaced_submit)=="function"){res=formObj.edit_area_replaced_submit();if(res==false){if(eAL.isIE)return false; -else e.preventDefault();}}return;},getValue:function(id){if(window.frames["frame_"+id]&&eAs[id]["displayed"]==true){return window.frames["frame_"+id].editArea.textarea.value;} -else if(elem=document.getElementById(id)){return elem.value;}return false;},setValue:function(id,new_val){var fs=window.frames;if((f=fs["frame_"+id])&&eAs[id]["displayed"]==true){f.editArea.textarea.value=new_val;f.editArea.execCommand("focus");f.editArea.check_line_selection(false);f.editArea.execCommand("onchange");} -else if(elem=document.getElementById(id)){elem.value=new_val;}},getSelectionRange:function(id){var sel,eA,fs=window.frames;sel={"start":0,"end":0};if(fs["frame_"+id]&&eAs[id]["displayed"]==true){eA=fs["frame_"+id].editArea;sel["start"]=eA.textarea.selectionStart;sel["end"]=eA.textarea.selectionEnd;} -else if(elem=document.getElementById(id)){sel=getSelectionRange(elem);}return sel;},setSelectionRange:function(id,new_start,new_end){var fs=window.frames;if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].editArea.area_select(new_start,new_end-new_start);if(!this.isIE){fs["frame_"+id].editArea.check_line_selection(false);fs["frame_"+id].editArea.scroll_to_view();}} -else if(elem=document.getElementById(id)){setSelectionRange(elem,new_start,new_end);}},getSelectedText:function(id){var sel=this.getSelectionRange(id);return this.getValue(id).substring(sel["start"],sel["end"]);},setSelectedText:function(id,new_val){var fs=window.frames,d=document,sel,text,scrollTop,scrollLeft,new_sel_end;new_val=new_val.replace(/\r/g,"");sel=this.getSelectionRange(id);text=this.getValue(id);if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;} -else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}text=text.substring(0,sel["start"])+new_val+text.substring(sel["end"]);this.setValue(id,text);new_sel_end=sel["start"]+new_val.length;this.setSelectionRange(id,sel["start"],new_sel_end);if(new_val !=this.getSelectedText(id).replace(/\r/g,"")){this.setSelectionRange(id,sel["start"],new_sel_end+new_val.split("\n").length-1);}if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;fs["frame_"+id].editArea.execCommand("onchange");} -else{d.getElementById(id).scrollTop=scrollTop;d.getElementById(id).scrollLeft=scrollLeft;}},insertTags:function(id,open_tag,close_tag){var old_sel,new_sel;old_sel=this.getSelectionRange(id);text=open_tag+this.getSelectedText(id)+close_tag;eAL.setSelectedText(id,text);new_sel=this.getSelectionRange(id);if(old_sel["end"] > old_sel["start"])this.setSelectionRange(id,new_sel["end"],new_sel["end"]); -else this.setSelectionRange(id,old_sel["start"]+open_tag.length,old_sel["start"]+open_tag.length);},hide:function(id){var fs=window.frames,d=document,t=this,scrollTop,scrollLeft,span;if(d.getElementById(id)&&!t.hidden[id]){t.hidden[id]={};t.hidden[id]["selectionRange"]=t.getSelectionRange(id);if(d.getElementById(id).style.display!="none"){t.hidden[id]["scrollTop"]=d.getElementById(id).scrollTop;t.hidden[id]["scrollLeft"]=d.getElementById(id).scrollLeft;}if(fs["frame_"+id]){t.hidden[id]["toggle"]=eAs[id]["displayed"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;} -else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}t.hidden[id]["scrollTop"]=scrollTop;t.hidden[id]["scrollLeft"]=scrollLeft;if(eAs[id]["displayed"]==true)eAL.toggle_off(id);}span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='none';}d.getElementById(id).style.display="none";}},show:function(id){var fs=window.frames,d=document,t=this,span;if((elem=d.getElementById(id))&&t.hidden[id]){elem.style.display="inline";elem.scrollTop=t.hidden[id]["scrollTop"];elem.scrollLeft=t.hidden[id]["scrollLeft"];span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='inline';}if(fs["frame_"+id]){elem.style.display="inline";if(t.hidden[id]["toggle"]==true)eAL.toggle_on(id);scrollTop=t.hidden[id]["scrollTop"];scrollLeft=t.hidden[id]["scrollLeft"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;} -else{elem.scrollTop=scrollTop;elem.scrollLeft=scrollLeft;}}sel=t.hidden[id]["selectionRange"];t.setSelectionRange(id,sel["start"],sel["end"]);delete t.hidden[id];}},getCurrentFile:function(id){return this.execCommand(id,'get_file',this.execCommand(id,'curr_file'));},getFile:function(id,file_id){return this.execCommand(id,'get_file',file_id);},getAllFiles:function(id){return this.execCommand(id,'get_all_files()');},openFile:function(id,file_infos){return this.execCommand(id,'open_file',file_infos);},closeFile:function(id,file_id){return this.execCommand(id,'close_file',file_id);},setFileEditedMode:function(id,file_id,to){var reg1,reg2;reg1=new RegExp('\\\\','g');reg2=new RegExp('"','g');return this.execCommand(id,'set_file_edited_mode("'+file_id.replace(reg1,'\\\\').replace(reg2,'\\"')+'",'+to+')');},execCommand:function(id,cmd,fct_param){switch(cmd){case "EA_init":if(eAs[id]['settings']["EA_init_callback"].length>0)eval(eAs[id]['settings']["EA_init_callback"]+"('"+id+"');");break;case "EA_delete":if(eAs[id]['settings']["EA_delete_callback"].length>0)eval(eAs[id]['settings']["EA_delete_callback"]+"('"+id+"');");break;case "EA_submit":if(eAs[id]['settings']["submit_callback"].length>0)eval(eAs[id]['settings']["submit_callback"]+"('"+id+"');");break;}if(window.frames["frame_"+id]&&window.frames["frame_"+id].editArea){if(fct_param!=undefined)return eval('window.frames["frame_'+id+'"].editArea.'+cmd+'(fct_param);'); -else return eval('window.frames["frame_'+id+'"].editArea.'+cmd+';');}return false;}};var eAL=new EAL();var eAs={}; function getAttribute(elm,aName){var aValue,taName,i;try{aValue=elm.getAttribute(aName);}catch(exept){}if(! aValue){for(i=0;i < elm.attributes.length;i++){taName=elm.attributes[i] .name.toLowerCase();if(taName==aName){aValue=elm.attributes[i] .value;return aValue;}}}return aValue;};function setAttribute(elm,attr,val){if(attr=="class"){elm.setAttribute("className",val);elm.setAttribute("class",val);} -else{elm.setAttribute(attr,val);}};function getChildren(elem,elem_type,elem_attribute,elem_attribute_match,option,depth){if(!option)var option="single";if(!depth)var depth=-1;if(elem){var children=elem.childNodes;var result=null;var results=[];for(var x=0;x<children.length;x++){strTagName=new String(children[x].tagName);children_class="?";if(strTagName!="undefined"){child_attribute=getAttribute(children[x],elem_attribute);if((strTagName.toLowerCase()==elem_type.toLowerCase()||elem_type=="")&&(elem_attribute==""||child_attribute==elem_attribute_match)){if(option=="all"){results.push(children[x]);} -else{return children[x];}}if(depth!=0){result=getChildren(children[x],elem_type,elem_attribute,elem_attribute_match,option,depth-1);if(option=="all"){if(result.length>0){results=results.concat(result);}} -else if(result!=null){return result;}}}}if(option=="all")return results;}return null;};function isChildOf(elem,parent){if(elem){if(elem==parent)return true;while(elem.parentNode !='undefined'){return isChildOf(elem.parentNode,parent);}}return false;};function getMouseX(e){if(e!=null&&typeof(e.pageX)!="undefined"){return e.pageX;} -else{return(e!=null?e.x:event.x)+document.documentElement.scrollLeft;}};function getMouseY(e){if(e!=null&&typeof(e.pageY)!="undefined"){return e.pageY;} -else{return(e!=null?e.y:event.y)+document.documentElement.scrollTop;}};function calculeOffsetLeft(r){return calculeOffset(r,"offsetLeft")};function calculeOffsetTop(r){return calculeOffset(r,"offsetTop")};function calculeOffset(element,attr){var offset=0;while(element){offset+=element[attr];element=element.offsetParent}return offset;};function get_css_property(elem,prop){if(document.defaultView){return document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop);} -else if(elem.currentStyle){var prop=prop.replace(/-\D/gi,function(sMatch){return sMatch.charAt(sMatch.length-1).toUpperCase();});return elem.currentStyle[prop];} -else return null;}var _mCE;function start_move_element(e,id,frame){var elem_id=(e.target||e.srcElement).id;if(id)elem_id=id;if(!frame)frame=window;if(frame.event)e=frame.event;_mCE=frame.document.getElementById(elem_id);_mCE.frame=frame;frame.document.onmousemove=move_element;frame.document.onmouseup=end_move_element;mouse_x=getMouseX(e);mouse_y=getMouseY(e);_mCE.start_pos_x=mouse_x-(_mCE.style.left.replace("px","")||calculeOffsetLeft(_mCE));_mCE.start_pos_y=mouse_y-(_mCE.style.top.replace("px","")||calculeOffsetTop(_mCE));return false;};function end_move_element(e){_mCE.frame.document.onmousemove="";_mCE.frame.document.onmouseup="";_mCE=null;};function move_element(e){var newTop,newLeft,maxLeft;if(_mCE.frame&&_mCE.frame.event)e=_mCE.frame.event;newTop=getMouseY(e)-_mCE.start_pos_y;newLeft=getMouseX(e)-_mCE.start_pos_x;maxLeft=_mCE.frame.document.body.offsetWidth-_mCE.offsetWidth;max_top=_mCE.frame.document.body.offsetHeight-_mCE.offsetHeight;newTop=Math.min(Math.max(0,newTop),max_top);newLeft=Math.min(Math.max(0,newLeft),maxLeft);_mCE.style.top=newTop+"px";_mCE.style.left=newLeft+"px";return false;};var nav=eAL.nav;function getSelectionRange(textarea){return{"start":textarea.selectionStart,"end":textarea.selectionEnd};};function setSelectionRange(t,start,end){t.focus();start=Math.max(0,Math.min(t.value.length,start));end=Math.max(start,Math.min(t.value.length,end));if(this.isOpera&&this.isOpera < 9.6){t.selectionEnd=1;t.selectionStart=0;t.selectionEnd=1;t.selectionStart=0;}t.selectionStart=start;t.selectionEnd=end;if(isIE)set_IE_selection(t);};function get_IE_selection(t){var d=document,div,range,stored_range,elem,scrollTop,relative_top,line_start,line_nb,range_start,range_end,tab;if(t&&t.focused){if(!t.ea_line_height){div=d.createElement("div");div.style.fontFamily=get_css_property(t,"font-family");div.style.fontSize=get_css_property(t,"font-size");div.style.visibility="hidden";div.innerHTML="0";d.body.appendChild(div);t.ea_line_height=div.offsetHeight;d.body.removeChild(div);}range=d.selection.createRange();try{stored_range=range.duplicate();stored_range.moveToElementText(t);stored_range.setEndPoint('EndToEnd',range);if(stored_range.parentElement()==t){elem=t;scrollTop=0;while(elem.parentNode){scrollTop+=elem.scrollTop;elem=elem.parentNode;}relative_top=range.offsetTop-calculeOffsetTop(t)+scrollTop;line_start=Math.round((relative_top / t.ea_line_height)+1);line_nb=Math.round(range.boundingHeight / t.ea_line_height);range_start=stored_range.text.length-range.text.length;tab=t.value.substr(0,range_start).split("\n");range_start+=(line_start-tab.length)*2;t.selectionStart=range_start;range_end=t.selectionStart+range.text.length;tab=t.value.substr(0,range_start+range.text.length).split("\n");range_end+=(line_start+line_nb-1-tab.length)*2;t.selectionEnd=range_end;}}catch(e){}}setTimeout("get_IE_selection(document.getElementById('"+t.id+"'));",50);};function IE_textarea_focus(){event.srcElement.focused=true;}function IE_textarea_blur(){event.srcElement.focused=false;}function set_IE_selection(t){var nbLineStart,nbLineStart,nbLineEnd,range;if(!window.closed){nbLineStart=t.value.substr(0,t.selectionStart).split("\n").length-1;nbLineEnd=t.value.substr(0,t.selectionEnd).split("\n").length-1;try{range=document.selection.createRange();range.moveToElementText(t);range.setEndPoint('EndToStart',range);range.moveStart('character',t.selectionStart-nbLineStart);range.moveEnd('character',t.selectionEnd-nbLineEnd-(t.selectionStart-nbLineStart));range.select();}catch(e){}}};eAL.waiting_loading["elements_functions.js"]="loaded"; - EAL.prototype.start_resize_area=function(){var d=document,a,div,width,height,father;d.onmouseup=eAL.end_resize_area;d.onmousemove=eAL.resize_area;eAL.toggle(eAL.resize["id"]);a=eAs[eAL.resize["id"]]["textarea"];div=d.getElementById("edit_area_resize");if(!div){div=d.createElement("div");div.id="edit_area_resize";div.style.border="dashed #888888 1px";}width=a.offsetWidth-2;height=a.offsetHeight-2;div.style.display="block";div.style.width=width+"px";div.style.height=height+"px";father=a.parentNode;father.insertBefore(div,a);a.style.display="none";eAL.resize["start_top"]=calculeOffsetTop(div);eAL.resize["start_left"]=calculeOffsetLeft(div);};EAL.prototype.end_resize_area=function(e){var d=document,div,a,width,height;d.onmouseup="";d.onmousemove="";div=d.getElementById("edit_area_resize");a=eAs[eAL.resize["id"]]["textarea"];width=Math.max(eAs[eAL.resize["id"]]["settings"]["min_width"],div.offsetWidth-4);height=Math.max(eAs[eAL.resize["id"]]["settings"]["min_height"],div.offsetHeight-4);if(eAL.isIE==6){width-=2;height-=2;}a.style.width=width+"px";a.style.height=height+"px";div.style.display="none";a.style.display="inline";a.selectionStart=eAL.resize["selectionStart"];a.selectionEnd=eAL.resize["selectionEnd"];eAL.toggle(eAL.resize["id"]);return false;};EAL.prototype.resize_area=function(e){var allow,newHeight,newWidth;allow=eAs[eAL.resize["id"]]["settings"]["allow_resize"];if(allow=="both"||allow=="y"){newHeight=Math.max(20,getMouseY(e)-eAL.resize["start_top"]);document.getElementById("edit_area_resize").style.height=newHeight+"px";}if(allow=="both"||allow=="x"){newWidth=Math.max(20,getMouseX(e)-eAL.resize["start_left"]);document.getElementById("edit_area_resize").style.width=newWidth+"px";}return false;};eAL.waiting_loading["resize_area.js"]="loaded"; - EAL.prototype.get_regexp=function(text_array){res="(\\b)(";for(i=0;i<text_array.length;i++){if(i>0)res+="|";res+=this.get_escaped_regexp(text_array[i]);}res+=")(\\b)";reg=new RegExp(res);return res;};EAL.prototype.get_escaped_regexp=function(str){return str.toString().replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\}|\{|\$|\^|\|)/g,"\\$1");};EAL.prototype.init_syntax_regexp=function(){var lang_style={};for(var lang in this.load_syntax){if(!this.syntax[lang]){this.syntax[lang]={};this.syntax[lang]["keywords_reg_exp"]={};this.keywords_reg_exp_nb=0;if(this.load_syntax[lang]['KEYWORDS']){param="g";if(this.load_syntax[lang]['KEYWORD_CASE_SENSITIVE']===false)param+="i";for(var i in this.load_syntax[lang]['KEYWORDS']){if(typeof(this.load_syntax[lang]['KEYWORDS'][i])=="function")continue;this.syntax[lang]["keywords_reg_exp"][i]=new RegExp(this.get_regexp(this.load_syntax[lang]['KEYWORDS'][i]),param);this.keywords_reg_exp_nb++;}}if(this.load_syntax[lang]['OPERATORS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['OPERATORS']){if(typeof(this.load_syntax[lang]['OPERATORS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['OPERATORS'][i]);nb++;}if(str.length>0)this.syntax[lang]["operators_reg_exp"]=new RegExp("("+str+")","g");}if(this.load_syntax[lang]['DELIMITERS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['DELIMITERS']){if(typeof(this.load_syntax[lang]['DELIMITERS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['DELIMITERS'][i]);nb++;}if(str.length>0)this.syntax[lang]["delimiters_reg_exp"]=new RegExp("("+str+")","g");}var syntax_trace=[];this.syntax[lang]["quotes"]={};var quote_tab=[];if(this.load_syntax[lang]['QUOTEMARKS']){for(var i in this.load_syntax[lang]['QUOTEMARKS']){if(typeof(this.load_syntax[lang]['QUOTEMARKS'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['QUOTEMARKS'][i]);this.syntax[lang]["quotes"][x]=x;quote_tab[quote_tab.length]="("+x+"(\\\\.|[^"+x+"])*(?:"+x+"|$))";syntax_trace.push(x);}}this.syntax[lang]["comments"]={};if(this.load_syntax[lang]['COMMENT_SINGLE']){for(var i in this.load_syntax[lang]['COMMENT_SINGLE']){if(typeof(this.load_syntax[lang]['COMMENT_SINGLE'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_SINGLE'][i]);quote_tab[quote_tab.length]="("+x+"(.|\\r|\\t)*(\\n|$))";syntax_trace.push(x);this.syntax[lang]["comments"][x]="\n";}}if(this.load_syntax[lang]['COMMENT_MULTI']){for(var i in this.load_syntax[lang]['COMMENT_MULTI']){if(typeof(this.load_syntax[lang]['COMMENT_MULTI'][i])=="function")continue;var start=this.get_escaped_regexp(i);var end=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_MULTI'][i]);quote_tab[quote_tab.length]="("+start+"(.|\\n|\\r)*?("+end+"|$))";syntax_trace.push(start);syntax_trace.push(end);this.syntax[lang]["comments"][i]=this.load_syntax[lang]['COMMENT_MULTI'][i];}}if(quote_tab.length>0)this.syntax[lang]["comment_or_quote_reg_exp"]=new RegExp("("+quote_tab.join("|")+")","gi");if(syntax_trace.length>0)this.syntax[lang]["syntax_trace_regexp"]=new RegExp("((.|\n)*?)(\\\\*("+syntax_trace.join("|")+"|$))","gmi");if(this.load_syntax[lang]['SCRIPT_DELIMITERS']){this.syntax[lang]["script_delimiters"]={};for(var i in this.load_syntax[lang]['SCRIPT_DELIMITERS']){if(typeof(this.load_syntax[lang]['SCRIPT_DELIMITERS'][i])=="function")continue;this.syntax[lang]["script_delimiters"][i]=this.load_syntax[lang]['SCRIPT_DELIMITERS'];}}this.syntax[lang]["custom_regexp"]={};if(this.load_syntax[lang]['REGEXPS']){for(var i in this.load_syntax[lang]['REGEXPS']){if(typeof(this.load_syntax[lang]['REGEXPS'][i])=="function")continue;var val=this.load_syntax[lang]['REGEXPS'][i];if(!this.syntax[lang]["custom_regexp"][val['execute']])this.syntax[lang]["custom_regexp"][val['execute']]={};this.syntax[lang]["custom_regexp"][val['execute']][i]={'regexp':new RegExp(val['search'],val['modifiers']),'class':val['class']};}}if(this.load_syntax[lang]['STYLES']){lang_style[lang]={};for(var i in this.load_syntax[lang]['STYLES']){if(typeof(this.load_syntax[lang]['STYLES'][i])=="function")continue;if(typeof(this.load_syntax[lang]['STYLES'][i])!="string"){for(var j in this.load_syntax[lang]['STYLES'][i]){lang_style[lang][j]=this.load_syntax[lang]['STYLES'][i][j];}} -else{lang_style[lang][i]=this.load_syntax[lang]['STYLES'][i];}}}var style="";for(var i in lang_style[lang]){if(lang_style[lang][i].length>0){style+="."+lang+" ."+i.toLowerCase()+" span{"+lang_style[lang][i]+"}\n";style+="."+lang+" ."+i.toLowerCase()+"{"+lang_style[lang][i]+"}\n";}}this.syntax[lang]["styles"]=style;}}};eAL.waiting_loading["reg_syntax.js"]="loaded"; -var editAreaLoader= eAL;var editAreas=eAs;EditAreaLoader=EAL;editAreaLoader.iframe_script= "<script type='text/javascript'> Ã EA(){var t=Á;t.error=Ì;t.inlinePopup=[{popup_id:\"area_search_replace\",icon_id:\"search\"},{popup_id:\"edit_area_help\",icon_id:\"help\"}];t.plugins={};t.line_number=0;È.eAL.set_browser_infos(t);if(t.isIE >=8)t.isIE=7;t.É={};t.last_text_to_highlight=\"\";t.last_hightlighted_text=\"\";t.syntax_list=[];t.allready_used_syntax={};t.check_line_selection_timer=50;t.ÂFocused=Ì;t.highlight_selection_line=null;t.previous=[];t.next=[];t.last_undo=\"\";t.files={};t.filesIdAssoc={};t.curr_file='';t.assocBracket={};t.revertAssocBracket={};t.assocBracket[\"(\"]=\")\";t.assocBracket[\"{\"]=\"}\";t.assocBracket[\"[\"]=\"]\";for(var index in t.assocBracket){t.revertAssocBracket[t.assocBracket[index]]=index;}t.is_editable=Ë;t.lineHeight=16;t.tab_nb_char=8;if(t.isOpera)t.tab_nb_char=6;t.is_tabbing=Ì;t.fullscreen={'isFull':Ì};t.isResizing=Ì;t.id=area_id;t.Å=eAs[t.id][\"Å\"];if((\"\"+t.Å['replace_tab_by_spaces']).match(/^[0-9]+$/)){t.tab_nb_char=t.Å['replace_tab_by_spaces'];t.tabulation=\"\";for(var i=0;i<t.tab_nb_char;i++)t.tabulation+=\" \";}\nelse{t.tabulation=\"\t\";}if(t.Å[\"syntax_selection_allow\"]&&t.Å[\"syntax_selection_allow\"].Æ>0)t.syntax_list=t.Å[\"syntax_selection_allow\"].replace(/ /g,\"\").split(\",\");if(t.Å['syntax'])t.allready_used_syntax[t.Å['syntax']]=Ë;};EA.Ä.init=Ã(){var t=Á,a,s=t.Å;t.Â=_$(\"Â\");t.container=_$(\"container\");t.result=_$(\"result\");t.content_highlight=_$(\"content_highlight\");t.selection_field=_$(\"selection_field\");t.selection_field_text=_$(\"selection_field_text\");t.processing_screen=_$(\"processing\");t.editor_area=_$(\"editor\");t.tab_browsing_area=_$(\"tab_browsing_area\");t.test_font_size=_$(\"test_font_size\");a=t.Â;if(!s['is_editable'])t.set_editable(Ì);t.set_show_line_colors(s['show_line_colors']);if(syntax_selec=_$(\"syntax_selection\")){for(var i=0;i<t.syntax_list.Æ;i++){var syntax=t.syntax_list[i];var option=document.createElement(\"option\");option.Ê=syntax;if(syntax==s['syntax'])option.selected=\"selected\";option.innerHTML=t.get_translation(\"syntax_\"+syntax,\"word\");syntax_selec.appendChild(option);}}spans=È.getChildren(_$(\"toolbar_1\"),\"span\",\"\",\"\",\"all\",-1);for(var i=0;i<spans.Æ;i++){id=spans[i].id.replace(/tmp_tool_(.*)/,\"$1\");if(id!=spans[i].id){for(var j in t.plugins){if(typeof(t.plugins[j].get_control_html)==\"Ã\"){html=t.plugins[j].get_control_html(id);if(html!=Ì){html=t.get_translation(html,\"template\");var new_span=document.createElement(\"span\");new_span.innerHTML=html;var father=spans[i].ÈNode;spans[i].ÈNode.replaceChild(new_span,spans[i]);break;}}}}}if(s[\"debug\"]){t.debug=È.document.getElementById(\"edit_area_debug_\"+t.id);}if(_$(\"redo\")!=null)t.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);if(typeof(È.eAL.syntax[s[\"syntax\"]])!=\"undefined\"){for(var i in È.eAL.syntax){if(typeof(È.eAL.syntax[i][\"Çs\"])!=\"undefined\"){t.add_Ç(È.eAL.syntax[i][\"Çs\"]);}}}if(t.isOpera)_$(\"editor\").onkeypress=keyDown;\nelse _$(\"editor\").onkeydown=keyDown;for(var i=0;i<t.inlinePopup.Æ;i++){if(t.isOpera)_$(t.inlinePopup[i][\"popup_id\"]).onkeypress=keyDown;\nelse _$(t.inlinePopup[i][\"popup_id\"]).onkeydown=keyDown;}if(s[\"allow_resize\"]==\"both\"||s[\"allow_resize\"]==\"x\"||s[\"allow_resize\"]==\"y\")t.allow_resize(Ë);È.eAL.toggle(t.id,\"on\");t.change_smooth_selection_mode(eA.smooth_selection);t.execCommand(\"change_highlight\",s[\"start_highlight\"]);t.set_font(eA.Å[\"font_family\"],eA.Å[\"font_size\"]);children=È.getChildren(document.body,\"\",\"selec\",\"none\",\"all\",-1);for(var i=0;i<children.Æ;i++){if(t.isIE)children[i].unselectable=Ë;\nelse children[i].onmousedown=Ã(){return Ì};}a.spellcheck=s[\"gecko_spellcheck\"];if(t.isFirefox >='3'){t.content_highlight.Ç.paddingLeft=\"1px\";t.selection_field.Ç.paddingLeft=\"1px\";t.selection_field_text.Ç.paddingLeft=\"1px\";}if(t.isIE&&t.isIE < 8){a.Ç.marginTop=\"-1px\";}if(t.isSafari){t.editor_area.Ç.position=\"absolute\";a.Ç.marginLeft=\"-3px\";if(t.isSafari < 3.2)a.Ç.marginTop=\"1px\";}È.eAL.add_event(t.result,\"click\",Ã(e){if((e.target||e.srcElement)==eA.result){eA.area_select(eA.Â.Ê.Æ,0);}});if(s['is_multi_files']!=Ì)t.open_file({'id':t.curr_file,'text':''});t.set_word_wrap(s['word_wrap']);setTimeout(\"eA.focus();eA.manage_size();eA.execCommand('EA_load');\",10);t.check_undo();t.check_line_selection(Ë);t.scroll_to_view();for(var i in t.plugins){if(typeof(t.plugins[i].onload)==\"Ã\")t.plugins[i].onload();}if(s['fullscreen']==Ë)t.toggle_full_screen(Ë);È.eAL.add_event(window,\"resize\",eA.update_size);È.eAL.add_event(È.window,\"resize\",eA.update_size);È.eAL.add_event(top.window,\"resize\",eA.update_size);È.eAL.add_event(window,\"unload\",Ã(){if(È.eAL){È.eAL.remove_event(È.window,\"resize\",eA.update_size);È.eAL.remove_event(top.window,\"resize\",eA.update_size);}if(eAs[eA.id]&&eAs[eA.id][\"displayed\"]){eA.execCommand(\"EA_unload\");}});};EA.Ä.update_size=Ã(){var d=document,pd=È.document,height,width,popup,maxLeft,maxTop;if(typeof eAs !='undefined'&&eAs[eA.id]&&eAs[eA.id][\"displayed\"]==Ë){if(eA.fullscreen['isFull']){pd.getElementById(\"frame_\"+eA.id).Ç.width=pd.getElementsByTagName(\"html\")[0].clientWidth+\"px\";pd.getElementById(\"frame_\"+eA.id).Ç.height=pd.getElementsByTagName(\"html\")[0].clientHeight+\"px\";}if(eA.tab_browsing_area.Ç.display=='block'&&(!eA.isIE||eA.isIE >=8)){eA.tab_browsing_area.Ç.height=\"0px\";eA.tab_browsing_area.Ç.height=(eA.result.offsetTop-eA.tab_browsing_area.offsetTop-1)+\"px\";}height=d.body.offsetHeight-eA.get_all_toolbar_height()-4;eA.result.Ç.height=height+\"px\";width=d.body.offsetWidth-2;eA.result.Ç.width=width+\"px\";for(i=0;i < eA.inlinePopup.Æ;i++){popup=_$(eA.inlinePopup[i][\"popup_id\"]);maxLeft=d.body.offsetWidth-popup.offsetWidth;maxTop=d.body.offsetHeight-popup.offsetHeight;if(popup.offsetTop > maxTop)popup.Ç.top=maxTop+\"px\";if(popup.offsetLeft > maxLeft)popup.Ç.left=maxLeft+\"px\";}eA.manage_size(Ë);eA.fixLinesHeight(eA.Â.Ê,0,-1);}};EA.Ä.manage_size=Ã(onlyOneTime){if(!eAs[Á.id])return Ì;if(eAs[Á.id][\"displayed\"]==Ë&&Á.ÂFocused){var area_height,resized=Ì;if(!Á.Å['word_wrap']){var area_width=Á.Â.scrollWidth;area_height=Á.Â.scrollHeight;if(Á.isOpera&&Á.isOpera < 9.6){area_width=10000;}if(Á.Â.previous_scrollWidth!=area_width){Á.container.Ç.width=area_width+\"px\";Á.Â.Ç.width=area_width+\"px\";Á.content_highlight.Ç.width=area_width+\"px\";Á.Â.previous_scrollWidth=area_width;resized=Ë;}}if(Á.Å['word_wrap']){newW=Á.Â.offsetWidth;if(Á.isFirefox||Á.isIE)newW-=2;if(Á.isSafari)newW-=6;Á.content_highlight.Ç.width=Á.selection_field_text.Ç.width=Á.selection_field.Ç.width=Á.test_font_size.Ç.width=newW+\"px\";}if(Á.isOpera||Á.isFirefox||Á.isSafari){area_height=Á.getLinePosTop(Á.É[\"nb_line\"]+1);}\nelse{area_height=Á.Â.scrollHeight;}if(Á.Â.previous_scrollHeight!=area_height){Á.container.Ç.height=(area_height+2)+\"px\";Á.Â.Ç.height=area_height+\"px\";Á.content_highlight.Ç.height=area_height+\"px\";Á.Â.previous_scrollHeight=area_height;resized=Ë;}if(Á.É[\"nb_line\"] >=Á.line_number){var newLines='',destDiv=_$(\"line_number\"),start=Á.line_number,end=Á.É[\"nb_line\"]+100;for(i=start+1;i < end;i++){newLines+='<div id=\"line_'+i+'\">'+i+\"</div>\";Á.line_number++;}destDiv.innerHTML=destDiv.innerHTML+newLines;Á.fixLinesHeight(Á.Â.Ê,start,-1);}Á.Â.scrollTop=\"0px\";Á.Â.scrollLeft=\"0px\";if(resized==Ë){Á.scroll_to_view();}}if(!onlyOneTime)setTimeout(\"eA.manage_size();\",100);};EA.Ä.execCommand=Ã(cmd,param){for(var i in Á.plugins){if(typeof(Á.plugins[i].execCommand)==\"Ã\"){if(!Á.plugins[i].execCommand(cmd,param))return;}}switch(cmd){case \"save\":if(Á.Å[\"save_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"save_callback\"]+\"('\"+Á.id+\"',eA.Â.Ê);\");break;case \"load\":if(Á.Å[\"load_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"load_callback\"]+\"('\"+Á.id+\"');\");break;case \"onchange\":if(Á.Å[\"change_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"change_callback\"]+\"('\"+Á.id+\"');\");break;case \"EA_load\":if(Á.Å[\"EA_load_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_load_callback\"]+\"('\"+Á.id+\"');\");break;case \"EA_unload\":if(Á.Å[\"EA_unload_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_unload_callback\"]+\"('\"+Á.id+\"');\");break;case \"toggle_on\":if(Á.Å[\"EA_toggle_on_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_toggle_on_callback\"]+\"('\"+Á.id+\"');\");break;case \"toggle_off\":if(Á.Å[\"EA_toggle_off_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_toggle_off_callback\"]+\"('\"+Á.id+\"');\");break;case \"re_sync\":if(!Á.do_highlight)break;case \"file_switch_on\":if(Á.Å[\"EA_file_switch_on_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_file_switch_on_callback\"]+\"(param);\");break;case \"file_switch_off\":if(Á.Å[\"EA_file_switch_off_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_file_switch_off_callback\"]+\"(param);\");break;case \"file_close\":if(Á.Å[\"EA_file_close_callback\"].Æ>0)return eval(\"È.\"+Á.Å[\"EA_file_close_callback\"]+\"(param);\");break;default:if(typeof(eval(\"eA.\"+cmd))==\"Ã\"){if(Á.Å[\"debug\"])eval(\"eA.\"+cmd+\"(param);\");\nelse try{eval(\"eA.\"+cmd+\"(param);\");}catch(e){};}}};EA.Ä.get_translation=Ã(word,mode){if(mode==\"template\")return È.eAL.translate(word,Á.Å[\"language\"],mode);\nelse return È.eAL.get_word_translation(word,Á.Å[\"language\"]);};EA.Ä.add_plugin=Ã(plug_name,plug_obj){for(var i=0;i<Á.Å[\"plugins\"].Æ;i++){if(Á.Å[\"plugins\"][i]==plug_name){Á.plugins[plug_name]=plug_obj;plug_obj.baseURL=È.eAL.baseURL+\"plugins/\"+plug_name+\"/\";if(typeof(plug_obj.init)==\"Ã\")plug_obj.init();}}};EA.Ä.load_css=Ã(url){try{link=document.createElement(\"link\");link.type=\"text/css\";link.rel=\"Çsheet\";link.media=\"all\";link.href=url;head=document.getElementsByTagName(\"head\");head[0].appendChild(link);}catch(e){document.write(\"<link href='\"+url+\"' rel='Çsheet' type='text/css' />\");}};EA.Ä.load_script=Ã(url){try{script=document.createElement(\"script\");script.type=\"text/javascript\";script.src=url;script.charset=\"UTF-8\";head=document.getElementsByTagName(\"head\");head[0].appendChild(script);}catch(e){document.write(\"<script type='text/javascript' src='\"+url+\"' charset=\\\"UTF-8\\\"><\"+\"/script>\");}};EA.Ä.add_lang=Ã(language,Ês){if(!È.eAL.lang[language])È.eAL.lang[language]={};for(var i in Ês)È.eAL.lang[language][i]=Ês[i];};Ã _$(id){return document.getElementById(id);};var eA=new EA();È.eAL.add_event(window,\"load\",init);Ã init(){setTimeout(\"eA.init();\",10);}; EA.Ä.focus=Ã(){Á.Â.focus();Á.ÂFocused=Ë;};EA.Ä.check_line_selection=Ã(timer_checkup){var changes,infos,new_top,new_width,i;var t1=t2=t2_1=t3=tLines=tend=new Date().getTime();if(!eAs[Á.id])return Ì;if(!Á.smooth_selection&&!Á.do_highlight){}\nelse if(Á.ÂFocused&&eAs[Á.id][\"displayed\"]==Ë&&Á.isResizing==Ì){infos=Á.get_selection_infos();changes=Á.checkTextEvolution(typeof(Á.É['full_text'])=='undefined' ? '':Á.É['full_text'],infos['full_text']);t2=new Date().getTime();if(Á.É[\"line_start\"] !=infos[\"line_start\"]||Á.É[\"line_nb\"] !=infos[\"line_nb\"]||infos[\"full_text\"] !=Á.É[\"full_text\"]||Á.reload_highlight||Á.É[\"selectionStart\"] !=infos[\"selectionStart\"]||Á.É[\"selectionEnd\"] !=infos[\"selectionEnd\"]||!timer_checkup){new_top=Á.getLinePosTop(infos[\"line_start\"]);new_width=Math.max(Á.Â.scrollWidth,Á.container.clientWidth-50);Á.selection_field.Ç.top=Á.selection_field_text.Ç.top=new_top+\"px\";if(!Á.Å['word_wrap']){Á.selection_field.Ç.width=Á.selection_field_text.Ç.width=Á.test_font_size.Ç.width=new_width+\"px\";}if(Á.do_highlight==Ë){var curr_text=infos[\"full_text\"].split(\"\\n\");var content=\"\";var start=Math.max(0,infos[\"line_start\"]-1);var end=Math.min(curr_text.Æ,infos[\"line_start\"]+infos[\"line_nb\"]-1);for(i=start;i< end;i++){content+=curr_text[i]+\"\\n\";}selLength=infos['selectionEnd']-infos['selectionStart'];content=content.substr(0,infos[\"curr_pos\"]-1)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1,selLength)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1+selLength);content='<span>'+content.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(\"\\r\\r\",'</span><strong>').replace(\"\\r\\r\",'</strong><span>')+'</span>';if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){Á.selection_field.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{Á.selection_field.innerHTML=content;}Á.selection_field_text.innerHTML=Á.selection_field.innerHTML;t2_1=new Date().getTime();if(Á.reload_highlight||(infos[\"full_text\"] !=Á.last_text_to_highlight&&(Á.É[\"line_start\"]!=infos[\"line_start\"]||Á.show_line_colors||Á.Å['word_wrap']||Á.É[\"line_nb\"]!=infos[\"line_nb\"]||Á.É[\"nb_line\"]!=infos[\"nb_line\"]))){Á.maj_highlight(infos);}}}t3=new Date().getTime();if(Á.Å['word_wrap']&&infos[\"full_text\"] !=Á.É[\"full_text\"]){if(changes.newText.split(\"\\n\").Æ==1&&Á.É['nb_line']&&infos['nb_line']==Á.É['nb_line']){Á.fixLinesHeight(infos['full_text'],changes.lineStart,changes.lineStart);}\nelse{Á.fixLinesHeight(infos['full_text'],changes.lineStart,-1);}}tLines=new Date().getTime();if(infos[\"line_start\"] !=Á.É[\"line_start\"]||infos[\"curr_pos\"] !=Á.É[\"curr_pos\"]||infos[\"full_text\"].Æ!=Á.É[\"full_text\"].Æ||Á.reload_highlight||!timer_checkup){var selec_char=infos[\"curr_line\"].charAt(infos[\"curr_pos\"]-1);var no_real_move=Ë;if(infos[\"line_nb\"]==1&&(Á.assocBracket[selec_char]||Á.revertAssocBracket[selec_char])){no_real_move=Ì;if(Á.findEndBracket(infos,selec_char)===Ë){_$(\"end_bracket\").Ç.visibility=\"visible\";_$(\"cursor_pos\").Ç.visibility=\"visible\";_$(\"cursor_pos\").innerHTML=selec_char;_$(\"end_bracket\").innerHTML=(Á.assocBracket[selec_char]||Á.revertAssocBracket[selec_char]);}\nelse{_$(\"end_bracket\").Ç.visibility=\"hidden\";_$(\"cursor_pos\").Ç.visibility=\"hidden\";}}\nelse{_$(\"cursor_pos\").Ç.visibility=\"hidden\";_$(\"end_bracket\").Ç.visibility=\"hidden\";}Á.displayToCursorPosition(\"cursor_pos\",infos[\"line_start\"],infos[\"curr_pos\"]-1,infos[\"curr_line\"],no_real_move);if(infos[\"line_nb\"]==1&&infos[\"line_start\"]!=Á.É[\"line_start\"])Á.scroll_to_view();}Á.É=infos;}tend=new Date().getTime();if(timer_checkup){setTimeout(\"eA.check_line_selection(Ë)\",Á.check_line_selection_timer);}};EA.Ä.get_selection_infos=Ã(){var sel={},start,end,len,str;Á.getIESelection();start=Á.Â.selectionStart;end=Á.Â.selectionEnd;if(Á.É[\"selectionStart\"]==start&&Á.É[\"selectionEnd\"]==end&&Á.É[\"full_text\"]==Á.Â.Ê){return Á.É;}if(Á.tabulation!=\"\t\"&&Á.Â.Ê.indexOf(\"\t\")!=-1){len=Á.Â.Ê.Æ;Á.Â.Ê=Á.replace_tab(Á.Â.Ê);start=end=start+(Á.Â.Ê.Æ-len);Á.area_select(start,0);}sel[\"selectionStart\"]=start;sel[\"selectionEnd\"]=end;sel[\"full_text\"]=Á.Â.Ê;sel[\"line_start\"]=1;sel[\"line_nb\"]=1;sel[\"curr_pos\"]=0;sel[\"curr_line\"]=\"\";sel[\"indexOfCursor\"]=0;sel[\"selec_direction\"]=Á.É[\"selec_direction\"];var splitTab=sel[\"full_text\"].split(\"\\n\");var nbLine=Math.max(0,splitTab.Æ);var nbChar=Math.max(0,sel[\"full_text\"].Æ-(nbLine-1));if(sel[\"full_text\"].indexOf(\"\\r\")!=-1)nbChar=nbChar-(nbLine-1);sel[\"nb_line\"]=nbLine;sel[\"nb_char\"]=nbChar;if(start>0){str=sel[\"full_text\"].substr(0,start);sel[\"curr_pos\"]=start-str.lastIndexOf(\"\\n\");sel[\"line_start\"]=Math.max(1,str.split(\"\\n\").Æ);}\nelse{sel[\"curr_pos\"]=1;}if(end>start){sel[\"line_nb\"]=sel[\"full_text\"].substring(start,end).split(\"\\n\").Æ;}sel[\"indexOfCursor\"]=start;sel[\"curr_line\"]=splitTab[Math.max(0,sel[\"line_start\"]-1)];if(sel[\"selectionStart\"]==Á.É[\"selectionStart\"]){if(sel[\"selectionEnd\"]>Á.É[\"selectionEnd\"])sel[\"selec_direction\"]=\"down\";\nelse if(sel[\"selectionEnd\"]==Á.É[\"selectionStart\"])sel[\"selec_direction\"]=Á.É[\"selec_direction\"];}\nelse if(sel[\"selectionStart\"]==Á.É[\"selectionEnd\"]&&sel[\"selectionEnd\"]>Á.É[\"selectionEnd\"]){sel[\"selec_direction\"]=\"down\";}\nelse{sel[\"selec_direction\"]=\"up\";}_$(\"nbLine\").innerHTML=nbLine;_$(\"nbChar\").innerHTML=nbChar;_$(\"linePos\").innerHTML=sel[\"line_start\"];_$(\"currPos\").innerHTML=sel[\"curr_pos\"];return sel;};EA.Ä.getIESelection=Ã(){var selectionStart,selectionEnd,range,stored_range;if(!Á.isIE)return Ì;if(Á.Å['word_wrap'])Á.Â.wrap='off';try{range=document.selection.createRange();stored_range=range.duplicate();stored_range.moveToElementText(Á.Â);stored_range.setEndPoint('EndToEnd',range);if(stored_range.ÈElement()!=Á.Â)throw \"invalid focus\";var scrollTop=Á.result.scrollTop+document.body.scrollTop;var relative_top=range.offsetTop-È.calculeOffsetTop(Á.Â)+scrollTop;var line_start=Math.round((relative_top / Á.lineHeight)+1);var line_nb=Math.round(range.boundingHeight / Á.lineHeight);selectionStart=stored_range.text.Æ-range.text.Æ;selectionStart+=(line_start-Á.Â.Ê.substr(0,selectionStart).split(\"\\n\").Æ)*2;selectionStart-=(line_start-Á.Â.Ê.substr(0,selectionStart).split(\"\\n\").Æ)* 2;selectionEnd=selectionStart+range.text.Æ;selectionEnd+=(line_start+line_nb-1-Á.Â.Ê.substr(0,selectionEnd).split(\"\\n\").Æ)*2;Á.Â.selectionStart=selectionStart;Á.Â.selectionEnd=selectionEnd;}catch(e){}if(Á.Å['word_wrap'])Á.Â.wrap='soft';};EA.Ä.setIESelection=Ã(){var a=Á.Â,nbLineStart,nbLineEnd,range;if(!Á.isIE)return Ì;nbLineStart=a.Ê.substr(0,a.selectionStart).split(\"\\n\").Æ-1;nbLineEnd=a.Ê.substr(0,a.selectionEnd).split(\"\\n\").Æ-1;range=document.selection.createRange();range.moveToElementText(a);range.setEndPoint('EndToStart',range);range.moveStart('character',a.selectionStart-nbLineStart);range.moveEnd('character',a.selectionEnd-nbLineEnd-(a.selectionStart-nbLineStart));range.select();};EA.Ä.checkTextEvolution=Ã(lastText,newText){var ch={},baseStep=200,cpt=0,end,step,tStart=new Date().getTime();end=Math.min(newText.Æ,lastText.Æ);step=baseStep;while(cpt<end&&step>=1){if(lastText.substr(cpt,step)==newText.substr(cpt,step)){cpt+=step;}\nelse{step=Math.floor(step/2);}}ch.posStart=cpt;ch.lineStart=newText.substr(0,ch.posStart).split(\"\\n\").Æ-1;cpt_last=lastText.Æ;cpt=newText.Æ;step=baseStep;while(cpt>=0&&cpt_last>=0&&step>=1){if(lastText.substr(cpt_last-step,step)==newText.substr(cpt-step,step)){cpt-=step;cpt_last-=step;}\nelse{step=Math.floor(step/2);}}ch.posNewEnd=cpt;ch.posLastEnd=cpt_last;if(ch.posNewEnd<=ch.posStart){if(lastText.Æ < newText.Æ){ch.posNewEnd=ch.posStart+newText.Æ-lastText.Æ;ch.posLastEnd=ch.posStart;}\nelse{ch.posLastEnd=ch.posStart+lastText.Æ-newText.Æ;ch.posNewEnd=ch.posStart;}}ch.newText=newText.substring(ch.posStart,ch.posNewEnd);ch.lastText=lastText.substring(ch.posStart,ch.posLastEnd);ch.lineNewEnd=newText.substr(0,ch.posNewEnd).split(\"\\n\").Æ-1;ch.lineLastEnd=lastText.substr(0,ch.posLastEnd).split(\"\\n\").Æ-1;ch.newTextLine=newText.split(\"\\n\").slice(ch.lineStart,ch.lineNewEnd+1).join(\"\\n\");ch.lastTextLine=lastText.split(\"\\n\").slice(ch.lineStart,ch.lineLastEnd+1).join(\"\\n\");return ch;};EA.Ä.tab_selection=Ã(){if(Á.is_tabbing)return;Á.is_tabbing=Ë;Á.getIESelection();var start=Á.Â.selectionStart;var end=Á.Â.selectionEnd;var insText=Á.Â.Ê.substring(start,end);var pos_start=start;var pos_end=end;if(insText.Æ==0){Á.Â.Ê=Á.Â.Ê.substr(0,start)+Á.tabulation+Á.Â.Ê.substr(end);pos_start=start+Á.tabulation.Æ;pos_end=pos_start;}\nelse{start=Math.max(0,Á.Â.Ê.substr(0,start).lastIndexOf(\"\\n\")+1);endText=Á.Â.Ê.substr(end);startText=Á.Â.Ê.substr(0,start);tmp=Á.Â.Ê.substring(start,end).split(\"\\n\");insText=Á.tabulation+tmp.join(\"\\n\"+Á.tabulation);Á.Â.Ê=startText+insText+endText;pos_start=start;pos_end=Á.Â.Ê.indexOf(\"\\n\",startText.Æ+insText.Æ);if(pos_end==-1)pos_end=Á.Â.Ê.Æ;}Á.Â.selectionStart=pos_start;Á.Â.selectionEnd=pos_end;if(Á.isIE){Á.setIESelection();setTimeout(\"eA.is_tabbing=Ì;\",100);}\nelse{Á.is_tabbing=Ì;}};EA.Ä.invert_tab_selection=Ã(){var t=Á,a=Á.Â;if(t.is_tabbing)return;t.is_tabbing=Ë;t.getIESelection();var start=a.selectionStart;var end=a.selectionEnd;var insText=a.Ê.substring(start,end);var pos_start=start;var pos_end=end;if(insText.Æ==0){if(a.Ê.substring(start-t.tabulation.Æ,start)==t.tabulation){a.Ê=a.Ê.substr(0,start-t.tabulation.Æ)+a.Ê.substr(end);pos_start=Math.max(0,start-t.tabulation.Æ);pos_end=pos_start;}}\nelse{start=a.Ê.substr(0,start).lastIndexOf(\"\\n\")+1;endText=a.Ê.substr(end);startText=a.Ê.substr(0,start);tmp=a.Ê.substring(start,end).split(\"\\n\");insText=\"\";for(i=0;i<tmp.Æ;i++){for(j=0;j<t.tab_nb_char;j++){if(tmp[i].charAt(0)==\"\t\"){tmp[i]=tmp[i].substr(1);j=t.tab_nb_char;}\nelse if(tmp[i].charAt(0)==\" \")tmp[i]=tmp[i].substr(1);}insText+=tmp[i];if(i<tmp.Æ-1)insText+=\"\\n\";}a.Ê=startText+insText+endText;pos_start=start;pos_end=a.Ê.indexOf(\"\\n\",startText.Æ+insText.Æ);if(pos_end==-1)pos_end=a.Ê.Æ;}a.selectionStart=pos_start;a.selectionEnd=pos_end;if(t.isIE){t.setIESelection();setTimeout(\"eA.is_tabbing=Ì;\",100);}\nelse t.is_tabbing=Ì;};EA.Ä.press_enter=Ã(){if(!Á.smooth_selection)return Ì;Á.getIESelection();var scrollTop=Á.result.scrollTop;var scrollLeft=Á.result.scrollLeft;var start=Á.Â.selectionStart;var end=Á.Â.selectionEnd;var start_last_line=Math.max(0,Á.Â.Ê.substring(0,start).lastIndexOf(\"\\n\")+1);var begin_line=Á.Â.Ê.substring(start_last_line,start).replace(/^([ \t]*).*/gm,\"$1\");var lineStart=Á.Â.Ê.substring(0,start).split(\"\\n\").Æ;if(begin_line==\"\\n\"||begin_line==\"\\r\"||begin_line.Æ==0){return Ì;}if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){begin_line=\"\\r\\n\"+begin_line;}\nelse{begin_line=\"\\n\"+begin_line;}Á.Â.Ê=Á.Â.Ê.substring(0,start)+begin_line+Á.Â.Ê.substring(end);Á.area_select(start+begin_line.Æ,0);if(Á.isIE){Á.result.scrollTop=scrollTop;Á.result.scrollLeft=scrollLeft;}return Ë;};EA.Ä.findEndBracket=Ã(infos,bracket){var start=infos[\"indexOfCursor\"];var normal_order=Ë;if(Á.assocBracket[bracket])endBracket=Á.assocBracket[bracket];\nelse if(Á.revertAssocBracket[bracket]){endBracket=Á.revertAssocBracket[bracket];normal_order=Ì;}var end=-1;var nbBracketOpen=0;for(var i=start;i<infos[\"full_text\"].Æ&&i>=0;){if(infos[\"full_text\"].charAt(i)==endBracket){nbBracketOpen--;if(nbBracketOpen<=0){end=i;break;}}\nelse if(infos[\"full_text\"].charAt(i)==bracket)nbBracketOpen++;if(normal_order)i++;\nelse i--;}if(end==-1)return Ì;var endLastLine=infos[\"full_text\"].substr(0,end).lastIndexOf(\"\\n\");if(endLastLine==-1)line=1;\nelse line=infos[\"full_text\"].substr(0,endLastLine).split(\"\\n\").Æ+1;var curPos=end-endLastLine-1;var endLineLength=infos[\"full_text\"].substring(end).split(\"\\n\")[0].Æ;Á.displayToCursorPosition(\"end_bracket\",line,curPos,infos[\"full_text\"].substring(endLastLine+1,end+endLineLength));return Ë;};EA.Ä.displayToCursorPosition=Ã(id,start_line,cur_pos,lineContent,no_real_move){var elem,dest,content,posLeft=0,posTop,fixPadding,topOffset,endElem;elem=Á.test_font_size;dest=_$(id);content=\"<span id='test_font_size_inner'>\"+lineContent.substr(0,cur_pos).replace(/&/g,\"&\").replace(/</g,\"<\")+\"</span><span id='endTestFont'>\"+lineContent.substr(cur_pos).replace(/&/g,\"&\").replace(/</g,\"<\")+\"</span>\";if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}endElem=_$('endTestFont');topOffset=endElem.offsetTop;fixPadding=parseInt(Á.content_highlight.Ç.paddingLeft.replace(\"px\",\"\"));posLeft=45+endElem.offsetLeft+(!isNaN(fixPadding)&&topOffset > 0 ? fixPadding:0);posTop=Á.getLinePosTop(start_line)+topOffset;if(Á.isIE&&cur_pos > 0&&endElem.offsetLeft==0){posTop+=Á.lineHeight;}if(no_real_move!=Ë){dest.Ç.top=posTop+\"px\";dest.Ç.left=posLeft+\"px\";}dest.cursor_top=posTop;dest.cursor_left=posLeft;};EA.Ä.getLinePosTop=Ã(start_line){var elem=_$('line_'+start_line),posTop=0;if(elem)posTop=elem.offsetTop;\nelse posTop=Á.lineHeight *(start_line-1);return posTop;};EA.Ä.getTextHeight=Ã(text){var t=Á,elem,height;elem=t.test_font_size;content=text.replace(/&/g,\"&\").replace(/</g,\"<\");if(t.isIE||(Á.isOpera&&Á.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}height=elem.offsetHeight;height=Math.max(1,Math.floor(elem.offsetHeight / Á.lineHeight))* Á.lineHeight;return height;};EA.Ä.fixLinesHeight=Ã(textValue,lineStart,lineEnd){var aText=textValue.split(\"\\n\");if(lineEnd==-1)lineEnd=aText.Æ-1;for(var i=Math.max(0,lineStart);i <=lineEnd;i++){if(elem=_$('line_'+(i+1))){elem.Ç.height=typeof(aText[i])!=\"undefined\" ? Á.getTextHeight(aText[i])+\"px\":Á.lineHeight;}}};EA.Ä.area_select=Ã(start,Æ){Á.Â.focus();start=Math.max(0,Math.min(Á.Â.Ê.Æ,start));end=Math.max(start,Math.min(Á.Â.Ê.Æ,start+Æ));if(Á.isIE){Á.Â.selectionStart=start;Á.Â.selectionEnd=end;Á.setIESelection();}\nelse{if(Á.isOpera&&Á.isOpera < 9.6){Á.Â.setSelectionRange(0,0);}Á.Â.setSelectionRange(start,end);}Á.check_line_selection();};EA.Ä.area_get_selection=Ã(){var text=\"\";if(document.selection){var range=document.selection.createRange();text=range.text;}\nelse{text=Á.Â.Ê.substring(Á.Â.selectionStart,Á.Â.selectionEnd);}return text;}; EA.Ä.replace_tab=Ã(text){return text.replace(/((\\n?)([^\t\\n]*)\t)/gi,eA.smartTab);};EA.Ä.smartTab=Ã(){val=\" \";return EA.Ä.smartTab.arguments[2]+EA.Ä.smartTab.arguments[3]+val.substr(0,eA.tab_nb_char-(EA.Ä.smartTab.arguments[3].Æ)%eA.tab_nb_char);};EA.Ä.show_waiting_screen=Ã(){width=Á.editor_area.offsetWidth;height=Á.editor_area.offsetHeight;if(!(Á.isIE&&Á.isIE<6)){width-=2;height-=2;}Á.processing_screen.Ç.display=\"block\";Á.processing_screen.Ç.width=width+\"px\";Á.processing_screen.Ç.height=height+\"px\";Á.waiting_screen_displayed=Ë;};EA.Ä.hide_waiting_screen=Ã(){Á.processing_screen.Ç.display=\"none\";Á.waiting_screen_displayed=Ì;};EA.Ä.add_Ç=Ã(Çs){if(Çs.Æ>0){newcss=document.createElement(\"Ç\");newcss.type=\"text/css\";newcss.media=\"all\";if(newcss.ÇSheet){newcss.ÇSheet.cssText=Çs;}\nelse{newcss.appendChild(document.createTextNode(Çs));}document.getElementsByTagName(\"head\")[0].appendChild(newcss);}};EA.Ä.set_font=Ã(family,size){var t=Á,a=Á.Â,s=Á.Å,elem_font,i,elem;var elems=[\"Â\",\"content_highlight\",\"cursor_pos\",\"end_bracket\",\"selection_field\",\"selection_field_text\",\"line_number\"];if(family&&family!=\"\")s[\"font_family\"]=family;if(size&&size>0)s[\"font_size\"]=size;if(t.isOpera&&t.isOpera < 9.6)s['font_family']=\"monospace\";if(elem_font=_$(\"area_font_size\")){for(i=0;i < elem_font.Æ;i++){if(elem_font.options[i].Ê&&elem_font.options[i].Ê==s[\"font_size\"])elem_font.options[i].selected=Ë;}}if(t.isFirefox){var nbTry=3;do{var div1=document.createElement('div'),text1=document.createElement('Â');var Çs={width:'40px',overflow:'scroll',zIndex:50,visibility:'hidden',fontFamily:s[\"font_family\"],fontSize:s[\"font_size\"]+\"pt\",lineHeight:t.lineHeight+\"px\",padding:'0',margin:'0',border:'none',whiteSpace:'nowrap'};var diff,changed=Ì;for(i in Çs){div1.Ç[ i ]=Çs[i];text1.Ç[ i ]=Çs[i];}text1.wrap='off';text1.setAttribute('wrap','off');t.container.appendChild(div1);t.container.appendChild(text1);div1.innerHTML=text1.Ê='azertyuiopqsdfghjklm';div1.innerHTML=text1.Ê=text1.Ê+'wxcvbn^p*ù$!:;,,';diff=text1.scrollWidth-div1.scrollWidth;if(Math.abs(diff)>=2){s[\"font_size\"]++;changed=Ë;}t.container.removeChild(div1);t.container.removeChild(text1);nbTry--;}while(changed&&nbTry > 0);}elem=t.test_font_size;elem.Ç.fontFamily=\"\"+s[\"font_family\"];elem.Ç.fontSize=s[\"font_size\"]+\"pt\";elem.innerHTML=\"0\";t.lineHeight=elem.offsetHeight;for(i=0;i<elems.Æ;i++){elem=_$(elems[i]);elem.Ç.fontFamily=s[\"font_family\"];elem.Ç.fontSize=s[\"font_size\"]+\"pt\";elem.Ç.lineHeight=t.lineHeight+\"px\";}t.add_Ç(\"pre{font-family:\"+s[\"font_family\"]+\"}\");if((t.isOpera&&t.isOpera < 9.6)||t.isIE >=8){var parNod=a.ÈNode,nxtSib=a.nextSibling,start=a.selectionStart,end=a.selectionEnd;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);t.area_select(start,end-start);}Á.focus();Á.update_size();Á.check_line_selection();};EA.Ä.change_font_size=Ã(){var size=_$(\"area_font_size\").Ê;if(size>0)Á.set_font(\"\",size);};EA.Ä.open_inline_popup=Ã(popup_id){Á.close_all_inline_popup();var popup=_$(popup_id);var editor=_$(\"editor\");for(var i=0;i<Á.inlinePopup.Æ;i++){if(Á.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(Á.inlinePopup[i][\"icon_id\"]);if(icon){Á.switchClassSticky(icon,'editAreaButtonSelected',Ë);break;}}}popup.Ç.height=\"auto\";popup.Ç.overflow=\"visible\";if(document.body.offsetHeight< popup.offsetHeight){popup.Ç.height=(document.body.offsetHeight-10)+\"px\";popup.Ç.overflow=\"auto\";}if(!popup.positionned){var new_left=editor.offsetWidth /2-popup.offsetWidth /2;var new_top=editor.offsetHeight /2-popup.offsetHeight /2;popup.Ç.left=new_left+\"px\";popup.Ç.top=new_top+\"px\";popup.positionned=Ë;}popup.Ç.visibility=\"visible\";};EA.Ä.close_inline_popup=Ã(popup_id){var popup=_$(popup_id);for(var i=0;i<Á.inlinePopup.Æ;i++){if(Á.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(Á.inlinePopup[i][\"icon_id\"]);if(icon){Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);break;}}}popup.Ç.visibility=\"hidden\";};EA.Ä.close_all_inline_popup=Ã(e){for(var i=0;i<Á.inlinePopup.Æ;i++){Á.close_inline_popup(Á.inlinePopup[i][\"popup_id\"]);}Á.Â.focus();};EA.Ä.show_help=Ã(){Á.open_inline_popup(\"edit_area_help\");};EA.Ä.new_document=Ã(){Á.Â.Ê=\"\";Á.area_select(0,0);};EA.Ä.get_all_toolbar_height=Ã(){var area=_$(\"editor\");var results=È.getChildren(area,\"div\",\"class\",\"area_toolbar\",\"all\",\"0\");var height=0;for(var i=0;i<results.Æ;i++){height+=results[i].offsetHeight;}return height;};EA.Ä.go_to_line=Ã(line){if(!line){var icon=_$(\"go_to_line\");if(icon !=null){Á.restoreClass(icon);Á.switchClassSticky(icon,'editAreaButtonSelected',Ë);}line=prompt(Á.get_translation(\"go_to_line_prompt\"));if(icon !=null)Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);}if(line&&line!=null&&line.search(/^[0-9]+$/)!=-1){var start=0;var lines=Á.Â.Ê.split(\"\\n\");if(line > lines.Æ)start=Á.Â.Ê.Æ;\nelse{for(var i=0;i<Math.min(line-1,lines.Æ);i++)start+=lines[i].Æ+1;}Á.area_select(start,0);}};EA.Ä.change_smooth_selection_mode=Ã(setTo){if(Á.do_highlight)return;if(setTo !=null){if(setTo===Ì)Á.smooth_selection=Ë;\nelse Á.smooth_selection=Ì;}var icon=_$(\"change_smooth_selection\");Á.Â.focus();if(Á.smooth_selection===Ë){Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);Á.smooth_selection=Ì;Á.selection_field.Ç.display=\"none\";_$(\"cursor_pos\").Ç.display=\"none\";_$(\"end_bracket\").Ç.display=\"none\";}\nelse{Á.switchClassSticky(icon,'editAreaButtonSelected',Ì);Á.smooth_selection=Ë;Á.selection_field.Ç.display=\"block\";_$(\"cursor_pos\").Ç.display=\"block\";_$(\"end_bracket\").Ç.display=\"block\";}};EA.Ä.scroll_to_view=Ã(show){var zone,lineElem;if(!Á.smooth_selection)return;zone=_$(\"result\");var cursor_pos_top=_$(\"cursor_pos\").cursor_top;if(show==\"bottom\"){cursor_pos_top+=Á.getLinePosTop(Á.É['line_start']+Á.É['line_nb']-1);}var max_height_visible=zone.clientHeight+zone.scrollTop;var miss_top=cursor_pos_top+Á.lineHeight-max_height_visible;if(miss_top>0){zone.scrollTop=zone.scrollTop+miss_top;}\nelse if(zone.scrollTop > cursor_pos_top){zone.scrollTop=cursor_pos_top;}var cursor_pos_left=_$(\"cursor_pos\").cursor_left;var max_width_visible=zone.clientWidth+zone.scrollLeft;var miss_left=cursor_pos_left+10-max_width_visible;if(miss_left>0){zone.scrollLeft=zone.scrollLeft+miss_left+50;}\nelse if(zone.scrollLeft > cursor_pos_left){zone.scrollLeft=cursor_pos_left;}\nelse if(zone.scrollLeft==45){zone.scrollLeft=0;}};EA.Ä.check_undo=Ã(only_once){if(!eAs[Á.id])return Ì;if(Á.ÂFocused&&eAs[Á.id][\"displayed\"]==Ë){var text=Á.Â.Ê;if(Á.previous.Æ<=1)Á.switchClassSticky(_$(\"undo\"),'editAreaButtonDisabled',Ë);if(!Á.previous[Á.previous.Æ-1]||Á.previous[Á.previous.Æ-1][\"text\"] !=text){Á.previous.push({\"text\":text,\"selStart\":Á.Â.selectionStart,\"selEnd\":Á.Â.selectionEnd});if(Á.previous.Æ > Á.Å[\"max_undo\"]+1)Á.previous.shift();}if(Á.previous.Æ >=2)Á.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',Ì);}if(!only_once)setTimeout(\"eA.check_undo()\",3000);};EA.Ä.undo=Ã(){if(Á.previous.Æ > 0){Á.getIESelection();Á.next.push({\"text\":Á.Â.Ê,\"selStart\":Á.Â.selectionStart,\"selEnd\":Á.Â.selectionEnd});var prev=Á.previous.pop();if(prev[\"text\"]==Á.Â.Ê&&Á.previous.Æ > 0)prev=Á.previous.pop();Á.Â.Ê=prev[\"text\"];Á.last_undo=prev[\"text\"];Á.area_select(prev[\"selStart\"],prev[\"selEnd\"]-prev[\"selStart\"]);Á.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',Ì);Á.resync_highlight(Ë);Á.check_file_changes();}};EA.Ä.redo=Ã(){if(Á.next.Æ > 0){var next=Á.next.pop();Á.previous.push(next);Á.Â.Ê=next[\"text\"];Á.last_undo=next[\"text\"];Á.area_select(next[\"selStart\"],next[\"selEnd\"]-next[\"selStart\"]);Á.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',Ì);Á.resync_highlight(Ë);Á.check_file_changes();}if(Á.next.Æ==0)Á.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);};EA.Ä.check_redo=Ã(){if(eA.next.Æ==0||eA.Â.Ê!=eA.last_undo){eA.next=[];eA.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);}\nelse{Á.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',Ì);}};EA.Ä.switchClass=Ã(element,class_name,lock_state){var lockChanged=Ì;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ë;}if(element !=null&&(lockChanged||!element.classLock)){element.oldClassName=element.className;element.className=class_name;}};EA.Ä.restoreAndSwitchClass=Ã(element,class_name){if(element !=null&&!element.classLock){Á.restoreClass(element);Á.switchClass(element,class_name);}};EA.Ä.restoreClass=Ã(element){if(element !=null&&element.oldClassName&&!element.classLock){element.className=element.oldClassName;element.oldClassName=null;}};EA.Ä.setClassLock=Ã(element,lock_state){if(element !=null)element.classLock=lock_state;};EA.Ä.switchClassSticky=Ã(element,class_name,lock_state){var lockChanged=Ì;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ë;}if(element !=null&&(lockChanged||!element.classLock)){element.className=class_name;element.oldClassName=class_name;}};EA.Ä.scroll_page=Ã(params){var dir=params[\"dir\"],shift_pressed=params[\"shift\"];var lines=Á.Â.Ê.split(\"\\n\");var new_pos=0,Æ=0,char_left=0,line_nb=0,curLine=0;var toScrollAmount=_$(\"result\").clientHeight-30;var nbLineToScroll=0,diff=0;if(dir==\"up\"){nbLineToScroll=Math.ceil(toScrollAmount / Á.lineHeight);for(i=Á.É[\"line_start\"];i-diff > Á.É[\"line_start\"]-nbLineToScroll;i--){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ Á.lineHeight);}}nbLineToScroll-=diff;if(Á.É[\"selec_direction\"]==\"up\"){for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]-nbLineToScroll,lines.Æ);line_nb++){new_pos+=lines[line_nb].Æ+1;}char_left=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]-1);if(shift_pressed)Æ=Á.É[\"selectionEnd\"]-new_pos-char_left;Á.area_select(new_pos+char_left,Æ);view=\"top\";}\nelse{view=\"bottom\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+Á.É[\"line_nb\"]-1-nbLineToScroll,lines.Æ);line_nb++){new_pos+=lines[line_nb].Æ+1;}char_left=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]-1);if(shift_pressed){start=Math.min(Á.É[\"selectionStart\"],new_pos+char_left);Æ=Math.max(new_pos+char_left,Á.É[\"selectionStart\"])-start;if(new_pos+char_left < Á.É[\"selectionStart\"])view=\"top\";}\nelse start=new_pos+char_left;Á.area_select(start,Æ);}}\nelse{var nbLineToScroll=Math.floor(toScrollAmount / Á.lineHeight);for(i=Á.É[\"line_start\"];i+diff < Á.É[\"line_start\"]+nbLineToScroll;i++){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ Á.lineHeight);}}nbLineToScroll-=diff;if(Á.É[\"selec_direction\"]==\"down\"){view=\"bottom\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+Á.É[\"line_nb\"]-2+nbLineToScroll,lines.Æ);line_nb++){if(line_nb==Á.É[\"line_start\"]-1)char_left=Á.É[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Æ+1;}if(shift_pressed){Æ=Math.abs(Á.É[\"selectionStart\"]-new_pos);Æ+=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]);Á.area_select(Math.min(Á.É[\"selectionStart\"],new_pos),Æ);}\nelse{Á.area_select(new_pos+char_left,0);}}\nelse{view=\"top\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+nbLineToScroll-1,lines.Æ,lines.Æ);line_nb++){if(line_nb==Á.É[\"line_start\"]-1)char_left=Á.É[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Æ+1;}if(shift_pressed){Æ=Math.abs(Á.É[\"selectionEnd\"]-new_pos-char_left);Æ+=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"])-char_left-1;Á.area_select(Math.min(Á.É[\"selectionEnd\"],new_pos+char_left),Æ);if(new_pos+char_left > Á.É[\"selectionEnd\"])view=\"bottom\";}\nelse{Á.area_select(new_pos+char_left,0);}}}Á.check_line_selection();Á.scroll_to_view(view);};EA.Ä.start_resize=Ã(e){È.eAL.resize[\"id\"]=eA.id;È.eAL.resize[\"start_x\"]=(e)? e.pageX:event.x+document.body.scrollLeft;È.eAL.resize[\"start_y\"]=(e)? e.pageY:event.y+document.body.scrollTop;if(eA.isIE){eA.Â.focus();eA.getIESelection();}È.eAL.resize[\"selectionStart\"]=eA.Â.selectionStart;È.eAL.resize[\"selectionEnd\"]=eA.Â.selectionEnd;È.eAL.start_resize_area();};EA.Ä.toggle_full_screen=Ã(to){var t=Á,p=È,a=t.Â,html,frame,selStart,selEnd,old,icon;if(typeof(to)==\"undefined\")to=!t.fullscreen['isFull'];old=t.fullscreen['isFull'];t.fullscreen['isFull']=to;icon=_$(\"fullscreen\");selStart=t.Â.selectionStart;selEnd=t.Â.selectionEnd;html=p.document.getElementsByTagName(\"html\")[0];frame=p.document.getElementById(\"frame_\"+t.id);if(to&&to!=old){t.fullscreen['old_overflow']=p.get_css_property(html,\"overflow\");t.fullscreen['old_height']=p.get_css_property(html,\"height\");t.fullscreen['old_width']=p.get_css_property(html,\"width\");t.fullscreen['old_scrollTop']=html.scrollTop;t.fullscreen['old_scrollLeft']=html.scrollLeft;t.fullscreen['old_zIndex']=p.get_css_property(frame,\"z-index\");if(t.isOpera){html.Ç.height=\"100%\";html.Ç.width=\"100%\";}html.Ç.overflow=\"hidden\";html.scrollTop=0;html.scrollLeft=0;frame.Ç.position=\"absolute\";frame.Ç.width=html.clientWidth+\"px\";frame.Ç.height=html.clientHeight+\"px\";frame.Ç.display=\"block\";frame.Ç.zIndex=\"999999\";frame.Ç.top=\"0px\";frame.Ç.left=\"0px\";frame.Ç.top=\"-\"+p.calculeOffsetTop(frame)+\"px\";frame.Ç.left=\"-\"+p.calculeOffsetLeft(frame)+\"px\";t.switchClassSticky(icon,'editAreaButtonSelected',Ì);t.fullscreen['allow_resize']=t.resize_allowed;t.allow_resize(Ì);if(t.isFirefox){p.eAL.execCommand(t.id,\"update_size();\");t.area_select(selStart,selEnd-selStart);t.scroll_to_view();t.focus();}\nelse{setTimeout(\"p.eAL.execCommand('\"+t.id+\"','update_size();');eA.focus();\",10);}}\nelse if(to!=old){frame.Ç.position=\"static\";frame.Ç.zIndex=t.fullscreen['old_zIndex'];if(t.isOpera){html.Ç.height=\"auto\";html.Ç.width=\"auto\";html.Ç.overflow=\"auto\";}\nelse if(t.isIE&&p!=top){html.Ç.overflow=\"auto\";}\nelse{html.Ç.overflow=t.fullscreen['old_overflow'];}html.scrollTop=t.fullscreen['old_scrollTop'];html.scrollLeft=t.fullscreen['old_scrollLeft'];p.eAL.hide(t.id);p.eAL.show(t.id);t.switchClassSticky(icon,'editAreaButtonNormal',Ì);if(t.fullscreen['allow_resize'])t.allow_resize(t.fullscreen['allow_resize']);if(t.isFirefox){t.area_select(selStart,selEnd-selStart);setTimeout(\"eA.scroll_to_view();\",10);}}};EA.Ä.allow_resize=Ã(allow){var resize=_$(\"resize_area\");if(allow){resize.Ç.visibility=\"visible\";È.eAL.add_event(resize,\"mouseup\",eA.start_resize);}\nelse{resize.Ç.visibility=\"hidden\";È.eAL.remove_event(resize,\"mouseup\",eA.start_resize);}Á.resize_allowed=allow;};EA.Ä.change_syntax=Ã(new_syntax,is_waiting){if(new_syntax==Á.Å['syntax'])return Ë;var founded=Ì;for(var i=0;i<Á.syntax_list.Æ;i++){if(Á.syntax_list[i]==new_syntax)founded=Ë;}if(founded==Ë){if(!È.eAL.load_syntax[new_syntax]){if(!is_waiting)È.eAL.load_script(È.eAL.baseURL+\"reg_syntax/\"+new_syntax+\".js\");setTimeout(\"eA.change_syntax('\"+new_syntax+\"',Ë);\",100);Á.show_waiting_screen();}\nelse{if(!Á.allready_used_syntax[new_syntax]){È.eAL.init_syntax_regexp();Á.add_Ç(È.eAL.syntax[new_syntax][\"Çs\"]);Á.allready_used_syntax[new_syntax]=Ë;}var sel=_$(\"syntax_selection\");if(sel&&sel.Ê!=new_syntax){for(var i=0;i<sel.Æ;i++){if(sel.options[i].Ê&&sel.options[i].Ê==new_syntax)sel.options[i].selected=Ë;}}Á.Å['syntax']=new_syntax;Á.resync_highlight(Ë);Á.hide_waiting_screen();return Ë;}}return Ì;};EA.Ä.set_editable=Ã(is_editable){if(is_editable){document.body.className=\"\";Á.Â.readOnly=Ì;Á.is_editable=Ë;}\nelse{document.body.className=\"non_editable\";Á.Â.readOnly=Ë;Á.is_editable=Ì;}if(eAs[Á.id][\"displayed\"]==Ë)Á.update_size();};EA.Ä.toggle_word_wrap=Ã(){Á.set_word_wrap(!Á.Å['word_wrap']);};EA.Ä.set_word_wrap=Ã(to){var t=Á,a=t.Â;if(t.isOpera){Á.Å['word_wrap']=Ì;t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonDisabled',Ë);return Ì;}if(to){wrap_mode='soft';Á.container.className+=' word_wrap';Á.container.Ç.width=\"\";Á.content_highlight.Ç.width=\"\";a.Ç.width=\"100%\";if(t.isIE&&t.isIE < 7){a.Ç.width=(a.offsetWidth-5)+\"px\";}t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonSelected',Ì);}\nelse{wrap_mode='off';Á.container.className=Á.container.className.replace(/word_wrap/g,'');t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonNormal',Ë);}Á.Â.previous_scrollWidth='';Á.Â.previous_scrollHeight='';a.wrap=wrap_mode;a.setAttribute('wrap',wrap_mode);if(!Á.isIE){var start=a.selectionStart,end=a.selectionEnd;var parNod=a.ÈNode,nxtSib=a.nextSibling;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);Á.area_select(start,end-start);}Á.Å['word_wrap']=to;Á.focus();Á.update_size();Á.check_line_selection();};EA.Ä.open_file=Ã(Å){if(Å['id']!=\"undefined\"){var id=Å['id'];var new_file={};new_file['id']=id;new_file['title']=id;new_file['text']=\"\";new_file['É']=\"\";new_file['last_text_to_highlight']=\"\";new_file['last_hightlighted_text']=\"\";new_file['previous']=[];new_file['next']=[];new_file['last_undo']=\"\";new_file['smooth_selection']=Á.Å['smooth_selection'];new_file['do_highlight']=Á.Å['start_highlight'];new_file['syntax']=Á.Å['syntax'];new_file['scroll_top']=0;new_file['scroll_left']=0;new_file['selection_start']=0;new_file['selection_end']=0;new_file['edited']=Ì;new_file['font_size']=Á.Å[\"font_size\"];new_file['font_family']=Á.Å[\"font_family\"];new_file['word_wrap']=Á.Å[\"word_wrap\"];new_file['toolbar']={'links':{},'selects':{}};new_file['compare_edited_text']=new_file['text'];Á.files[id]=new_file;Á.update_file(id,Å);Á.files[id]['compare_edited_text']=Á.files[id]['text'];var html_id='tab_file_'+encodeURIComponent(id);Á.filesIdAssoc[html_id]=id;Á.files[id]['html_id']=html_id;if(!_$(Á.files[id]['html_id'])&&id!=\"\"){Á.tab_browsing_area.Ç.display=\"block\";var elem=document.createElement('li');elem.id=Á.files[id]['html_id'];var close=\"<img src=\\\"\"+È.eAL.baseURL+\"images/close.gif\\\" title=\\\"\"+Á.get_translation('close_tab','word')+\"\\\" onclick=\\\"eA.execCommand('close_file',eA.filesIdAssoc['\"+html_id+\"']);return Ì;\\\" class=\\\"hidden\\\" onmouseover=\\\"Á.className=''\\\" onmouseout=\\\"Á.className='hidden'\\\" />\";elem.innerHTML=\"<a onclick=\\\"javascript:eA.execCommand('switch_to_file',eA.filesIdAssoc['\"+html_id+\"']);\\\" selec=\\\"none\\\"><b><span><strong class=\\\"edited\\\">*</strong>\"+Á.files[id]['title']+close+\"</span></b></a>\";_$('tab_browsing_list').appendChild(elem);var elem=document.createElement('text');Á.update_size();}if(id!=\"\")Á.execCommand('file_open',Á.files[id]);Á.switch_to_file(id,Ë);return Ë;}\nelse return Ì;};EA.Ä.close_file=Ã(id){if(Á.files[id]){Á.save_file(id);if(Á.execCommand('file_close',Á.files[id])!==Ì){var li=_$(Á.files[id]['html_id']);li.ÈNode.removeChild(li);if(id==Á.curr_file){var next_file=\"\";var is_next=Ì;for(var i in Á.files){if(is_next){next_file=i;break;}\nelse if(i==id)is_next=Ë;\nelse next_file=i;}Á.switch_to_file(next_file);}delete(Á.files[id]);Á.update_size();}}};EA.Ä.save_file=Ã(id){var t=Á,save,a_links,a_selects,save_butt,img,i;if(t.files[id]){var save=t.files[id];save['É']=t.É;save['last_text_to_highlight']=t.last_text_to_highlight;save['last_hightlighted_text']=t.last_hightlighted_text;save['previous']=t.previous;save['next']=t.next;save['last_undo']=t.last_undo;save['smooth_selection']=t.smooth_selection;save['do_highlight']=t.do_highlight;save['syntax']=t.Å['syntax'];save['text']=t.Â.Ê;save['scroll_top']=t.result.scrollTop;save['scroll_left']=t.result.scrollLeft;save['selection_start']=t.É[\"selectionStart\"];save['selection_end']=t.É[\"selectionEnd\"];save['font_size']=t.Å[\"font_size\"];save['font_family']=t.Å[\"font_family\"];save['word_wrap']=t.Å[\"word_wrap\"];save['toolbar']={'links':{},'selects':{}};a_links=_$(\"toolbar_1\").getElementsByTagName(\"a\");for(i=0;i<a_links.Æ;i++){if(a_links[i].getAttribute('fileSpecific')=='yes'){save_butt={};img=a_links[i].getElementsByTagName('img')[0];save_butt['classLock']=img.classLock;save_butt['className']=img.className;save_butt['oldClassName']=img.oldClassName;save['toolbar']['links'][a_links[i].id]=save_butt;}}a_selects=_$(\"toolbar_1\").getElementsByTagName(\"select\");for(i=0;i<a_selects.Æ;i++){if(a_selects[i].getAttribute('fileSpecific')=='yes'){save['toolbar']['selects'][a_selects[i].id]=a_selects[i].Ê;}}t.files[id]=save;return save;}return Ì;};EA.Ä.update_file=Ã(id,new_Ês){for(var i in new_Ês){Á.files[id][i]=new_Ês[i];}};EA.Ä.display_file=Ã(id){var t=Á,a=t.Â,new_file,a_lis,a_selects,a_links,a_options,i,j;if(id==''){a.readOnly=Ë;t.tab_browsing_area.Ç.display=\"none\";_$(\"no_file_selected\").Ç.display=\"block\";t.result.className=\"empty\";if(!t.files['']){t.open_file({id:''});}}\nelse if(typeof(t.files[id])=='undefined'){return Ì;}\nelse{t.result.className=\"\";a.readOnly=!t.is_editable;_$(\"no_file_selected\").Ç.display=\"none\";t.tab_browsing_area.Ç.display=\"block\";}t.check_redo(Ë);t.check_undo(Ë);t.curr_file=id;a_lis=t.tab_browsing_area.getElementsByTagName('li');for(i=0;i<a_lis.Æ;i++){if(a_lis[i].id==t.files[id]['html_id'])a_lis[i].className='selected';\nelse a_lis[i].className='';}new_file=t.files[id];a.Ê=new_file['text'];t.set_font(new_file['font_family'],new_file['font_size']);t.area_select(new_file['É']['selection_start'],new_file['É']['selection_end']-new_file['É']['selection_start']);t.manage_size(Ë);t.result.scrollTop=new_file['scroll_top'];t.result.scrollLeft=new_file['scroll_left'];t.previous=new_file['previous'];t.next=new_file['next'];t.last_undo=new_file['last_undo'];t.check_redo(Ë);t.check_undo(Ë);t.execCommand(\"change_highlight\",new_file['do_highlight']);t.execCommand(\"change_syntax\",new_file['syntax']);t.execCommand(\"change_smooth_selection_mode\",new_file['smooth_selection']);t.execCommand(\"set_word_wrap\",new_file['word_wrap']);a_links=new_file['toolbar']['links'];for(i in a_links){if(img=_$(i).getElementsByTagName('img')[0]){img.classLock=a_links[i]['classLock'];img.className=a_links[i]['className'];img.oldClassName=a_links[i]['oldClassName'];}}a_selects=new_file['toolbar']['selects'];for(i in a_selects){a_options=_$(i).options;for(j=0;j<a_options.Æ;j++){if(a_options[j].Ê==a_selects[i])_$(i).options[j].selected=Ë;}}};EA.Ä.switch_to_file=Ã(file_to_show,force_refresh){if(file_to_show!=Á.curr_file||force_refresh){Á.save_file(Á.curr_file);if(Á.curr_file!='')Á.execCommand('file_switch_off',Á.files[Á.curr_file]);Á.display_file(file_to_show);if(file_to_show!='')Á.execCommand('file_switch_on',Á.files[file_to_show]);}};EA.Ä.get_file=Ã(id){if(id==Á.curr_file)Á.save_file(id);return Á.files[id];};EA.Ä.get_all_files=Ã(){tmp_files=Á.files;Á.save_file(Á.curr_file);if(tmp_files[''])delete(Á.files['']);return tmp_files;};EA.Ä.check_file_changes=Ã(){var id=Á.curr_file;if(Á.files[id]&&Á.files[id]['compare_edited_text']!=undefined){if(Á.files[id]['compare_edited_text'].Æ==Á.Â.Ê.Æ&&Á.files[id]['compare_edited_text']==Á.Â.Ê){if(Á.files[id]['edited']!=Ì)Á.set_file_edited_mode(id,Ì);}\nelse{if(Á.files[id]['edited']!=Ë)Á.set_file_edited_mode(id,Ë);}}};EA.Ä.set_file_edited_mode=Ã(id,to){if(Á.files[id]&&_$(Á.files[id]['html_id'])){var link=_$(Á.files[id]['html_id']).getElementsByTagName('a')[0];if(to==Ë){link.className='edited';}\nelse{link.className='';if(id==Á.curr_file)text=Á.Â.Ê;\nelse text=Á.files[id]['text'];Á.files[id]['compare_edited_text']=text;}Á.files[id]['edited']=to;}};EA.Ä.set_show_line_colors=Ã(new_Ê){Á.show_line_colors=new_Ê;if(new_Ê)Á.selection_field.className+=' show_colors';\nelse Á.selection_field.className=Á.selection_field.className.replace(/ show_colors/g,'');};var EA_keys={8:\"Retour arriere\",9:\"Tabulation\",12:\"Milieu(pave numerique)\",13:\"Entrer\",16:\"Shift\",17:\"Ctrl\",18:\"Alt\",19:\"Pause\",20:\"Verr Maj\",27:\"Esc\",32:\"Space\",33:\"Page up\",34:\"Page down\",35:\"End\",36:\"Begin\",37:\"Left\",38:\"Up\",39:\"Right\",40:\"Down\",44:\"Impr ecran\",45:\"Inser\",46:\"Suppr\",91:\"Menu Demarrer Windows / touche pomme Mac\",92:\"Menu Demarrer Windows\",93:\"Menu contextuel Windows\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"Verr Num\",145:\"Arret defil\"};Ã keyDown(e){if(!e){e=event;}for(var i in eA.plugins){if(typeof(eA.plugins[i].onkeydown)==\"Ã\"){if(eA.plugins[i].onkeydown(e)===Ì){if(eA.isIE)e.keyCode=0;return Ì;}}}var target_id=(e.target||e.srcElement).id;var use=Ì;if(EA_keys[e.keyCode])letter=EA_keys[e.keyCode];\nelse letter=String.fromCharCode(e.keyCode);var low_letter=letter.toLowerCase();if(letter==\"Page up\"&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"up\",\"shift\":ShiftPressed(e)});use=Ë;}\nelse if(letter==\"Page down\"&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"down\",\"shift\":ShiftPressed(e)});use=Ë;}\nelse if(eA.is_editable==Ì){return Ë;}\nelse if(letter==\"Tabulation\"&&target_id==\"Â\"&&!CtrlPressed(e)&&!AltPressed(e)){if(ShiftPressed(e))eA.execCommand(\"invert_tab_selection\");\nelse eA.execCommand(\"tab_selection\");use=Ë;if(eA.isOpera||(eA.isFirefox&&eA.isMac))setTimeout(\"eA.execCommand('focus');\",1);}\nelse if(letter==\"Entrer\"&&target_id==\"Â\"){if(eA.press_enter())use=Ë;}\nelse if(letter==\"Entrer\"&&target_id==\"area_search\"){eA.execCommand(\"area_search\");use=Ë;}\nelse if(letter==\"Esc\"){eA.execCommand(\"close_all_inline_popup\",e);use=Ë;}\nelse if(CtrlPressed(e)&&!AltPressed(e)&&!ShiftPressed(e)){switch(low_letter){case \"f\":eA.execCommand(\"area_search\");use=Ë;break;case \"r\":eA.execCommand(\"area_replace\");use=Ë;break;case \"q\":eA.execCommand(\"close_all_inline_popup\",e);use=Ë;break;case \"h\":eA.execCommand(\"change_highlight\");use=Ë;break;case \"g\":setTimeout(\"eA.execCommand('go_to_line');\",5);use=Ë;break;case \"e\":eA.execCommand(\"show_help\");use=Ë;break;case \"z\":use=Ë;eA.execCommand(\"undo\");break;case \"y\":use=Ë;eA.execCommand(\"redo\");break;default:break;}}if(eA.next.Æ > 0){setTimeout(\"eA.check_redo();\",10);}setTimeout(\"eA.check_file_changes();\",10);if(use){if(eA.isIE)e.keyCode=0;return Ì;}return Ë;};Ã AltPressed(e){if(window.event){return(window.event.altKey);}\nelse{if(e.modifiers)return(e.altKey||(e.modifiers % 2));\nelse return e.altKey;}};Ã CtrlPressed(e){if(window.event){return(window.event.ctrlKey);}\nelse{return(e.ctrlKey||(e.modifiers==2)||(e.modifiers==3)||(e.modifiers>5));}};Ã ShiftPressed(e){if(window.event){return(window.event.shiftKey);}\nelse{return(e.shiftKey||(e.modifiers>3));}}; EA.Ä.show_search=Ã(){if(_$(\"area_search_replace\").Ç.visibility==\"visible\"){Á.hidden_search();}\nelse{Á.open_inline_popup(\"area_search_replace\");var text=Á.area_get_selection();var search=text.split(\"\\n\")[0];_$(\"area_search\").Ê=search;_$(\"area_search\").focus();}};EA.Ä.hidden_search=Ã(){Á.close_inline_popup(\"area_search_replace\");};EA.Ä.area_search=Ã(mode){if(!mode)mode=\"search\";_$(\"area_search_msg\").innerHTML=\"\";var search=_$(\"area_search\").Ê;Á.Â.focus();Á.Â.ÂFocused=Ë;var infos=Á.get_selection_infos();var start=infos[\"selectionStart\"];var pos=-1;var pos_begin=-1;var Æ=search.Æ;if(_$(\"area_search_replace\").Ç.visibility!=\"visible\"){Á.show_search();return;}if(search.Æ==0){_$(\"area_search_msg\").innerHTML=Á.get_translation(\"search_field_empty\");return;}if(mode!=\"replace\"){if(_$(\"area_search_reg_exp\").checked)start++;\nelse start+=search.Æ;}if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);pos=infos[\"full_text\"].substr(start).search(reg);pos_begin=infos[\"full_text\"].search(reg);if(pos!=-1){pos+=start;Æ=infos[\"full_text\"].substr(start).match(reg)[0].Æ;}\nelse if(pos_begin!=-1){Æ=infos[\"full_text\"].match(reg)[0].Æ;}}\nelse{if(_$(\"area_search_match_case\").checked){pos=infos[\"full_text\"].indexOf(search,start);pos_begin=infos[\"full_text\"].indexOf(search);}\nelse{pos=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase(),start);pos_begin=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase());}}if(pos==-1&&pos_begin==-1){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+Á.get_translation(\"not_found\");return;}\nelse if(pos==-1&&pos_begin !=-1){begin=pos_begin;_$(\"area_search_msg\").innerHTML=Á.get_translation(\"restart_search_at_begin\");}\nelse begin=pos;if(mode==\"replace\"&&pos==infos[\"indexOfCursor\"]){var replace=_$(\"area_replace\").Ê;var new_text=\"\";if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);new_text=infos[\"full_text\"].substr(0,begin)+infos[\"full_text\"].substr(start).replace(reg,replace);}\nelse{new_text=infos[\"full_text\"].substr(0,begin)+replace+infos[\"full_text\"].substr(begin+Æ);}Á.Â.Ê=new_text;Á.area_select(begin,Æ);Á.area_search();}\nelse Á.area_select(begin,Æ);};EA.Ä.area_replace=Ã(){Á.area_search(\"replace\");};EA.Ä.area_replace_all=Ã(){var base_text=Á.Â.Ê;var search=_$(\"area_search\").Ê;var replace=_$(\"area_replace\").Ê;if(search.Æ==0){_$(\"area_search_msg\").innerHTML=Á.get_translation(\"search_field_empty\");return;}var new_text=\"\";var nb_change=0;if(_$(\"area_search_reg_exp\").checked){var opt=\"mg\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);nb_change=infos[\"full_text\"].match(reg).Æ;new_text=infos[\"full_text\"].replace(reg,replace);}\nelse{if(_$(\"area_search_match_case\").checked){var tmp_tab=base_text.split(search);nb_change=tmp_tab.Æ-1;new_text=tmp_tab.join(replace);}\nelse{var lower_Ê=base_text.toLowerCase();var lower_search=search.toLowerCase();var start=0;var pos=lower_Ê.indexOf(lower_search);while(pos!=-1){nb_change++;new_text+=Á.Â.Ê.substring(start,pos)+replace;start=pos+search.Æ;pos=lower_Ê.indexOf(lower_search,pos+1);}new_text+=Á.Â.Ê.substring(start);}}if(new_text==base_text){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+Á.get_translation(\"not_found\");}\nelse{Á.Â.Ê=new_text;_$(\"area_search_msg\").innerHTML=\"<strong>\"+nb_change+\"</strong> \"+Á.get_translation(\"occurrence_replaced\");setTimeout(\"eA.Â.focus();eA.Â.ÂFocused=Ë;\",100);}}; EA.Ä.change_highlight=Ã(change_to){if(Á.Å[\"syntax\"].Æ==0&&change_to==Ì){Á.switchClassSticky(_$(\"highlight\"),'editAreaButtonDisabled',Ë);Á.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ë);return Ì;}if(Á.do_highlight==change_to)return Ì;Á.getIESelection();var pos_start=Á.Â.selectionStart;var pos_end=Á.Â.selectionEnd;if(Á.do_highlight===Ë||change_to==Ì)Á.disable_highlight();\nelse Á.enable_highlight();Á.Â.focus();Á.Â.selectionStart=pos_start;Á.Â.selectionEnd=pos_end;Á.setIESelection();};EA.Ä.disable_highlight=Ã(displayOnly){var t=Á,a=t.Â,new_Obj,old_class,new_class;t.selection_field.innerHTML=\"\";t.selection_field_text.innerHTML=\"\";t.content_highlight.Ç.visibility=\"hidden\";new_Obj=t.content_highlight.cloneNode(Ì);new_Obj.innerHTML=\"\";t.content_highlight.ÈNode.insertBefore(new_Obj,t.content_highlight);t.content_highlight.ÈNode.removeChild(t.content_highlight);t.content_highlight=new_Obj;old_class=È.getAttribute(a,\"class\");if(old_class){new_class=old_class.replace(\"hidden\",\"\");È.setAttribute(a,\"class\",new_class);}a.Ç.backgroundColor=\"transÈ\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonNormal',Ë);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ë);t.do_highlight=Ì;t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonSelected',Ë);if(typeof(t.smooth_selection_before_highlight)!=\"undefined\"&&t.smooth_selection_before_highlight===Ì){t.change_smooth_selection_mode(Ì);}};EA.Ä.enable_highlight=Ã(){var t=Á,a=t.Â,new_class;t.show_waiting_screen();t.content_highlight.Ç.visibility=\"visible\";new_class=È.getAttribute(a,\"class\")+\" hidden\";È.setAttribute(a,\"class\",new_class);if(t.isIE)a.Ç.backgroundColor=\"#FFFFFF\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonSelected',Ì);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonNormal',Ì);t.smooth_selection_before_highlight=t.smooth_selection;if(!t.smooth_selection)t.change_smooth_selection_mode(Ë);t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonDisabled',Ë);t.do_highlight=Ë;t.resync_highlight();t.hide_waiting_screen();};EA.Ä.maj_highlight=Ã(infos){var debug_opti=\"\",tps_start=new Date().getTime(),tps_middle_opti=new Date().getTime();var t=Á,hightlighted_text,updated_highlight;var textToHighlight=infos[\"full_text\"],doSyntaxOpti=Ì,doHtmlOpti=Ì,stay_begin=\"\",stay_end=\"\",trace_new,trace_last;if(t.last_text_to_highlight==infos[\"full_text\"]&&t.resync_highlight!==Ë)return;if(t.reload_highlight===Ë){t.reload_highlight=Ì;}\nelse if(textToHighlight.Æ==0){textToHighlight=\"\\n \";}\nelse{changes=t.checkTextEvolution(t.last_text_to_highlight,textToHighlight);trace_new=t.get_syntax_trace(changes.newTextLine).replace(/\\r/g,'');trace_last=t.get_syntax_trace(changes.lastTextLine).replace(/\\r/g,'');doSyntaxOpti=(trace_new==trace_last);if(!doSyntaxOpti&&trace_new==\"\\n\"+trace_last&&/^[ \t\s]*\\n[ \t\s]*$/.test(changes.newText.replace(/\\r/g,''))&&changes.lastText==\"\"){doSyntaxOpti=Ë;}if(doSyntaxOpti){tps_middle_opti=new Date().getTime();stay_begin=t.last_hightlighted_text.split(\"\\n\").slice(0,changes.lineStart).join(\"\\n\");if(changes.lineStart>0)stay_begin+=\"\\n\";stay_end=t.last_hightlighted_text.split(\"\\n\").slice(changes.lineLastEnd+1).join(\"\\n\");if(stay_end.Æ>0)stay_end=\"\\n\"+stay_end;if(stay_begin.split('<span').Æ !=stay_begin.split('</span').Æ||stay_end.split('<span').Æ !=stay_end.split('</span').Æ){doSyntaxOpti=Ì;stay_end='';stay_begin='';}\nelse{if(stay_begin.Æ==0&&changes.posLastEnd==-1)changes.newTextLine+=\"\\n\";textToHighlight=changes.newTextLine;}}if(t.Å[\"debug\"]){var ch=changes;debug_opti=(doSyntaxOpti?\"Optimisation\":\"No optimisation\")+\" start:\"+ch.posStart+\"(\"+ch.lineStart+\")\"+\" end_new:\"+ch.posNewEnd+\"(\"+ch.lineNewEnd+\")\"+\" end_last:\"+ch.posLastEnd+\"(\"+ch.lineLastEnd+\")\"+\"\\nchanged_text:\"+ch.newText+\"=> trace:\"+trace_new+\"\\nchanged_last_text:\"+ch.lastText+\"=> trace:\"+trace_last+\"\\nchanged_line:\"+ch.newTextLine+\"\\nlast_changed_line:\"+ch.lastTextLine+\"\\nstay_begin:\"+stay_begin.slice(-100)+\"\\nstay_end:\"+stay_end.substr(0,100);+\"\\n\";}}tps_end_opti=new Date().getTime();updated_highlight=t.colorize_text(textToHighlight);tpsAfterReg=new Date().getTime();if(doSyntaxOpti){try{var replacedBloc,i,nbStart='',nbEnd='',newHtml,ÆOld,ÆNew;replacedBloc=t.last_hightlighted_text.substring(stay_begin.Æ,t.last_hightlighted_text.Æ-stay_end.Æ);ÆOld=replacedBloc.Æ;ÆNew=updated_highlight.Æ;for(i=0;i < ÆOld&&i < ÆNew&&replacedBloc.charAt(i)==updated_highlight.charAt(i);i++){}nbStart=i;for(i=0;i+nbStart < ÆOld&&i+nbStart < ÆNew&&replacedBloc.charAt(ÆOld-i-1)==updated_highlight.charAt(ÆNew-i-1);i++){}nbEnd=i;lastHtml=replacedBloc.substring(nbStart,ÆOld-nbEnd);newHtml=updated_highlight.substring(nbStart,ÆNew-nbEnd);if(newHtml.indexOf('<span')==-1&&newHtml.indexOf('</span')==-1&&lastHtml.indexOf('<span')==-1&&lastHtml.indexOf('</span')==-1){var beginStr,nbOpendedSpan,nbClosedSpan,nbUnchangedChars,span,textNode;doHtmlOpti=Ë;beginStr=t.last_hightlighted_text.substr(0,stay_begin.Æ+nbStart);nbOpendedSpan=beginStr.split('<span').Æ-1;nbClosedSpan=beginStr.split('</span').Æ-1;span=t.content_highlight.getElementsByTagName('span')[ nbOpendedSpan ];ÈSpan=span;maxStartOffset=maxEndOffset=0;if(nbOpendedSpan==nbClosedSpan){while(ÈSpan.ÈNode !=t.content_highlight&&ÈSpan.ÈNode.tagName !='PRE'){ÈSpan=ÈSpan.ÈNode;}}\nelse{maxStartOffset=maxEndOffset=beginStr.Æ+1;nbClosed=beginStr.substr(Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1))).split('</span').Æ-1;while(nbClosed > 0){nbClosed--;ÈSpan=ÈSpan.ÈNode;}while(ÈSpan.ÈNode !=t.content_highlight&&ÈSpan.ÈNode.tagName !='PRE'&&(tmpMaxStartOffset=Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1)))<(tmpMaxEndOffset=Math.max(0,beginStr.lastIndexOf('</span',maxEndOffset-1)))){maxStartOffset=tmpMaxStartOffset;maxEndOffset=tmpMaxEndOffset;}}if(ÈSpan.ÈNode==t.content_highlight||ÈSpan.ÈNode.tagName=='PRE'){maxStartOffset=Math.max(0,beginStr.indexOf('<span'));}if(maxStartOffset==beginStr.Æ){nbSubSpanBefore=0;}\nelse{lastEndPos=Math.max(0,beginStr.lastIndexOf('>',maxStartOffset));nbSubSpanBefore=beginStr.substr(lastEndPos).split('<span').Æ-1;}if(nbSubSpanBefore==0){textNode=ÈSpan.firstChild;}\nelse{lastSubSpan=ÈSpan.getElementsByTagName('span')[ nbSubSpanBefore-1 ];while(lastSubSpan.ÈNode !=ÈSpan){lastSubSpan=lastSubSpan.ÈNode;}if(lastSubSpan.nextSibling==null||lastSubSpan.nextSibling.nodeType !=3){textNode=document.createTextNode('');lastSubSpan.ÈNode.insertBefore(textNode,lastSubSpan.nextSibling);}\nelse{textNode=lastSubSpan.nextSibling;}}nbUnchangedChars=beginStr.Æ-Math.max(0,beginStr.lastIndexOf('>')+1);if(t.isIE){nbUnchangedChars-=(beginStr.substr(beginStr.Æ-nbUnchangedChars).split(\"\\n\").Æ-1);textNode.replaceData(nbUnchangedChars,lastHtml.replace(/\\n/g,'').Æ,newHtml.replace(/\\n/g,''));}\nelse{textNode.replaceData(nbUnchangedChars,lastHtml.Æ,newHtml);}}}catch(e){doHtmlOpti=Ì;}}tpsAfterOpti2=new Date().getTime();hightlighted_text=stay_begin+updated_highlight+stay_end;if(!doHtmlOpti){var new_Obj=t.content_highlight.cloneNode(Ì);if((t.isIE&&t.isIE < 8)||(t.isOpera&&t.isOpera < 9.6))new_Obj.innerHTML=\"<pre><span class='\"+t.Å[\"syntax\"]+\"'>\"+hightlighted_text+\"</span></pre>\";\nelse new_Obj.innerHTML=\"<span class='\"+t.Å[\"syntax\"]+\"'>\"+hightlighted_text+\"</span>\";t.content_highlight.ÈNode.replaceChild(new_Obj,t.content_highlight);t.content_highlight=new_Obj;}t.last_text_to_highlight=infos[\"full_text\"];t.last_hightlighted_text=hightlighted_text;tps3=new Date().getTime();if(t.Å[\"debug\"]){t.debug.Ê=\"Tps optimisation \"+(tps_end_opti-tps_start)+\" | tps reg exp:\"+(tpsAfterReg-tps_end_opti)+\" | tps opti HTML:\"+(tpsAfterOpti2-tpsAfterReg)+' '+(doHtmlOpti ? 'yes':'no')+\" | tps update highlight content:\"+(tps3-tpsAfterOpti2)+\" | tpsTotal:\"+(tps3-tps_start)+\"(\"+tps3+\")\\n\"+debug_opti;}};EA.Ä.resync_highlight=Ã(reload_now){Á.reload_highlight=Ë;Á.last_text_to_highlight=\"\";Á.focus();if(reload_now)Á.check_line_selection(Ì);}; EA.Ä.comment_or_quote=Ã(){var new_class=\"\",close_tag=\"\",sy,arg,i;sy=È.eAL.syntax[eA.current_code_lang];arg=EA.Ä.comment_or_quote.arguments[0];for(i in sy[\"quotes\"]){if(arg.indexOf(i)==0){new_class=\"quotesmarks\";close_tag=sy[\"quotes\"][i];}}if(new_class.Æ==0){for(var i in sy[\"comments\"]){if(arg.indexOf(i)==0){new_class=\"comments\";close_tag=sy[\"comments\"][i];}}}if(close_tag==\"\\n\"){return \"µ__\"+new_class+\"__µ\"+arg.replace(/(\\r?\\n)?$/m,\"µ_END_µ$1\");}\nelse{reg=new RegExp(È.eAL.get_escaped_regexp(close_tag)+\"$\",\"m\");if(arg.search(reg)!=-1)return \"µ__\"+new_class+\"__µ\"+arg+\"µ_END_µ\";\nelse return \"µ__\"+new_class+\"__µ\"+arg;}};EA.Ä.get_syntax_trace=Ã(text){if(Á.Å[\"syntax\"].Æ>0&&È.eAL.syntax[Á.Å[\"syntax\"]][\"syntax_trace_regexp\"])return text.replace(È.eAL.syntax[Á.Å[\"syntax\"]][\"syntax_trace_regexp\"],\"$3\");};EA.Ä.colorize_text=Ã(text){text=\" \"+text;if(Á.Å[\"syntax\"].Æ>0)text=Á.apply_syntax(text,Á.Å[\"syntax\"]);return text.substr(1).replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/µ_END_µ/g,\"</span>\").replace(/µ__([a-zA-Z0-9]+)__µ/g,\"<span class='$1'>\");};EA.Ä.apply_syntax=Ã(text,lang){var sy;Á.current_code_lang=lang;if(!È.eAL.syntax[lang])return text;sy=È.eAL.syntax[lang];if(sy[\"custom_regexp\"]['before']){for(var i in sy[\"custom_regexp\"]['before']){var convert=\"$1µ__\"+sy[\"custom_regexp\"]['before'][i]['class']+\"__µ$2µ_END_µ$3\";text=text.replace(sy[\"custom_regexp\"]['before'][i]['regexp'],convert);}}if(sy[\"comment_or_quote_reg_exp\"]){text=text.replace(sy[\"comment_or_quote_reg_exp\"],Á.comment_or_quote);}if(sy[\"keywords_reg_exp\"]){for(var i in sy[\"keywords_reg_exp\"]){text=text.replace(sy[\"keywords_reg_exp\"][i],'µ__'+i+'__µ$2µ_END_µ');}}if(sy[\"delimiters_reg_exp\"]){text=text.replace(sy[\"delimiters_reg_exp\"],'µ__delimiters__µ$1µ_END_µ');}if(sy[\"operators_reg_exp\"]){text=text.replace(sy[\"operators_reg_exp\"],'µ__operators__µ$1µ_END_µ');}if(sy[\"custom_regexp\"]['after']){for(var i in sy[\"custom_regexp\"]['after']){var convert=\"$1µ__\"+sy[\"custom_regexp\"]['after'][i]['class']+\"__µ$2µ_END_µ$3\";text=text.replace(sy[\"custom_regexp\"]['after'][i]['regexp'],convert);}}return text;};var editArea= eA;EditArea=EA;</script>".replace(/Á/g,'this').replace(/Â/g,'textarea').replace(/Ã/g,'function').replace(/Ä/g,'prototype').replace(/Å/g,'settings').replace(/Æ/g,'length').replace(/Ç/g,'style').replace(/È/g,'parent').replace(/É/g,'last_selection').replace(/Ê/g,'value').replace(/Ë/g,'true').replace(/Ì/g,'false'); -editAreaLoader.template= "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" > <head> <title>EditArea</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/> [__CSSRULES__] [__JSCODE__] </head> <body> <div id='editor'> <div class='area_toolbar' id='toolbar_1'>[__TOOLBAR__]</div> <div class='area_toolbar' id='tab_browsing_area'><ul id='tab_browsing_list' class='menu'> <li> </li> </ul></div> <div id='result'> <div id='no_file_selected'></div> <div id='container'> <div id='cursor_pos' class='edit_area_cursor'> </div> <div id='end_bracket' class='edit_area_cursor'> </div> <div id='selection_field'></div> <div id='line_number' selec='none'></div> <div id='content_highlight'></div> <div id='test_font_size'></div> <div id='selection_field_text'></div> <textarea id='textarea' wrap='off' onchange='editArea.execCommand(\"onchange\");' onfocus='javascript:editArea.textareaFocused=true;' onblur='javascript:editArea.textareaFocused=false;'> </textarea> </div> </div> <div class='area_toolbar' id='toolbar_2'> <table class='statusbar' cellspacing='0' cellpadding='0'> <tr> <td class='total' selec='none'>{$position}:</td> <td class='infos' selec='none'> {$line_abbr} <span id='linePos'>0</span>, {$char_abbr} <span id='currPos'>0</span> </td> <td class='total' selec='none'>{$total}:</td> <td class='infos' selec='none'> {$line_abbr} <span id='nbLine'>0</span>, {$char_abbr} <span id='nbChar'>0</span> </td> <td class='resize'> <span id='resize_area'><img src='[__BASEURL__]images/statusbar_resize.gif' alt='resize' selec='none'></span> </td> </tr> </table> </div> </div> <div id='processing'> <div id='processing_text'> {$processing} </div> </div> <div id='area_search_replace' class='editarea_popup'> <table cellspacing='2' cellpadding='0' style='width: 100%'> <tr> <td selec='none'>{$search}</td> <td><input type='text' id='area_search' /></td> <td id='close_area_search_replace'> <a onclick='Javascript:editArea.execCommand(\"hidden_search\")'><img selec='none' src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a><br /> </tr><tr> <td selec='none'>{$replace}</td> <td><input type='text' id='area_replace' /></td> <td><img id='move_area_search_replace' onmousedown='return parent.start_move_element(event,\"area_search_replace\", parent.frames[\"frame_\"+editArea.id]);' src='[__BASEURL__]images/move.gif' alt='{$move_popup}' title='{$move_popup}' /></td> </tr> </table> <div class='button'> <input type='checkbox' id='area_search_match_case' /><label for='area_search_match_case' selec='none'>{$match_case}</label> <input type='checkbox' id='area_search_reg_exp' /><label for='area_search_reg_exp' selec='none'>{$reg_exp}</label> <br /> <a onclick='Javascript:editArea.execCommand(\"area_search\")' selec='none'>{$find_next}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace\")' selec='none'>{$replace}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace_all\")' selec='none'>{$replace_all}</a><br /> </div> <div id='area_search_msg' selec='none'></div> </div> <div id='edit_area_help' class='editarea_popup'> <div class='close_popup'> <a onclick='Javascript:editArea.execCommand(\"close_all_inline_popup\")'><img src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a> </div> <div><h2>Editarea [__EA_VERSION__]</h2><br /> <h3>{$shortcuts}:</h3> {$tab}: {$add_tab}<br /> {$shift}+{$tab}: {$remove_tab}<br /> {$ctrl}+f: {$search_command}<br /> {$ctrl}+r: {$replace_command}<br /> {$ctrl}+h: {$highlight}<br /> {$ctrl}+g: {$go_to_line}<br /> {$ctrl}+z: {$undo}<br /> {$ctrl}+y: {$redo}<br /> {$ctrl}+e: {$help}<br /> {$ctrl}+q, {$esc}: {$close_popup}<br /> {$accesskey} E: {$toggle}<br /> <br /> <em>{$about_notice}</em> <br /><div class='copyright'>© Christophe Dolivet 2007-2009</div> </div> </div> </body> </html> "; -editAreaLoader.iframe_css= "<style>body,html{margin:0;padding:0;height:100%;border:none;overflow:hidden;background-color:#FFF;}body,html,table,form,textarea{font:12px monospace,sans-serif;}#editor{border:solid #888 1px;overflow:hidden;}#result{z-index:4;overflow-x:auto;overflow-y:scroll;border-top:solid #888 1px;border-bottom:solid #888 1px;position:relative;clear:both;}#result.empty{overflow:hidden;}#container{overflow:hidden;border:solid blue 0;position:relative;z-index:10;padding:0 5px 0 45px;}#textarea{position:relative;top:0;left:0;margin:0;padding:0;width:100%;height:100%;overflow:hidden;z-index:7;border-width:0;background-color:transparent;resize:none;}#textarea,#textarea:hover{outline:none;}#content_highlight{white-space:pre;margin:0;padding:0;position:absolute;z-index:4;overflow:visible;}#selection_field,#selection_field_text{margin:0;background-color:#E1F2F9;position:absolute;z-index:5;top:-100px;padding:0;white-space:pre;overflow:hidden;}#selection_field.show_colors {z-index:3;background-color:#EDF9FC;}#selection_field strong{font-weight:normal;}#selection_field.show_colors *,#selection_field_text * {visibility:hidden;}#selection_field_text{background-color:transparent;}#selection_field_text strong{font-weight:normal;background-color:#3399FE;color:#FFF;visibility:visible;}#container.word_wrap #content_highlight,#container.word_wrap #selection_field,#container.word_wrap #selection_field_text,#container.word_wrap #test_font_size{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;width:99%;}#line_number{position:absolute;overflow:hidden;border-right:solid black 1px;z-index:8;width:38px;padding:0 5px 0 0;margin:0 0 0 -45px;text-align:right;color:#AAAAAA;}#test_font_size{padding:0;margin:0;visibility:hidden;position:absolute;white-space:pre;}pre{margin:0;padding:0;}.hidden{opacity:0.2;filter:alpha(opacity=20);}#result .edit_area_cursor{position:absolute;z-index:6;background-color:#FF6633;top:-100px;margin:0;}#result .edit_area_selection_field .overline{background-color:#996600;}.editarea_popup{border:solid 1px #888888;background-color:#ECE9D8;width:250px;padding:4px;position:absolute;visibility:hidden;z-index:15;top:-500px;}.editarea_popup,.editarea_popup table{font-family:sans-serif;font-size:10pt;}.editarea_popup img{border:0;}.editarea_popup .close_popup{float:right;line-height:16px;border:0;padding:0;}.editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{margin:0;padding:0;}.editarea_popup .copyright{text-align:right;}div#area_search_replace{}div#area_search_replace img{border:0;}div#area_search_replace div.button{text-align:center;line-height:1.7em;}div#area_search_replace .button a{cursor:pointer;border:solid 1px #888888;background-color:#DEDEDE;text-decoration:none;padding:0 2px;color:#000000;white-space:nowrap;}div#area_search_replace a:hover{background-color:#EDEDED;}div#area_search_replace #move_area_search_replace{cursor:move;border:solid 1px #888;}div#area_search_replace #close_area_search_replace{text-align:right;vertical-align:top;white-space:nowrap;}div#area_search_replace #area_search_msg{height:18px;overflow:hidden;border-top:solid 1px #888;margin-top:3px;}#edit_area_help{width:350px;}#edit_area_help div.close_popup{float:right;}.area_toolbar{width:100%;margin:0;padding:0;background-color:#ECE9D8;text-align:center;}.area_toolbar,.area_toolbar table{font:11px sans-serif;}.area_toolbar img{border:0;vertical-align:middle;}.area_toolbar input{margin:0;padding:0;}.area_toolbar select{font-family:'MS Sans Serif',sans-serif,Verdana,Arial;font-size:7pt;font-weight:normal;margin:2px 0 0 0 ;padding:0;vertical-align:top;background-color:#F0F0EE;}table.statusbar{width:100%;}.area_toolbar td.infos{text-align:center;width:130px;border-right:solid 1px #888;border-width:0 1px 0 0;padding:0;}.area_toolbar td.total{text-align:right;width:50px;padding:0;}.area_toolbar td.resize{text-align:right;}.area_toolbar span#resize_area{cursor:nw-resize;visibility:hidden;}.editAreaButtonNormal,.editAreaButtonOver,.editAreaButtonDown,.editAreaSeparator,.editAreaSeparatorLine,.editAreaButtonDisabled,.editAreaButtonSelected {border:0; margin:0; padding:0; background:transparent;margin-top:0;margin-left:1px;padding:0;}.editAreaButtonNormal {border:1px solid #ECE9D8 !important;cursor:pointer;}.editAreaButtonOver {border:1px solid #0A246A !important;cursor:pointer;background-color:#B6BDD2;}.editAreaButtonDown {cursor:pointer;border:1px solid #0A246A !important;background-color:#8592B5;}.editAreaButtonSelected {border:1px solid #C0C0BB !important;cursor:pointer;background-color:#F4F2E8;}.editAreaButtonDisabled {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);-moz-opacity:0.3;opacity:0.3;border:1px solid #F0F0EE !important;cursor:pointer;}.editAreaSeparatorLine {margin:1px 2px;background-color:#C0C0BB;width:2px;height:18px;}#processing{display:none;background-color:#ECE9D8;border:solid #888 1px;position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;text-align:center;}#processing_text{position:absolute;left:50%;top:50%;width:200px;height:20px;margin-left:-100px;margin-top:-10px;text-align:center;}#tab_browsing_area{display:none;background-color:#CCC9A8;border-top:1px solid #888;text-align:left;margin:0;}#tab_browsing_list {padding:0;margin:0;list-style-type:none;white-space:nowrap;}#tab_browsing_list li {float:left;margin:-1px;}#tab_browsing_list a {position:relative;display:block;text-decoration:none;float:left;cursor:pointer;line-height:14px;}#tab_browsing_list a span {display:block;color:#000;background:#ECE9D8;border:1px solid #888;border-width:1px 1px 0;text-align:center;padding:2px 2px 1px 4px;position:relative;}#tab_browsing_list a b {display:block;border-bottom:2px solid #617994;}#tab_browsing_list a .edited {display:none;}#tab_browsing_list a.edited .edited {display:inline;}#tab_browsing_list a img{margin-left:7px;}#tab_browsing_list a.edited img{margin-left:3px;}#tab_browsing_list a:hover span {background:#F4F2E8;border-color:#0A246A;}#tab_browsing_list .selected a span{background:#046380;color:#FFF;}#no_file_selected{height:100%;width:150%;background:#CCC;display:none;z-index:20;position:absolute;}.non_editable #editor{border-width:0 1px;}.non_editable .area_toolbar{display:none;}#auto_completion_area{background:#FFF;border:solid 1px #888;position:absolute;z-index:15;width:280px;height:180px;overflow:auto;display:none;}#auto_completion_area a,#auto_completion_area a:visited{display:block;padding:0 2px 1px;color:#000;text-decoration:none;}#auto_completion_area a:hover,#auto_completion_area a:focus,#auto_completion_area a.focus{background:#D6E1FE;text-decoration:none;}#auto_completion_area ul{margin:0;padding:0;list-style:none inside;}#auto_completion_area li{padding:0;}#auto_completion_area .prefix{font-style:italic;padding:0 3px;}</style>"; diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.gz b/wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.gz deleted file mode 100644 index 19cd98c4f3b64b927cf72c89048c842fc7700acd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 29707 zcmb2|=3oE==C^xutChD;)c95TJv?Ab_*t{rB1=D7$OY=!e~Q>_y*s&oz3EA{@Q@!{ zPE5OEcK=Y`S&xZ76i=Q!ee9?8^TU6up7r0YI%s`C#Pr;}-PQA6-|e~Kz^Ea@)#|h` zAR{K`yj!T@eAB-ExUG+NZ@;-IaOu_1z;CPH-L8pr3cK~D)c*auvhvw~3&Wni)TzJz zgR5>!QiJB|oJii)Nwb#ExViVtYV!|{mG8MUtY@Y_PAa?E^1f#09R17PIYG}pl+K&_ z^Zfqmsb+?&Pc84}4D*YhoKrUQ-r5i1Q{<*?->kL!A<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!cPDyLbNs&-7eNt0dv1_h&`8<{dxboKp4g&(F<^&-<nxkVv0$*-g8ncjxDiH33o! z|H`M8oVauI;AD9>l_l3$Ud<NaUFa|)x4i7;g=dZFy$u(Ag&OWL@N3U^6XsKnmin}O z>)A^mf6l!-=~^Q1rrk9!1#U-)81_#)dcecm>itI-r5*mw$1WNidak!^+sRV@#b0l} zJ3r6%_m*X|^!D$*xnZXchqmKhrJ9Q1%M7bhp2hr#yen`b>n@Z3E3OZAjy-cM9h}Z_ zHJu1tlBy6f`4fX^O+x6k-(NPX&;RbzedCq#_4BXJO)*S*5ok8!>j9Iu(I(S2W$35m z#+Ii4*tV-8c75XQPrg%6w{H1boE~tor$61j+tcqDuaLgj(*@NJ-v;j8nfiU@l*akr zeKPMGm+O=?Y+y9&)miDO{#yCct!Gu)*F9Mb({cksu9%*A6LQ;TXZF>npJds(r^MHm z?fL!aN1#RwJO9KjUzQ%)kgVBVm@7N^(1Zu320!LKa4kGMTXLP`j`W}&o~%o24sUo- VapLNm|BwH3Ckj^FmOIYK001jH1W^D0 diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.js b/wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.js deleted file mode 100644 index 4e218100d..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area_full_with_plugins.js +++ /dev/null @@ -1,39 +0,0 @@ - function EAL(){var t=this;t.version="0.8.1.1";date=new Date();t.start_time=date.getTime();t.win="loading";t.error=false;t.baseURL="";t.template="";t.lang={};t.load_syntax={};t.syntax={};t.loadedFiles=[];t.waiting_loading={};t.scripts_to_load=[];t.sub_scripts_to_load=[];t.resize=[];t.hidden={};t.default_settings={debug:false,smooth_selection:true,font_size:"10",font_family:"monospace",start_highlight:false,toolbar:"search,go_to_line,fullscreen,|,undo,redo,|,select_font,|,change_smooth_selection,highlight,reset_highlight,word_wrap,|,help",begin_toolbar:"",end_toolbar:"",is_multi_files:false,allow_resize:"both",show_line_colors:false,min_width:400,min_height:125,replace_tab_by_spaces:false,allow_toggle:true,language:"en",syntax:"",syntax_selection_allow:"basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml",display:"onload",max_undo:30,browsers:"known",plugins:"",gecko_spellcheck:false,fullscreen:false,is_editable:true,cursor_position:"begin",word_wrap:false,autocompletion:false,load_callback:"",save_callback:"",change_callback:"",submit_callback:"",EA_init_callback:"",EA_delete_callback:"",EA_load_callback:"",EA_unload_callback:"",EA_toggle_on_callback:"",EA_toggle_off_callback:"",EA_file_switch_on_callback:"",EA_file_switch_off_callback:"",EA_file_close_callback:""};t.advanced_buttons=[ ['new_document','newdocument.gif','new_document',false],['search','search.gif','show_search',false],['go_to_line','go_to_line.gif','go_to_line',false],['undo','undo.gif','undo',true],['redo','redo.gif','redo',true],['change_smooth_selection','smooth_selection.gif','change_smooth_selection_mode',true],['reset_highlight','reset_highlight.gif','resync_highlight',true],['highlight','highlight.gif','change_highlight',true],['help','help.gif','show_help',false],['save','save.gif','save',false],['load','load.gif','load',false],['fullscreen','fullscreen.gif','toggle_full_screen',false],['word_wrap','word_wrap.gif','toggle_word_wrap',true],['autocompletion','autocompletion.gif','toggle_autocompletion',true] ];t.set_browser_infos(t);if(t.isIE>=6||t.isGecko||(t.isWebKit&&!t.isSafari<3)||t.isOpera>=9||t.isCamino)t.isValidBrowser=true; -else t.isValidBrowser=false;t.set_base_url();for(var i=0;i<t.scripts_to_load.length;i++){setTimeout("eAL.load_script('"+t.baseURL+t.scripts_to_load[i]+".js');",1);t.waiting_loading[t.scripts_to_load[i]+".js"]=false;}t.add_event(window,"load",EAL.prototype.window_loaded);};EAL.prototype={has_error:function(){this.error=true;for(var i in EAL.prototype){EAL.prototype[i]=function(){};}},set_browser_infos:function(o){ua=navigator.userAgent;o.isWebKit=/WebKit/.test(ua);o.isGecko=!o.isWebKit&&/Gecko/.test(ua);o.isMac=/Mac/.test(ua);o.isIE=(navigator.appName=="Microsoft Internet Explorer");if(o.isIE){o.isIE=ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/,"$1");if(o.isIE<6)o.has_error();}if(o.isOpera=(ua.indexOf('Opera')!=-1)){o.isOpera=ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i,"$1");if(o.isOpera<9)o.has_error();o.isIE=false;}if(o.isFirefox=(ua.indexOf('Firefox')!=-1))o.isFirefox=ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('Iceweasel')!=-1)o.isFirefox=ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('GranParadiso')!=-1)o.isFirefox=ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('BonEcho')!=-1)o.isFirefox=ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i,"$1");if(ua.indexOf('SeaMonkey')!=-1)o.isFirefox=(ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i,"$1"))+1;if(o.isCamino=(ua.indexOf('Camino')!=-1))o.isCamino=ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i,"$1");if(o.isSafari=(ua.indexOf('Safari')!=-1))o.isSafari=ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i,"$1");if(o.isChrome=(ua.indexOf('Chrome')!=-1)){o.isChrome=ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i,"$1");o.isSafari=false;}},window_loaded:function(){eAL.win="loaded";if(document.forms){for(var i=0;i<document.forms.length;i++){var form=document.forms[i];form.edit_area_replaced_submit=null;try{form.edit_area_replaced_submit=form.onsubmit;form.onsubmit="";}catch(e){}eAL.add_event(form,"submit",EAL.prototype.submit);eAL.add_event(form,"reset",EAL.prototype.reset);}}eAL.add_event(window,"unload",function(){for(var i in eAs){eAL.delete_instance(i);}});},init_ie_textarea:function(id){var a=document.getElementById(id);try{if(a&&typeof(a.focused)=="undefined"){a.focus();a.focused=true;a.selectionStart=a.selectionEnd=0;get_IE_selection(a);eAL.add_event(a,"focus",IE_textarea_focus);eAL.add_event(a,"blur",IE_textarea_blur);}}catch(ex){}},init:function(settings){var t=this,s=settings,i;if(!s["id"])t.has_error();if(t.error)return;if(eAs[s["id"]])t.delete_instance(s["id"]);for(i in t.default_settings){if(typeof(s[i])=="undefined")s[i]=t.default_settings[i];}if(s["browsers"]=="known"&&t.isValidBrowser==false){return;}if(s["begin_toolbar"].length>0)s["toolbar"]=s["begin_toolbar"]+","+s["toolbar"];if(s["end_toolbar"].length>0)s["toolbar"]=s["toolbar"]+","+s["end_toolbar"];s["tab_toolbar"]=s["toolbar"].replace(/ /g,"").split(",");s["plugins"]=s["plugins"].replace(/ /g,"").split(",");for(i=0;i<s["plugins"].length;i++){if(s["plugins"][i].length==0)s["plugins"].splice(i,1);}t.get_template();t.load_script(t.baseURL+"langs/"+s["language"]+".js");if(s["syntax"].length>0){s["syntax"]=s["syntax"].toLowerCase();t.load_script(t.baseURL+"reg_syntax/"+s["syntax"]+".js");}eAs[s["id"]]={"settings":s};eAs[s["id"]]["displayed"]=false;eAs[s["id"]]["hidden"]=false;t.start(s["id"]);},delete_instance:function(id){var d=document,fs=window.frames,span,iframe;eAL.execCommand(id,"EA_delete");if(fs["frame_"+id]&&fs["frame_"+id].editArea){if(eAs[id]["displayed"])eAL.toggle(id,"off");fs["frame_"+id].editArea.execCommand("EA_unload");}span=d.getElementById("EditAreaArroundInfos_"+id);if(span)span.parentNode.removeChild(span);iframe=d.getElementById("frame_"+id);if(iframe){iframe.parentNode.removeChild(iframe);try{delete fs["frame_"+id];}catch(e){}}delete eAs[id];},start:function(id){var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i;if(t.win!="loaded"){setTimeout("eAL.start('"+id+"');",50);return;}for(i in t.waiting_loading){if(t.waiting_loading[i]!="loaded"&&typeof(t.waiting_loading[i])!="function"){setTimeout("eAL.start('"+id+"');",50);return;}}if(!t.lang[eAs[id]["settings"]["language"]]||(eAs[id]["settings"]["syntax"].length>0&&!t.load_syntax[eAs[id]["settings"]["syntax"]])){setTimeout("eAL.start('"+id+"');",50);return;}if(eAs[id]["settings"]["syntax"].length>0)t.init_syntax_regexp();if(!d.getElementById("EditAreaArroundInfos_"+id)&&(eAs[id]["settings"]["debug"]||eAs[id]["settings"]["allow_toggle"])){span=d.createElement("span");span.id="EditAreaArroundInfos_"+id;if(eAs[id]["settings"]["allow_toggle"]){checked=(eAs[id]["settings"]["display"]=="onload")?"checked='checked'":"";html+="<div id='edit_area_toggle_"+i+"'>";html+="<input id='edit_area_toggle_checkbox_"+id+"' class='toggle_"+id+"' type='checkbox' onclick='eAL.toggle(\""+id+"\");' accesskey='e' "+checked+" />";html+="<label for='edit_area_toggle_checkbox_"+id+"'>{$toggle}</label></div>";}if(eAs[id]["settings"]["debug"])html+="<textarea id='edit_area_debug_"+id+"' spellcheck='off' style='z-index:20;width:100%;height:120px;overflow:auto;border:solid black 1px;'></textarea><br />";html=t.translate(html,eAs[id]["settings"]["language"]);span.innerHTML=html;father=d.getElementById(id).parentNode;next=d.getElementById(id).nextSibling;if(next==null)father.appendChild(span); -else father.insertBefore(span,next);}if(!eAs[id]["initialized"]){t.execCommand(id,"EA_init");if(eAs[id]["settings"]["display"]=="later"){eAs[id]["initialized"]=true;return;}}if(t.isIE){t.init_ie_textarea(id);}area=eAs[id];for(i=0;i<area["settings"]["tab_toolbar"].length;i++){html_toolbar_content+=t.get_control_html(area["settings"]["tab_toolbar"][i],area["settings"]["language"]);}html_toolbar_content=t.translate(html_toolbar_content,area["settings"]["language"],"template");if(!t.iframe_script){t.iframe_script="";for(i=0;i<t.sub_scripts_to_load.length;i++)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+t.sub_scripts_to_load[i]+'.js"></script>';}for(i=0;i<area["settings"]["plugins"].length;i++){if(!t.all_plugins_loaded)t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/'+area["settings"]["plugins"][i]+'.js"></script>';t.iframe_script+='<script language="javascript" type="text/javascript" src="'+t.baseURL+'plugins/'+area["settings"]["plugins"][i]+'/langs/'+area["settings"]["language"]+'.js"></script>';}if(!t.iframe_css){t.iframe_css="<link href='"+t.baseURL+"edit_area.css' rel='stylesheet' type='text/css' />";}template=t.template.replace(/\[__BASEURL__\]/g,t.baseURL);template=template.replace("[__TOOLBAR__]",html_toolbar_content);template=t.translate(template,area["settings"]["language"],"template");template=template.replace("[__CSSRULES__]",t.iframe_css);template=template.replace("[__JSCODE__]",t.iframe_script);template=template.replace("[__EA_VERSION__]",t.version);area.textarea=d.getElementById(area["settings"]["id"]);eAs[area["settings"]["id"]]["textarea"]=area.textarea;if(typeof(window.frames["frame_"+area["settings"]["id"]])!='undefined')delete window.frames["frame_"+area["settings"]["id"]];father=area.textarea.parentNode;content=d.createElement("iframe");content.name="frame_"+area["settings"]["id"];content.id="frame_"+area["settings"]["id"];content.style.borderWidth="0px";setAttribute(content,"frameBorder","0");content.style.overflow="hidden";content.style.display="none";next=area.textarea.nextSibling;if(next==null)father.appendChild(content); -else father.insertBefore(content,next);f=window.frames["frame_"+area["settings"]["id"]];f.document.open();f.eAs=eAs;f.area_id=area["settings"]["id"];f.document.area_id=area["settings"]["id"];f.document.write(template);f.document.close();},toggle:function(id,toggle_to){if(!toggle_to)toggle_to=(eAs[id]["displayed"]==true)?"off":"on";if(eAs[id]["displayed"]==true&&toggle_to=="off"){this.toggle_off(id);} -else if(eAs[id]["displayed"]==false&&toggle_to=="on"){this.toggle_on(id);}return false;},toggle_off:function(id){var fs=window.frames,f,t,parNod,nxtSib,selStart,selEnd,scrollTop,scrollLeft;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];if(f.editArea.fullscreen['isFull'])f.editArea.toggle_full_screen(false);eAs[id]["displayed"]=false;t.wrap="off";setAttribute(t,"wrap","off");parNod=t.parentNode;nxtSib=t.nextSibling;parNod.removeChild(t);parNod.insertBefore(t,nxtSib);t.value=f.editArea.textarea.value;selStart=f.editArea.last_selection["selectionStart"];selEnd=f.editArea.last_selection["selectionEnd"];scrollTop=f.document.getElementById("result").scrollTop;scrollLeft=f.document.getElementById("result").scrollLeft;document.getElementById("frame_"+id).style.display='none';t.style.display="inline";try{t.focus();}catch(e){};if(this.isIE){t.selectionStart=selStart;t.selectionEnd=selEnd;t.focused=true;set_IE_selection(t);} -else{if(this.isOpera&&this.isOpera < 9.6){t.setSelectionRange(0,0);}try{t.setSelectionRange(selStart,selEnd);}catch(e){};}t.scrollTop=scrollTop;t.scrollLeft=scrollLeft;f.editArea.execCommand("toggle_off");}},toggle_on:function(id){var fs=window.frames,f,t,selStart=0,selEnd=0,scrollTop=0,scrollLeft=0,curPos,elem;if(fs["frame_"+id]){f=fs["frame_"+id];t=eAs[id]["textarea"];area=f.editArea;area.textarea.value=t.value;curPos=eAs[id]["settings"]["cursor_position"];if(t.use_last==true){selStart=t.last_selectionStart;selEnd=t.last_selectionEnd;scrollTop=t.last_scrollTop;scrollLeft=t.last_scrollLeft;t.use_last=false;} -else if(curPos=="auto"){try{selStart=t.selectionStart;selEnd=t.selectionEnd;scrollTop=t.scrollTop;scrollLeft=t.scrollLeft;}catch(ex){}}this.set_editarea_size_from_textarea(id,document.getElementById("frame_"+id));t.style.display="none";document.getElementById("frame_"+id).style.display="inline";area.execCommand("focus");eAs[id]["displayed"]=true;area.execCommand("update_size");f.document.getElementById("result").scrollTop=scrollTop;f.document.getElementById("result").scrollLeft=scrollLeft;area.area_select(selStart,selEnd-selStart);area.execCommand("toggle_on");} -else{elem=document.getElementById(id);elem.last_selectionStart=elem.selectionStart;elem.last_selectionEnd=elem.selectionEnd;elem.last_scrollTop=elem.scrollTop;elem.last_scrollLeft=elem.scrollLeft;elem.use_last=true;eAL.start(id);}},set_editarea_size_from_textarea:function(id,frame){var elem,width,height;elem=document.getElementById(id);width=Math.max(eAs[id]["settings"]["min_width"],elem.offsetWidth)+"px";height=Math.max(eAs[id]["settings"]["min_height"],elem.offsetHeight)+"px";if(elem.style.width.indexOf("%")!=-1)width=elem.style.width;if(elem.style.height.indexOf("%")!=-1)height=elem.style.height;frame.style.width=width;frame.style.height=height;},set_base_url:function(){var t=this,elems,i,docBasePath;if(!this.baseURL){elems=document.getElementsByTagName('script');for(i=0;i<elems.length;i++){if(elems[i].src&&elems[i].src.match(/edit_area_[^\\\/]*$/i)){var src=elems[i].src;src=src.substring(0,src.lastIndexOf('/'));this.baseURL=src;this.file_name=elems[i].src.substr(elems[i].src.lastIndexOf("/")+1);break;}}}docBasePath=document.location.href;if(docBasePath.indexOf('?')!=-1)docBasePath=docBasePath.substring(0,docBasePath.indexOf('?'));docBasePath=docBasePath.substring(0,docBasePath.lastIndexOf('/'));if(t.baseURL.indexOf('://')==-1&&t.baseURL.charAt(0)!='/'){t.baseURL=docBasePath+"/"+t.baseURL;}t.baseURL+="/";},get_button_html:function(id,img,exec,isFileSpecific,baseURL){var cmd,html;if(!baseURL)baseURL=this.baseURL;cmd='editArea.execCommand(\''+exec+'\')';html='<a id="a_'+id+'" href="javascript:'+cmd+'" onclick="'+cmd+';return false;" onmousedown="return false;" target="_self" fileSpecific="'+(isFileSpecific?'yes':'no')+'">';html+='<img id="'+id+'" src="'+baseURL+'images/'+img+'" title="{$'+id+'}" width="20" height="20" class="editAreaButtonNormal" onmouseover="editArea.switchClass(this,\'editAreaButtonOver\');" onmouseout="editArea.restoreClass(this);" onmousedown="editArea.restoreAndSwitchClass(this,\'editAreaButtonDown\');" /></a>';return html;},get_control_html:function(button_name,lang){var t=this,i,but,html,si;for(i=0;i<t.advanced_buttons.length;i++){but=t.advanced_buttons[i];if(but[0]==button_name){return t.get_button_html(but[0],but[1],but[2],but[3]);}}switch(button_name){case "*":case "return":return "<br />";case "|":case "separator":return '<img src="'+t.baseURL+'images/spacer.gif" width="1" height="15" class="editAreaSeparatorLine">';case "select_font":html="<select id='area_font_size' onchange='javascript:editArea.execCommand(\"change_font_size\")' fileSpecific='yes'>";html+="<option value='-1'>{$font_size}</option>";si=[8,9,10,11,12,14];for(i=0;i<si.length;i++){html+="<option value='"+si[i]+"'>"+si[i]+" pt</option>";}html+="</select>";return html;case "syntax_selection":html="<select id='syntax_selection' onchange='javascript:editArea.execCommand(\"change_syntax\",this.value)' fileSpecific='yes'>";html+="<option value='-1'>{$syntax_selection}</option>";html+="</select>";return html;}return "<span id='tmp_tool_"+button_name+"'>["+button_name+"]</span>";},get_template:function(){if(this.template==""){var xhr_object=null;if(window.XMLHttpRequest)xhr_object=new XMLHttpRequest(); -else if(window.ActiveXObject)xhr_object=new ActiveXObject("Microsoft.XMLHTTP"); -else{alert("XMLHTTPRequest not supported. EditArea not loaded");return;}xhr_object.open("GET",this.baseURL+"template.html",false);xhr_object.send(null);if(xhr_object.readyState==4)this.template=xhr_object.responseText; -else this.has_error();}},translate:function(text,lang,mode){if(mode=="word")text=eAL.get_word_translation(text,lang); -else if(mode="template"){eAL.current_language=lang;text=text.replace(/\{\$([^\}]+)\}/gm,eAL.translate_template);}return text;},translate_template:function(){return eAL.get_word_translation(EAL.prototype.translate_template.arguments[1],eAL.current_language);},get_word_translation:function(val,lang){var i;for(i in eAL.lang[lang]){if(i==val)return eAL.lang[lang][i];}return "_"+val;},load_script:function(url){var t=this,d=document,script,head;if(t.loadedFiles[url])return;try{script=d.createElement("script");script.type="text/javascript";script.src=url;script.charset="UTF-8";d.getElementsByTagName("head")[0].appendChild(script);}catch(e){d.write('<sc'+'ript language="javascript" type="text/javascript" src="'+url+'" charset="UTF-8"></sc'+'ript>');}t.loadedFiles[url]=true;},add_event:function(obj,name,handler){try{if(obj.attachEvent){obj.attachEvent("on"+name,handler);} -else{obj.addEventListener(name,handler,false);}}catch(e){}},remove_event:function(obj,name,handler){try{if(obj.detachEvent)obj.detachEvent("on"+name,handler); -else obj.removeEventListener(name,handler,false);}catch(e){}},reset:function(e){var formObj,is_child,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(window.frames["frame_"+i]&&is_child&&eAs[i]["displayed"]==true){var exec='window.frames["frame_'+i+'"].editArea.textarea.value=document.getElementById("'+i+'").value;';exec+='window.frames["frame_'+i+'"].editArea.execCommand("focus");';exec+='window.frames["frame_'+i+'"].editArea.check_line_selection();';exec+='window.frames["frame_'+i+'"].editArea.execCommand("reset");';window.setTimeout(exec,10);}}return;},submit:function(e){var formObj,is_child,fs=window.frames,i,x;formObj=eAL.isIE ? window.event.srcElement:e.target;if(formObj.tagName!='FORM')formObj=formObj.form;for(i in eAs){is_child=false;for(x=0;x<formObj.elements.length;x++){if(formObj.elements[x].id==i)is_child=true;}if(is_child){if(fs["frame_"+i]&&eAs[i]["displayed"]==true)document.getElementById(i).value=fs["frame_"+i].editArea.textarea.value;eAL.execCommand(i,"EA_submit");}}if(typeof(formObj.edit_area_replaced_submit)=="function"){res=formObj.edit_area_replaced_submit();if(res==false){if(eAL.isIE)return false; -else e.preventDefault();}}return;},getValue:function(id){if(window.frames["frame_"+id]&&eAs[id]["displayed"]==true){return window.frames["frame_"+id].editArea.textarea.value;} -else if(elem=document.getElementById(id)){return elem.value;}return false;},setValue:function(id,new_val){var fs=window.frames;if((f=fs["frame_"+id])&&eAs[id]["displayed"]==true){f.editArea.textarea.value=new_val;f.editArea.execCommand("focus");f.editArea.check_line_selection(false);f.editArea.execCommand("onchange");} -else if(elem=document.getElementById(id)){elem.value=new_val;}},getSelectionRange:function(id){var sel,eA,fs=window.frames;sel={"start":0,"end":0};if(fs["frame_"+id]&&eAs[id]["displayed"]==true){eA=fs["frame_"+id].editArea;sel["start"]=eA.textarea.selectionStart;sel["end"]=eA.textarea.selectionEnd;} -else if(elem=document.getElementById(id)){sel=getSelectionRange(elem);}return sel;},setSelectionRange:function(id,new_start,new_end){var fs=window.frames;if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].editArea.area_select(new_start,new_end-new_start);if(!this.isIE){fs["frame_"+id].editArea.check_line_selection(false);fs["frame_"+id].editArea.scroll_to_view();}} -else if(elem=document.getElementById(id)){setSelectionRange(elem,new_start,new_end);}},getSelectedText:function(id){var sel=this.getSelectionRange(id);return this.getValue(id).substring(sel["start"],sel["end"]);},setSelectedText:function(id,new_val){var fs=window.frames,d=document,sel,text,scrollTop,scrollLeft,new_sel_end;new_val=new_val.replace(/\r/g,"");sel=this.getSelectionRange(id);text=this.getValue(id);if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;} -else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}text=text.substring(0,sel["start"])+new_val+text.substring(sel["end"]);this.setValue(id,text);new_sel_end=sel["start"]+new_val.length;this.setSelectionRange(id,sel["start"],new_sel_end);if(new_val !=this.getSelectedText(id).replace(/\r/g,"")){this.setSelectionRange(id,sel["start"],new_sel_end+new_val.split("\n").length-1);}if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;fs["frame_"+id].editArea.execCommand("onchange");} -else{d.getElementById(id).scrollTop=scrollTop;d.getElementById(id).scrollLeft=scrollLeft;}},insertTags:function(id,open_tag,close_tag){var old_sel,new_sel;old_sel=this.getSelectionRange(id);text=open_tag+this.getSelectedText(id)+close_tag;eAL.setSelectedText(id,text);new_sel=this.getSelectionRange(id);if(old_sel["end"] > old_sel["start"])this.setSelectionRange(id,new_sel["end"],new_sel["end"]); -else this.setSelectionRange(id,old_sel["start"]+open_tag.length,old_sel["start"]+open_tag.length);},hide:function(id){var fs=window.frames,d=document,t=this,scrollTop,scrollLeft,span;if(d.getElementById(id)&&!t.hidden[id]){t.hidden[id]={};t.hidden[id]["selectionRange"]=t.getSelectionRange(id);if(d.getElementById(id).style.display!="none"){t.hidden[id]["scrollTop"]=d.getElementById(id).scrollTop;t.hidden[id]["scrollLeft"]=d.getElementById(id).scrollLeft;}if(fs["frame_"+id]){t.hidden[id]["toggle"]=eAs[id]["displayed"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){scrollTop=fs["frame_"+id].document.getElementById("result").scrollTop;scrollLeft=fs["frame_"+id].document.getElementById("result").scrollLeft;} -else{scrollTop=d.getElementById(id).scrollTop;scrollLeft=d.getElementById(id).scrollLeft;}t.hidden[id]["scrollTop"]=scrollTop;t.hidden[id]["scrollLeft"]=scrollLeft;if(eAs[id]["displayed"]==true)eAL.toggle_off(id);}span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='none';}d.getElementById(id).style.display="none";}},show:function(id){var fs=window.frames,d=document,t=this,span;if((elem=d.getElementById(id))&&t.hidden[id]){elem.style.display="inline";elem.scrollTop=t.hidden[id]["scrollTop"];elem.scrollLeft=t.hidden[id]["scrollLeft"];span=d.getElementById("EditAreaArroundInfos_"+id);if(span){span.style.display='inline';}if(fs["frame_"+id]){elem.style.display="inline";if(t.hidden[id]["toggle"]==true)eAL.toggle_on(id);scrollTop=t.hidden[id]["scrollTop"];scrollLeft=t.hidden[id]["scrollLeft"];if(fs["frame_"+id]&&eAs[id]["displayed"]==true){fs["frame_"+id].document.getElementById("result").scrollTop=scrollTop;fs["frame_"+id].document.getElementById("result").scrollLeft=scrollLeft;} -else{elem.scrollTop=scrollTop;elem.scrollLeft=scrollLeft;}}sel=t.hidden[id]["selectionRange"];t.setSelectionRange(id,sel["start"],sel["end"]);delete t.hidden[id];}},getCurrentFile:function(id){return this.execCommand(id,'get_file',this.execCommand(id,'curr_file'));},getFile:function(id,file_id){return this.execCommand(id,'get_file',file_id);},getAllFiles:function(id){return this.execCommand(id,'get_all_files()');},openFile:function(id,file_infos){return this.execCommand(id,'open_file',file_infos);},closeFile:function(id,file_id){return this.execCommand(id,'close_file',file_id);},setFileEditedMode:function(id,file_id,to){var reg1,reg2;reg1=new RegExp('\\\\','g');reg2=new RegExp('"','g');return this.execCommand(id,'set_file_edited_mode("'+file_id.replace(reg1,'\\\\').replace(reg2,'\\"')+'",'+to+')');},execCommand:function(id,cmd,fct_param){switch(cmd){case "EA_init":if(eAs[id]['settings']["EA_init_callback"].length>0)eval(eAs[id]['settings']["EA_init_callback"]+"('"+id+"');");break;case "EA_delete":if(eAs[id]['settings']["EA_delete_callback"].length>0)eval(eAs[id]['settings']["EA_delete_callback"]+"('"+id+"');");break;case "EA_submit":if(eAs[id]['settings']["submit_callback"].length>0)eval(eAs[id]['settings']["submit_callback"]+"('"+id+"');");break;}if(window.frames["frame_"+id]&&window.frames["frame_"+id].editArea){if(fct_param!=undefined)return eval('window.frames["frame_'+id+'"].editArea.'+cmd+'(fct_param);'); -else return eval('window.frames["frame_'+id+'"].editArea.'+cmd+';');}return false;}};var eAL=new EAL();var eAs={}; function getAttribute(elm,aName){var aValue,taName,i;try{aValue=elm.getAttribute(aName);}catch(exept){}if(! aValue){for(i=0;i < elm.attributes.length;i++){taName=elm.attributes[i] .name.toLowerCase();if(taName==aName){aValue=elm.attributes[i] .value;return aValue;}}}return aValue;};function setAttribute(elm,attr,val){if(attr=="class"){elm.setAttribute("className",val);elm.setAttribute("class",val);} -else{elm.setAttribute(attr,val);}};function getChildren(elem,elem_type,elem_attribute,elem_attribute_match,option,depth){if(!option)var option="single";if(!depth)var depth=-1;if(elem){var children=elem.childNodes;var result=null;var results=[];for(var x=0;x<children.length;x++){strTagName=new String(children[x].tagName);children_class="?";if(strTagName!="undefined"){child_attribute=getAttribute(children[x],elem_attribute);if((strTagName.toLowerCase()==elem_type.toLowerCase()||elem_type=="")&&(elem_attribute==""||child_attribute==elem_attribute_match)){if(option=="all"){results.push(children[x]);} -else{return children[x];}}if(depth!=0){result=getChildren(children[x],elem_type,elem_attribute,elem_attribute_match,option,depth-1);if(option=="all"){if(result.length>0){results=results.concat(result);}} -else if(result!=null){return result;}}}}if(option=="all")return results;}return null;};function isChildOf(elem,parent){if(elem){if(elem==parent)return true;while(elem.parentNode !='undefined'){return isChildOf(elem.parentNode,parent);}}return false;};function getMouseX(e){if(e!=null&&typeof(e.pageX)!="undefined"){return e.pageX;} -else{return(e!=null?e.x:event.x)+document.documentElement.scrollLeft;}};function getMouseY(e){if(e!=null&&typeof(e.pageY)!="undefined"){return e.pageY;} -else{return(e!=null?e.y:event.y)+document.documentElement.scrollTop;}};function calculeOffsetLeft(r){return calculeOffset(r,"offsetLeft")};function calculeOffsetTop(r){return calculeOffset(r,"offsetTop")};function calculeOffset(element,attr){var offset=0;while(element){offset+=element[attr];element=element.offsetParent}return offset;};function get_css_property(elem,prop){if(document.defaultView){return document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop);} -else if(elem.currentStyle){var prop=prop.replace(/-\D/gi,function(sMatch){return sMatch.charAt(sMatch.length-1).toUpperCase();});return elem.currentStyle[prop];} -else return null;}var _mCE;function start_move_element(e,id,frame){var elem_id=(e.target||e.srcElement).id;if(id)elem_id=id;if(!frame)frame=window;if(frame.event)e=frame.event;_mCE=frame.document.getElementById(elem_id);_mCE.frame=frame;frame.document.onmousemove=move_element;frame.document.onmouseup=end_move_element;mouse_x=getMouseX(e);mouse_y=getMouseY(e);_mCE.start_pos_x=mouse_x-(_mCE.style.left.replace("px","")||calculeOffsetLeft(_mCE));_mCE.start_pos_y=mouse_y-(_mCE.style.top.replace("px","")||calculeOffsetTop(_mCE));return false;};function end_move_element(e){_mCE.frame.document.onmousemove="";_mCE.frame.document.onmouseup="";_mCE=null;};function move_element(e){var newTop,newLeft,maxLeft;if(_mCE.frame&&_mCE.frame.event)e=_mCE.frame.event;newTop=getMouseY(e)-_mCE.start_pos_y;newLeft=getMouseX(e)-_mCE.start_pos_x;maxLeft=_mCE.frame.document.body.offsetWidth-_mCE.offsetWidth;max_top=_mCE.frame.document.body.offsetHeight-_mCE.offsetHeight;newTop=Math.min(Math.max(0,newTop),max_top);newLeft=Math.min(Math.max(0,newLeft),maxLeft);_mCE.style.top=newTop+"px";_mCE.style.left=newLeft+"px";return false;};var nav=eAL.nav;function getSelectionRange(textarea){return{"start":textarea.selectionStart,"end":textarea.selectionEnd};};function setSelectionRange(t,start,end){t.focus();start=Math.max(0,Math.min(t.value.length,start));end=Math.max(start,Math.min(t.value.length,end));if(this.isOpera&&this.isOpera < 9.6){t.selectionEnd=1;t.selectionStart=0;t.selectionEnd=1;t.selectionStart=0;}t.selectionStart=start;t.selectionEnd=end;if(isIE)set_IE_selection(t);};function get_IE_selection(t){var d=document,div,range,stored_range,elem,scrollTop,relative_top,line_start,line_nb,range_start,range_end,tab;if(t&&t.focused){if(!t.ea_line_height){div=d.createElement("div");div.style.fontFamily=get_css_property(t,"font-family");div.style.fontSize=get_css_property(t,"font-size");div.style.visibility="hidden";div.innerHTML="0";d.body.appendChild(div);t.ea_line_height=div.offsetHeight;d.body.removeChild(div);}range=d.selection.createRange();try{stored_range=range.duplicate();stored_range.moveToElementText(t);stored_range.setEndPoint('EndToEnd',range);if(stored_range.parentElement()==t){elem=t;scrollTop=0;while(elem.parentNode){scrollTop+=elem.scrollTop;elem=elem.parentNode;}relative_top=range.offsetTop-calculeOffsetTop(t)+scrollTop;line_start=Math.round((relative_top / t.ea_line_height)+1);line_nb=Math.round(range.boundingHeight / t.ea_line_height);range_start=stored_range.text.length-range.text.length;tab=t.value.substr(0,range_start).split("\n");range_start+=(line_start-tab.length)*2;t.selectionStart=range_start;range_end=t.selectionStart+range.text.length;tab=t.value.substr(0,range_start+range.text.length).split("\n");range_end+=(line_start+line_nb-1-tab.length)*2;t.selectionEnd=range_end;}}catch(e){}}setTimeout("get_IE_selection(document.getElementById('"+t.id+"'));",50);};function IE_textarea_focus(){event.srcElement.focused=true;}function IE_textarea_blur(){event.srcElement.focused=false;}function set_IE_selection(t){var nbLineStart,nbLineStart,nbLineEnd,range;if(!window.closed){nbLineStart=t.value.substr(0,t.selectionStart).split("\n").length-1;nbLineEnd=t.value.substr(0,t.selectionEnd).split("\n").length-1;try{range=document.selection.createRange();range.moveToElementText(t);range.setEndPoint('EndToStart',range);range.moveStart('character',t.selectionStart-nbLineStart);range.moveEnd('character',t.selectionEnd-nbLineEnd-(t.selectionStart-nbLineStart));range.select();}catch(e){}}};eAL.waiting_loading["elements_functions.js"]="loaded"; - EAL.prototype.start_resize_area=function(){var d=document,a,div,width,height,father;d.onmouseup=eAL.end_resize_area;d.onmousemove=eAL.resize_area;eAL.toggle(eAL.resize["id"]);a=eAs[eAL.resize["id"]]["textarea"];div=d.getElementById("edit_area_resize");if(!div){div=d.createElement("div");div.id="edit_area_resize";div.style.border="dashed #888888 1px";}width=a.offsetWidth-2;height=a.offsetHeight-2;div.style.display="block";div.style.width=width+"px";div.style.height=height+"px";father=a.parentNode;father.insertBefore(div,a);a.style.display="none";eAL.resize["start_top"]=calculeOffsetTop(div);eAL.resize["start_left"]=calculeOffsetLeft(div);};EAL.prototype.end_resize_area=function(e){var d=document,div,a,width,height;d.onmouseup="";d.onmousemove="";div=d.getElementById("edit_area_resize");a=eAs[eAL.resize["id"]]["textarea"];width=Math.max(eAs[eAL.resize["id"]]["settings"]["min_width"],div.offsetWidth-4);height=Math.max(eAs[eAL.resize["id"]]["settings"]["min_height"],div.offsetHeight-4);if(eAL.isIE==6){width-=2;height-=2;}a.style.width=width+"px";a.style.height=height+"px";div.style.display="none";a.style.display="inline";a.selectionStart=eAL.resize["selectionStart"];a.selectionEnd=eAL.resize["selectionEnd"];eAL.toggle(eAL.resize["id"]);return false;};EAL.prototype.resize_area=function(e){var allow,newHeight,newWidth;allow=eAs[eAL.resize["id"]]["settings"]["allow_resize"];if(allow=="both"||allow=="y"){newHeight=Math.max(20,getMouseY(e)-eAL.resize["start_top"]);document.getElementById("edit_area_resize").style.height=newHeight+"px";}if(allow=="both"||allow=="x"){newWidth=Math.max(20,getMouseX(e)-eAL.resize["start_left"]);document.getElementById("edit_area_resize").style.width=newWidth+"px";}return false;};eAL.waiting_loading["resize_area.js"]="loaded"; - EAL.prototype.get_regexp=function(text_array){res="(\\b)(";for(i=0;i<text_array.length;i++){if(i>0)res+="|";res+=this.get_escaped_regexp(text_array[i]);}res+=")(\\b)";reg=new RegExp(res);return res;};EAL.prototype.get_escaped_regexp=function(str){return str.toString().replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\}|\{|\$|\^|\|)/g,"\\$1");};EAL.prototype.init_syntax_regexp=function(){var lang_style={};for(var lang in this.load_syntax){if(!this.syntax[lang]){this.syntax[lang]={};this.syntax[lang]["keywords_reg_exp"]={};this.keywords_reg_exp_nb=0;if(this.load_syntax[lang]['KEYWORDS']){param="g";if(this.load_syntax[lang]['KEYWORD_CASE_SENSITIVE']===false)param+="i";for(var i in this.load_syntax[lang]['KEYWORDS']){if(typeof(this.load_syntax[lang]['KEYWORDS'][i])=="function")continue;this.syntax[lang]["keywords_reg_exp"][i]=new RegExp(this.get_regexp(this.load_syntax[lang]['KEYWORDS'][i]),param);this.keywords_reg_exp_nb++;}}if(this.load_syntax[lang]['OPERATORS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['OPERATORS']){if(typeof(this.load_syntax[lang]['OPERATORS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['OPERATORS'][i]);nb++;}if(str.length>0)this.syntax[lang]["operators_reg_exp"]=new RegExp("("+str+")","g");}if(this.load_syntax[lang]['DELIMITERS']){var str="";var nb=0;for(var i in this.load_syntax[lang]['DELIMITERS']){if(typeof(this.load_syntax[lang]['DELIMITERS'][i])=="function")continue;if(nb>0)str+="|";str+=this.get_escaped_regexp(this.load_syntax[lang]['DELIMITERS'][i]);nb++;}if(str.length>0)this.syntax[lang]["delimiters_reg_exp"]=new RegExp("("+str+")","g");}var syntax_trace=[];this.syntax[lang]["quotes"]={};var quote_tab=[];if(this.load_syntax[lang]['QUOTEMARKS']){for(var i in this.load_syntax[lang]['QUOTEMARKS']){if(typeof(this.load_syntax[lang]['QUOTEMARKS'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['QUOTEMARKS'][i]);this.syntax[lang]["quotes"][x]=x;quote_tab[quote_tab.length]="("+x+"(\\\\.|[^"+x+"])*(?:"+x+"|$))";syntax_trace.push(x);}}this.syntax[lang]["comments"]={};if(this.load_syntax[lang]['COMMENT_SINGLE']){for(var i in this.load_syntax[lang]['COMMENT_SINGLE']){if(typeof(this.load_syntax[lang]['COMMENT_SINGLE'][i])=="function")continue;var x=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_SINGLE'][i]);quote_tab[quote_tab.length]="("+x+"(.|\\r|\\t)*(\\n|$))";syntax_trace.push(x);this.syntax[lang]["comments"][x]="\n";}}if(this.load_syntax[lang]['COMMENT_MULTI']){for(var i in this.load_syntax[lang]['COMMENT_MULTI']){if(typeof(this.load_syntax[lang]['COMMENT_MULTI'][i])=="function")continue;var start=this.get_escaped_regexp(i);var end=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_MULTI'][i]);quote_tab[quote_tab.length]="("+start+"(.|\\n|\\r)*?("+end+"|$))";syntax_trace.push(start);syntax_trace.push(end);this.syntax[lang]["comments"][i]=this.load_syntax[lang]['COMMENT_MULTI'][i];}}if(quote_tab.length>0)this.syntax[lang]["comment_or_quote_reg_exp"]=new RegExp("("+quote_tab.join("|")+")","gi");if(syntax_trace.length>0)this.syntax[lang]["syntax_trace_regexp"]=new RegExp("((.|\n)*?)(\\\\*("+syntax_trace.join("|")+"|$))","gmi");if(this.load_syntax[lang]['SCRIPT_DELIMITERS']){this.syntax[lang]["script_delimiters"]={};for(var i in this.load_syntax[lang]['SCRIPT_DELIMITERS']){if(typeof(this.load_syntax[lang]['SCRIPT_DELIMITERS'][i])=="function")continue;this.syntax[lang]["script_delimiters"][i]=this.load_syntax[lang]['SCRIPT_DELIMITERS'];}}this.syntax[lang]["custom_regexp"]={};if(this.load_syntax[lang]['REGEXPS']){for(var i in this.load_syntax[lang]['REGEXPS']){if(typeof(this.load_syntax[lang]['REGEXPS'][i])=="function")continue;var val=this.load_syntax[lang]['REGEXPS'][i];if(!this.syntax[lang]["custom_regexp"][val['execute']])this.syntax[lang]["custom_regexp"][val['execute']]={};this.syntax[lang]["custom_regexp"][val['execute']][i]={'regexp':new RegExp(val['search'],val['modifiers']),'class':val['class']};}}if(this.load_syntax[lang]['STYLES']){lang_style[lang]={};for(var i in this.load_syntax[lang]['STYLES']){if(typeof(this.load_syntax[lang]['STYLES'][i])=="function")continue;if(typeof(this.load_syntax[lang]['STYLES'][i])!="string"){for(var j in this.load_syntax[lang]['STYLES'][i]){lang_style[lang][j]=this.load_syntax[lang]['STYLES'][i][j];}} -else{lang_style[lang][i]=this.load_syntax[lang]['STYLES'][i];}}}var style="";for(var i in lang_style[lang]){if(lang_style[lang][i].length>0){style+="."+lang+" ."+i.toLowerCase()+" span{"+lang_style[lang][i]+"}\n";style+="."+lang+" ."+i.toLowerCase()+"{"+lang_style[lang][i]+"}\n";}}this.syntax[lang]["styles"]=style;}}};eAL.waiting_loading["reg_syntax.js"]="loaded"; -var editAreaLoader= eAL;var editAreas=eAs;EditAreaLoader=EAL;editAreaLoader.iframe_script= "<script type='text/javascript'> Ã EA(){var t=Á;t.error=Ì;t.inlinePopup=[{popup_id:\"area_search_replace\",icon_id:\"search\"},{popup_id:\"edit_area_help\",icon_id:\"help\"}];t.plugins={};t.line_number=0;È.eAL.set_browser_infos(t);if(t.isIE >=8)t.isIE=7;t.É={};t.last_text_to_highlight=\"\";t.last_hightlighted_text=\"\";t.syntax_list=[];t.allready_used_syntax={};t.check_line_selection_timer=50;t.ÂFocused=Ì;t.highlight_selection_line=null;t.previous=[];t.next=[];t.last_undo=\"\";t.files={};t.filesIdAssoc={};t.curr_file='';t.assocBracket={};t.revertAssocBracket={};t.assocBracket[\"(\"]=\")\";t.assocBracket[\"{\"]=\"}\";t.assocBracket[\"[\"]=\"]\";for(var index in t.assocBracket){t.revertAssocBracket[t.assocBracket[index]]=index;}t.is_editable=Ë;t.lineHeight=16;t.tab_nb_char=8;if(t.isOpera)t.tab_nb_char=6;t.is_tabbing=Ì;t.fullscreen={'isFull':Ì};t.isResizing=Ì;t.id=area_id;t.Å=eAs[t.id][\"Å\"];if((\"\"+t.Å['replace_tab_by_spaces']).match(/^[0-9]+$/)){t.tab_nb_char=t.Å['replace_tab_by_spaces'];t.tabulation=\"\";for(var i=0;i<t.tab_nb_char;i++)t.tabulation+=\" \";}\nelse{t.tabulation=\"\t\";}if(t.Å[\"syntax_selection_allow\"]&&t.Å[\"syntax_selection_allow\"].Æ>0)t.syntax_list=t.Å[\"syntax_selection_allow\"].replace(/ /g,\"\").split(\",\");if(t.Å['syntax'])t.allready_used_syntax[t.Å['syntax']]=Ë;};EA.Ä.init=Ã(){var t=Á,a,s=t.Å;t.Â=_$(\"Â\");t.container=_$(\"container\");t.result=_$(\"result\");t.content_highlight=_$(\"content_highlight\");t.selection_field=_$(\"selection_field\");t.selection_field_text=_$(\"selection_field_text\");t.processing_screen=_$(\"processing\");t.editor_area=_$(\"editor\");t.tab_browsing_area=_$(\"tab_browsing_area\");t.test_font_size=_$(\"test_font_size\");a=t.Â;if(!s['is_editable'])t.set_editable(Ì);t.set_show_line_colors(s['show_line_colors']);if(syntax_selec=_$(\"syntax_selection\")){for(var i=0;i<t.syntax_list.Æ;i++){var syntax=t.syntax_list[i];var option=document.createElement(\"option\");option.Ê=syntax;if(syntax==s['syntax'])option.selected=\"selected\";option.innerHTML=t.get_translation(\"syntax_\"+syntax,\"word\");syntax_selec.appendChild(option);}}spans=È.getChildren(_$(\"toolbar_1\"),\"span\",\"\",\"\",\"all\",-1);for(var i=0;i<spans.Æ;i++){id=spans[i].id.replace(/tmp_tool_(.*)/,\"$1\");if(id!=spans[i].id){for(var j in t.plugins){if(typeof(t.plugins[j].get_control_html)==\"Ã\"){html=t.plugins[j].get_control_html(id);if(html!=Ì){html=t.get_translation(html,\"template\");var new_span=document.createElement(\"span\");new_span.innerHTML=html;var father=spans[i].ÈNode;spans[i].ÈNode.replaceChild(new_span,spans[i]);break;}}}}}if(s[\"debug\"]){t.debug=È.document.getElementById(\"edit_area_debug_\"+t.id);}if(_$(\"redo\")!=null)t.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);if(typeof(È.eAL.syntax[s[\"syntax\"]])!=\"undefined\"){for(var i in È.eAL.syntax){if(typeof(È.eAL.syntax[i][\"Çs\"])!=\"undefined\"){t.add_Ç(È.eAL.syntax[i][\"Çs\"]);}}}if(t.isOpera)_$(\"editor\").onkeypress=keyDown;\nelse _$(\"editor\").onkeydown=keyDown;for(var i=0;i<t.inlinePopup.Æ;i++){if(t.isOpera)_$(t.inlinePopup[i][\"popup_id\"]).onkeypress=keyDown;\nelse _$(t.inlinePopup[i][\"popup_id\"]).onkeydown=keyDown;}if(s[\"allow_resize\"]==\"both\"||s[\"allow_resize\"]==\"x\"||s[\"allow_resize\"]==\"y\")t.allow_resize(Ë);È.eAL.toggle(t.id,\"on\");t.change_smooth_selection_mode(eA.smooth_selection);t.execCommand(\"change_highlight\",s[\"start_highlight\"]);t.set_font(eA.Å[\"font_family\"],eA.Å[\"font_size\"]);children=È.getChildren(document.body,\"\",\"selec\",\"none\",\"all\",-1);for(var i=0;i<children.Æ;i++){if(t.isIE)children[i].unselectable=Ë;\nelse children[i].onmousedown=Ã(){return Ì};}a.spellcheck=s[\"gecko_spellcheck\"];if(t.isFirefox >='3'){t.content_highlight.Ç.paddingLeft=\"1px\";t.selection_field.Ç.paddingLeft=\"1px\";t.selection_field_text.Ç.paddingLeft=\"1px\";}if(t.isIE&&t.isIE < 8){a.Ç.marginTop=\"-1px\";}if(t.isSafari){t.editor_area.Ç.position=\"absolute\";a.Ç.marginLeft=\"-3px\";if(t.isSafari < 3.2)a.Ç.marginTop=\"1px\";}È.eAL.add_event(t.result,\"click\",Ã(e){if((e.target||e.srcElement)==eA.result){eA.area_select(eA.Â.Ê.Æ,0);}});if(s['is_multi_files']!=Ì)t.open_file({'id':t.curr_file,'text':''});t.set_word_wrap(s['word_wrap']);setTimeout(\"eA.focus();eA.manage_size();eA.execCommand('EA_load');\",10);t.check_undo();t.check_line_selection(Ë);t.scroll_to_view();for(var i in t.plugins){if(typeof(t.plugins[i].onload)==\"Ã\")t.plugins[i].onload();}if(s['fullscreen']==Ë)t.toggle_full_screen(Ë);È.eAL.add_event(window,\"resize\",eA.update_size);È.eAL.add_event(È.window,\"resize\",eA.update_size);È.eAL.add_event(top.window,\"resize\",eA.update_size);È.eAL.add_event(window,\"unload\",Ã(){if(È.eAL){È.eAL.remove_event(È.window,\"resize\",eA.update_size);È.eAL.remove_event(top.window,\"resize\",eA.update_size);}if(eAs[eA.id]&&eAs[eA.id][\"displayed\"]){eA.execCommand(\"EA_unload\");}});};EA.Ä.update_size=Ã(){var d=document,pd=È.document,height,width,popup,maxLeft,maxTop;if(typeof eAs !='undefined'&&eAs[eA.id]&&eAs[eA.id][\"displayed\"]==Ë){if(eA.fullscreen['isFull']){pd.getElementById(\"frame_\"+eA.id).Ç.width=pd.getElementsByTagName(\"html\")[0].clientWidth+\"px\";pd.getElementById(\"frame_\"+eA.id).Ç.height=pd.getElementsByTagName(\"html\")[0].clientHeight+\"px\";}if(eA.tab_browsing_area.Ç.display=='block'&&(!eA.isIE||eA.isIE >=8)){eA.tab_browsing_area.Ç.height=\"0px\";eA.tab_browsing_area.Ç.height=(eA.result.offsetTop-eA.tab_browsing_area.offsetTop-1)+\"px\";}height=d.body.offsetHeight-eA.get_all_toolbar_height()-4;eA.result.Ç.height=height+\"px\";width=d.body.offsetWidth-2;eA.result.Ç.width=width+\"px\";for(i=0;i < eA.inlinePopup.Æ;i++){popup=_$(eA.inlinePopup[i][\"popup_id\"]);maxLeft=d.body.offsetWidth-popup.offsetWidth;maxTop=d.body.offsetHeight-popup.offsetHeight;if(popup.offsetTop > maxTop)popup.Ç.top=maxTop+\"px\";if(popup.offsetLeft > maxLeft)popup.Ç.left=maxLeft+\"px\";}eA.manage_size(Ë);eA.fixLinesHeight(eA.Â.Ê,0,-1);}};EA.Ä.manage_size=Ã(onlyOneTime){if(!eAs[Á.id])return Ì;if(eAs[Á.id][\"displayed\"]==Ë&&Á.ÂFocused){var area_height,resized=Ì;if(!Á.Å['word_wrap']){var area_width=Á.Â.scrollWidth;area_height=Á.Â.scrollHeight;if(Á.isOpera&&Á.isOpera < 9.6){area_width=10000;}if(Á.Â.previous_scrollWidth!=area_width){Á.container.Ç.width=area_width+\"px\";Á.Â.Ç.width=area_width+\"px\";Á.content_highlight.Ç.width=area_width+\"px\";Á.Â.previous_scrollWidth=area_width;resized=Ë;}}if(Á.Å['word_wrap']){newW=Á.Â.offsetWidth;if(Á.isFirefox||Á.isIE)newW-=2;if(Á.isSafari)newW-=6;Á.content_highlight.Ç.width=Á.selection_field_text.Ç.width=Á.selection_field.Ç.width=Á.test_font_size.Ç.width=newW+\"px\";}if(Á.isOpera||Á.isFirefox||Á.isSafari){area_height=Á.getLinePosTop(Á.É[\"nb_line\"]+1);}\nelse{area_height=Á.Â.scrollHeight;}if(Á.Â.previous_scrollHeight!=area_height){Á.container.Ç.height=(area_height+2)+\"px\";Á.Â.Ç.height=area_height+\"px\";Á.content_highlight.Ç.height=area_height+\"px\";Á.Â.previous_scrollHeight=area_height;resized=Ë;}if(Á.É[\"nb_line\"] >=Á.line_number){var newLines='',destDiv=_$(\"line_number\"),start=Á.line_number,end=Á.É[\"nb_line\"]+100;for(i=start+1;i < end;i++){newLines+='<div id=\"line_'+i+'\">'+i+\"</div>\";Á.line_number++;}destDiv.innerHTML=destDiv.innerHTML+newLines;Á.fixLinesHeight(Á.Â.Ê,start,-1);}Á.Â.scrollTop=\"0px\";Á.Â.scrollLeft=\"0px\";if(resized==Ë){Á.scroll_to_view();}}if(!onlyOneTime)setTimeout(\"eA.manage_size();\",100);};EA.Ä.execCommand=Ã(cmd,param){for(var i in Á.plugins){if(typeof(Á.plugins[i].execCommand)==\"Ã\"){if(!Á.plugins[i].execCommand(cmd,param))return;}}switch(cmd){case \"save\":if(Á.Å[\"save_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"save_callback\"]+\"('\"+Á.id+\"',eA.Â.Ê);\");break;case \"load\":if(Á.Å[\"load_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"load_callback\"]+\"('\"+Á.id+\"');\");break;case \"onchange\":if(Á.Å[\"change_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"change_callback\"]+\"('\"+Á.id+\"');\");break;case \"EA_load\":if(Á.Å[\"EA_load_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_load_callback\"]+\"('\"+Á.id+\"');\");break;case \"EA_unload\":if(Á.Å[\"EA_unload_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_unload_callback\"]+\"('\"+Á.id+\"');\");break;case \"toggle_on\":if(Á.Å[\"EA_toggle_on_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_toggle_on_callback\"]+\"('\"+Á.id+\"');\");break;case \"toggle_off\":if(Á.Å[\"EA_toggle_off_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_toggle_off_callback\"]+\"('\"+Á.id+\"');\");break;case \"re_sync\":if(!Á.do_highlight)break;case \"file_switch_on\":if(Á.Å[\"EA_file_switch_on_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_file_switch_on_callback\"]+\"(param);\");break;case \"file_switch_off\":if(Á.Å[\"EA_file_switch_off_callback\"].Æ>0)eval(\"È.\"+Á.Å[\"EA_file_switch_off_callback\"]+\"(param);\");break;case \"file_close\":if(Á.Å[\"EA_file_close_callback\"].Æ>0)return eval(\"È.\"+Á.Å[\"EA_file_close_callback\"]+\"(param);\");break;default:if(typeof(eval(\"eA.\"+cmd))==\"Ã\"){if(Á.Å[\"debug\"])eval(\"eA.\"+cmd+\"(param);\");\nelse try{eval(\"eA.\"+cmd+\"(param);\");}catch(e){};}}};EA.Ä.get_translation=Ã(word,mode){if(mode==\"template\")return È.eAL.translate(word,Á.Å[\"language\"],mode);\nelse return È.eAL.get_word_translation(word,Á.Å[\"language\"]);};EA.Ä.add_plugin=Ã(plug_name,plug_obj){for(var i=0;i<Á.Å[\"plugins\"].Æ;i++){if(Á.Å[\"plugins\"][i]==plug_name){Á.plugins[plug_name]=plug_obj;plug_obj.baseURL=È.eAL.baseURL+\"plugins/\"+plug_name+\"/\";if(typeof(plug_obj.init)==\"Ã\")plug_obj.init();}}};EA.Ä.load_css=Ã(url){try{link=document.createElement(\"link\");link.type=\"text/css\";link.rel=\"Çsheet\";link.media=\"all\";link.href=url;head=document.getElementsByTagName(\"head\");head[0].appendChild(link);}catch(e){document.write(\"<link href='\"+url+\"' rel='Çsheet' type='text/css' />\");}};EA.Ä.load_script=Ã(url){try{script=document.createElement(\"script\");script.type=\"text/javascript\";script.src=url;script.charset=\"UTF-8\";head=document.getElementsByTagName(\"head\");head[0].appendChild(script);}catch(e){document.write(\"<script type='text/javascript' src='\"+url+\"' charset=\\\"UTF-8\\\"><\"+\"/script>\");}};EA.Ä.add_lang=Ã(language,Ês){if(!È.eAL.lang[language])È.eAL.lang[language]={};for(var i in Ês)È.eAL.lang[language][i]=Ês[i];};Ã _$(id){return document.getElementById(id);};var eA=new EA();È.eAL.add_event(window,\"load\",init);Ã init(){setTimeout(\"eA.init();\",10);}; EA.Ä.focus=Ã(){Á.Â.focus();Á.ÂFocused=Ë;};EA.Ä.check_line_selection=Ã(timer_checkup){var changes,infos,new_top,new_width,i;var t1=t2=t2_1=t3=tLines=tend=new Date().getTime();if(!eAs[Á.id])return Ì;if(!Á.smooth_selection&&!Á.do_highlight){}\nelse if(Á.ÂFocused&&eAs[Á.id][\"displayed\"]==Ë&&Á.isResizing==Ì){infos=Á.get_selection_infos();changes=Á.checkTextEvolution(typeof(Á.É['full_text'])=='undefined' ? '':Á.É['full_text'],infos['full_text']);t2=new Date().getTime();if(Á.É[\"line_start\"] !=infos[\"line_start\"]||Á.É[\"line_nb\"] !=infos[\"line_nb\"]||infos[\"full_text\"] !=Á.É[\"full_text\"]||Á.reload_highlight||Á.É[\"selectionStart\"] !=infos[\"selectionStart\"]||Á.É[\"selectionEnd\"] !=infos[\"selectionEnd\"]||!timer_checkup){new_top=Á.getLinePosTop(infos[\"line_start\"]);new_width=Math.max(Á.Â.scrollWidth,Á.container.clientWidth-50);Á.selection_field.Ç.top=Á.selection_field_text.Ç.top=new_top+\"px\";if(!Á.Å['word_wrap']){Á.selection_field.Ç.width=Á.selection_field_text.Ç.width=Á.test_font_size.Ç.width=new_width+\"px\";}if(Á.do_highlight==Ë){var curr_text=infos[\"full_text\"].split(\"\\n\");var content=\"\";var start=Math.max(0,infos[\"line_start\"]-1);var end=Math.min(curr_text.Æ,infos[\"line_start\"]+infos[\"line_nb\"]-1);for(i=start;i< end;i++){content+=curr_text[i]+\"\\n\";}selLength=infos['selectionEnd']-infos['selectionStart'];content=content.substr(0,infos[\"curr_pos\"]-1)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1,selLength)+\"\\r\\r\"+content.substr(infos[\"curr_pos\"]-1+selLength);content='<span>'+content.replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(\"\\r\\r\",'</span><strong>').replace(\"\\r\\r\",'</strong><span>')+'</span>';if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){Á.selection_field.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{Á.selection_field.innerHTML=content;}Á.selection_field_text.innerHTML=Á.selection_field.innerHTML;t2_1=new Date().getTime();if(Á.reload_highlight||(infos[\"full_text\"] !=Á.last_text_to_highlight&&(Á.É[\"line_start\"]!=infos[\"line_start\"]||Á.show_line_colors||Á.Å['word_wrap']||Á.É[\"line_nb\"]!=infos[\"line_nb\"]||Á.É[\"nb_line\"]!=infos[\"nb_line\"]))){Á.maj_highlight(infos);}}}t3=new Date().getTime();if(Á.Å['word_wrap']&&infos[\"full_text\"] !=Á.É[\"full_text\"]){if(changes.newText.split(\"\\n\").Æ==1&&Á.É['nb_line']&&infos['nb_line']==Á.É['nb_line']){Á.fixLinesHeight(infos['full_text'],changes.lineStart,changes.lineStart);}\nelse{Á.fixLinesHeight(infos['full_text'],changes.lineStart,-1);}}tLines=new Date().getTime();if(infos[\"line_start\"] !=Á.É[\"line_start\"]||infos[\"curr_pos\"] !=Á.É[\"curr_pos\"]||infos[\"full_text\"].Æ!=Á.É[\"full_text\"].Æ||Á.reload_highlight||!timer_checkup){var selec_char=infos[\"curr_line\"].charAt(infos[\"curr_pos\"]-1);var no_real_move=Ë;if(infos[\"line_nb\"]==1&&(Á.assocBracket[selec_char]||Á.revertAssocBracket[selec_char])){no_real_move=Ì;if(Á.findEndBracket(infos,selec_char)===Ë){_$(\"end_bracket\").Ç.visibility=\"visible\";_$(\"cursor_pos\").Ç.visibility=\"visible\";_$(\"cursor_pos\").innerHTML=selec_char;_$(\"end_bracket\").innerHTML=(Á.assocBracket[selec_char]||Á.revertAssocBracket[selec_char]);}\nelse{_$(\"end_bracket\").Ç.visibility=\"hidden\";_$(\"cursor_pos\").Ç.visibility=\"hidden\";}}\nelse{_$(\"cursor_pos\").Ç.visibility=\"hidden\";_$(\"end_bracket\").Ç.visibility=\"hidden\";}Á.displayToCursorPosition(\"cursor_pos\",infos[\"line_start\"],infos[\"curr_pos\"]-1,infos[\"curr_line\"],no_real_move);if(infos[\"line_nb\"]==1&&infos[\"line_start\"]!=Á.É[\"line_start\"])Á.scroll_to_view();}Á.É=infos;}tend=new Date().getTime();if(timer_checkup){setTimeout(\"eA.check_line_selection(Ë)\",Á.check_line_selection_timer);}};EA.Ä.get_selection_infos=Ã(){var sel={},start,end,len,str;Á.getIESelection();start=Á.Â.selectionStart;end=Á.Â.selectionEnd;if(Á.É[\"selectionStart\"]==start&&Á.É[\"selectionEnd\"]==end&&Á.É[\"full_text\"]==Á.Â.Ê){return Á.É;}if(Á.tabulation!=\"\t\"&&Á.Â.Ê.indexOf(\"\t\")!=-1){len=Á.Â.Ê.Æ;Á.Â.Ê=Á.replace_tab(Á.Â.Ê);start=end=start+(Á.Â.Ê.Æ-len);Á.area_select(start,0);}sel[\"selectionStart\"]=start;sel[\"selectionEnd\"]=end;sel[\"full_text\"]=Á.Â.Ê;sel[\"line_start\"]=1;sel[\"line_nb\"]=1;sel[\"curr_pos\"]=0;sel[\"curr_line\"]=\"\";sel[\"indexOfCursor\"]=0;sel[\"selec_direction\"]=Á.É[\"selec_direction\"];var splitTab=sel[\"full_text\"].split(\"\\n\");var nbLine=Math.max(0,splitTab.Æ);var nbChar=Math.max(0,sel[\"full_text\"].Æ-(nbLine-1));if(sel[\"full_text\"].indexOf(\"\\r\")!=-1)nbChar=nbChar-(nbLine-1);sel[\"nb_line\"]=nbLine;sel[\"nb_char\"]=nbChar;if(start>0){str=sel[\"full_text\"].substr(0,start);sel[\"curr_pos\"]=start-str.lastIndexOf(\"\\n\");sel[\"line_start\"]=Math.max(1,str.split(\"\\n\").Æ);}\nelse{sel[\"curr_pos\"]=1;}if(end>start){sel[\"line_nb\"]=sel[\"full_text\"].substring(start,end).split(\"\\n\").Æ;}sel[\"indexOfCursor\"]=start;sel[\"curr_line\"]=splitTab[Math.max(0,sel[\"line_start\"]-1)];if(sel[\"selectionStart\"]==Á.É[\"selectionStart\"]){if(sel[\"selectionEnd\"]>Á.É[\"selectionEnd\"])sel[\"selec_direction\"]=\"down\";\nelse if(sel[\"selectionEnd\"]==Á.É[\"selectionStart\"])sel[\"selec_direction\"]=Á.É[\"selec_direction\"];}\nelse if(sel[\"selectionStart\"]==Á.É[\"selectionEnd\"]&&sel[\"selectionEnd\"]>Á.É[\"selectionEnd\"]){sel[\"selec_direction\"]=\"down\";}\nelse{sel[\"selec_direction\"]=\"up\";}_$(\"nbLine\").innerHTML=nbLine;_$(\"nbChar\").innerHTML=nbChar;_$(\"linePos\").innerHTML=sel[\"line_start\"];_$(\"currPos\").innerHTML=sel[\"curr_pos\"];return sel;};EA.Ä.getIESelection=Ã(){var selectionStart,selectionEnd,range,stored_range;if(!Á.isIE)return Ì;if(Á.Å['word_wrap'])Á.Â.wrap='off';try{range=document.selection.createRange();stored_range=range.duplicate();stored_range.moveToElementText(Á.Â);stored_range.setEndPoint('EndToEnd',range);if(stored_range.ÈElement()!=Á.Â)throw \"invalid focus\";var scrollTop=Á.result.scrollTop+document.body.scrollTop;var relative_top=range.offsetTop-È.calculeOffsetTop(Á.Â)+scrollTop;var line_start=Math.round((relative_top / Á.lineHeight)+1);var line_nb=Math.round(range.boundingHeight / Á.lineHeight);selectionStart=stored_range.text.Æ-range.text.Æ;selectionStart+=(line_start-Á.Â.Ê.substr(0,selectionStart).split(\"\\n\").Æ)*2;selectionStart-=(line_start-Á.Â.Ê.substr(0,selectionStart).split(\"\\n\").Æ)* 2;selectionEnd=selectionStart+range.text.Æ;selectionEnd+=(line_start+line_nb-1-Á.Â.Ê.substr(0,selectionEnd).split(\"\\n\").Æ)*2;Á.Â.selectionStart=selectionStart;Á.Â.selectionEnd=selectionEnd;}catch(e){}if(Á.Å['word_wrap'])Á.Â.wrap='soft';};EA.Ä.setIESelection=Ã(){var a=Á.Â,nbLineStart,nbLineEnd,range;if(!Á.isIE)return Ì;nbLineStart=a.Ê.substr(0,a.selectionStart).split(\"\\n\").Æ-1;nbLineEnd=a.Ê.substr(0,a.selectionEnd).split(\"\\n\").Æ-1;range=document.selection.createRange();range.moveToElementText(a);range.setEndPoint('EndToStart',range);range.moveStart('character',a.selectionStart-nbLineStart);range.moveEnd('character',a.selectionEnd-nbLineEnd-(a.selectionStart-nbLineStart));range.select();};EA.Ä.checkTextEvolution=Ã(lastText,newText){var ch={},baseStep=200,cpt=0,end,step,tStart=new Date().getTime();end=Math.min(newText.Æ,lastText.Æ);step=baseStep;while(cpt<end&&step>=1){if(lastText.substr(cpt,step)==newText.substr(cpt,step)){cpt+=step;}\nelse{step=Math.floor(step/2);}}ch.posStart=cpt;ch.lineStart=newText.substr(0,ch.posStart).split(\"\\n\").Æ-1;cpt_last=lastText.Æ;cpt=newText.Æ;step=baseStep;while(cpt>=0&&cpt_last>=0&&step>=1){if(lastText.substr(cpt_last-step,step)==newText.substr(cpt-step,step)){cpt-=step;cpt_last-=step;}\nelse{step=Math.floor(step/2);}}ch.posNewEnd=cpt;ch.posLastEnd=cpt_last;if(ch.posNewEnd<=ch.posStart){if(lastText.Æ < newText.Æ){ch.posNewEnd=ch.posStart+newText.Æ-lastText.Æ;ch.posLastEnd=ch.posStart;}\nelse{ch.posLastEnd=ch.posStart+lastText.Æ-newText.Æ;ch.posNewEnd=ch.posStart;}}ch.newText=newText.substring(ch.posStart,ch.posNewEnd);ch.lastText=lastText.substring(ch.posStart,ch.posLastEnd);ch.lineNewEnd=newText.substr(0,ch.posNewEnd).split(\"\\n\").Æ-1;ch.lineLastEnd=lastText.substr(0,ch.posLastEnd).split(\"\\n\").Æ-1;ch.newTextLine=newText.split(\"\\n\").slice(ch.lineStart,ch.lineNewEnd+1).join(\"\\n\");ch.lastTextLine=lastText.split(\"\\n\").slice(ch.lineStart,ch.lineLastEnd+1).join(\"\\n\");return ch;};EA.Ä.tab_selection=Ã(){if(Á.is_tabbing)return;Á.is_tabbing=Ë;Á.getIESelection();var start=Á.Â.selectionStart;var end=Á.Â.selectionEnd;var insText=Á.Â.Ê.substring(start,end);var pos_start=start;var pos_end=end;if(insText.Æ==0){Á.Â.Ê=Á.Â.Ê.substr(0,start)+Á.tabulation+Á.Â.Ê.substr(end);pos_start=start+Á.tabulation.Æ;pos_end=pos_start;}\nelse{start=Math.max(0,Á.Â.Ê.substr(0,start).lastIndexOf(\"\\n\")+1);endText=Á.Â.Ê.substr(end);startText=Á.Â.Ê.substr(0,start);tmp=Á.Â.Ê.substring(start,end).split(\"\\n\");insText=Á.tabulation+tmp.join(\"\\n\"+Á.tabulation);Á.Â.Ê=startText+insText+endText;pos_start=start;pos_end=Á.Â.Ê.indexOf(\"\\n\",startText.Æ+insText.Æ);if(pos_end==-1)pos_end=Á.Â.Ê.Æ;}Á.Â.selectionStart=pos_start;Á.Â.selectionEnd=pos_end;if(Á.isIE){Á.setIESelection();setTimeout(\"eA.is_tabbing=Ì;\",100);}\nelse{Á.is_tabbing=Ì;}};EA.Ä.invert_tab_selection=Ã(){var t=Á,a=Á.Â;if(t.is_tabbing)return;t.is_tabbing=Ë;t.getIESelection();var start=a.selectionStart;var end=a.selectionEnd;var insText=a.Ê.substring(start,end);var pos_start=start;var pos_end=end;if(insText.Æ==0){if(a.Ê.substring(start-t.tabulation.Æ,start)==t.tabulation){a.Ê=a.Ê.substr(0,start-t.tabulation.Æ)+a.Ê.substr(end);pos_start=Math.max(0,start-t.tabulation.Æ);pos_end=pos_start;}}\nelse{start=a.Ê.substr(0,start).lastIndexOf(\"\\n\")+1;endText=a.Ê.substr(end);startText=a.Ê.substr(0,start);tmp=a.Ê.substring(start,end).split(\"\\n\");insText=\"\";for(i=0;i<tmp.Æ;i++){for(j=0;j<t.tab_nb_char;j++){if(tmp[i].charAt(0)==\"\t\"){tmp[i]=tmp[i].substr(1);j=t.tab_nb_char;}\nelse if(tmp[i].charAt(0)==\" \")tmp[i]=tmp[i].substr(1);}insText+=tmp[i];if(i<tmp.Æ-1)insText+=\"\\n\";}a.Ê=startText+insText+endText;pos_start=start;pos_end=a.Ê.indexOf(\"\\n\",startText.Æ+insText.Æ);if(pos_end==-1)pos_end=a.Ê.Æ;}a.selectionStart=pos_start;a.selectionEnd=pos_end;if(t.isIE){t.setIESelection();setTimeout(\"eA.is_tabbing=Ì;\",100);}\nelse t.is_tabbing=Ì;};EA.Ä.press_enter=Ã(){if(!Á.smooth_selection)return Ì;Á.getIESelection();var scrollTop=Á.result.scrollTop;var scrollLeft=Á.result.scrollLeft;var start=Á.Â.selectionStart;var end=Á.Â.selectionEnd;var start_last_line=Math.max(0,Á.Â.Ê.substring(0,start).lastIndexOf(\"\\n\")+1);var begin_line=Á.Â.Ê.substring(start_last_line,start).replace(/^([ \t]*).*/gm,\"$1\");var lineStart=Á.Â.Ê.substring(0,start).split(\"\\n\").Æ;if(begin_line==\"\\n\"||begin_line==\"\\r\"||begin_line.Æ==0){return Ì;}if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){begin_line=\"\\r\\n\"+begin_line;}\nelse{begin_line=\"\\n\"+begin_line;}Á.Â.Ê=Á.Â.Ê.substring(0,start)+begin_line+Á.Â.Ê.substring(end);Á.area_select(start+begin_line.Æ,0);if(Á.isIE){Á.result.scrollTop=scrollTop;Á.result.scrollLeft=scrollLeft;}return Ë;};EA.Ä.findEndBracket=Ã(infos,bracket){var start=infos[\"indexOfCursor\"];var normal_order=Ë;if(Á.assocBracket[bracket])endBracket=Á.assocBracket[bracket];\nelse if(Á.revertAssocBracket[bracket]){endBracket=Á.revertAssocBracket[bracket];normal_order=Ì;}var end=-1;var nbBracketOpen=0;for(var i=start;i<infos[\"full_text\"].Æ&&i>=0;){if(infos[\"full_text\"].charAt(i)==endBracket){nbBracketOpen--;if(nbBracketOpen<=0){end=i;break;}}\nelse if(infos[\"full_text\"].charAt(i)==bracket)nbBracketOpen++;if(normal_order)i++;\nelse i--;}if(end==-1)return Ì;var endLastLine=infos[\"full_text\"].substr(0,end).lastIndexOf(\"\\n\");if(endLastLine==-1)line=1;\nelse line=infos[\"full_text\"].substr(0,endLastLine).split(\"\\n\").Æ+1;var curPos=end-endLastLine-1;var endLineLength=infos[\"full_text\"].substring(end).split(\"\\n\")[0].Æ;Á.displayToCursorPosition(\"end_bracket\",line,curPos,infos[\"full_text\"].substring(endLastLine+1,end+endLineLength));return Ë;};EA.Ä.displayToCursorPosition=Ã(id,start_line,cur_pos,lineContent,no_real_move){var elem,dest,content,posLeft=0,posTop,fixPadding,topOffset,endElem;elem=Á.test_font_size;dest=_$(id);content=\"<span id='test_font_size_inner'>\"+lineContent.substr(0,cur_pos).replace(/&/g,\"&\").replace(/</g,\"<\")+\"</span><span id='endTestFont'>\"+lineContent.substr(cur_pos).replace(/&/g,\"&\").replace(/</g,\"<\")+\"</span>\";if(Á.isIE||(Á.isOpera&&Á.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}endElem=_$('endTestFont');topOffset=endElem.offsetTop;fixPadding=parseInt(Á.content_highlight.Ç.paddingLeft.replace(\"px\",\"\"));posLeft=45+endElem.offsetLeft+(!isNaN(fixPadding)&&topOffset > 0 ? fixPadding:0);posTop=Á.getLinePosTop(start_line)+topOffset;if(Á.isIE&&cur_pos > 0&&endElem.offsetLeft==0){posTop+=Á.lineHeight;}if(no_real_move!=Ë){dest.Ç.top=posTop+\"px\";dest.Ç.left=posLeft+\"px\";}dest.cursor_top=posTop;dest.cursor_left=posLeft;};EA.Ä.getLinePosTop=Ã(start_line){var elem=_$('line_'+start_line),posTop=0;if(elem)posTop=elem.offsetTop;\nelse posTop=Á.lineHeight *(start_line-1);return posTop;};EA.Ä.getTextHeight=Ã(text){var t=Á,elem,height;elem=t.test_font_size;content=text.replace(/&/g,\"&\").replace(/</g,\"<\");if(t.isIE||(Á.isOpera&&Á.isOpera < 9.6)){elem.innerHTML=\"<pre>\"+content.replace(/^\\r?\\n/,\"<br>\")+\"</pre>\";}\nelse{elem.innerHTML=content;}height=elem.offsetHeight;height=Math.max(1,Math.floor(elem.offsetHeight / Á.lineHeight))* Á.lineHeight;return height;};EA.Ä.fixLinesHeight=Ã(textValue,lineStart,lineEnd){var aText=textValue.split(\"\\n\");if(lineEnd==-1)lineEnd=aText.Æ-1;for(var i=Math.max(0,lineStart);i <=lineEnd;i++){if(elem=_$('line_'+(i+1))){elem.Ç.height=typeof(aText[i])!=\"undefined\" ? Á.getTextHeight(aText[i])+\"px\":Á.lineHeight;}}};EA.Ä.area_select=Ã(start,Æ){Á.Â.focus();start=Math.max(0,Math.min(Á.Â.Ê.Æ,start));end=Math.max(start,Math.min(Á.Â.Ê.Æ,start+Æ));if(Á.isIE){Á.Â.selectionStart=start;Á.Â.selectionEnd=end;Á.setIESelection();}\nelse{if(Á.isOpera&&Á.isOpera < 9.6){Á.Â.setSelectionRange(0,0);}Á.Â.setSelectionRange(start,end);}Á.check_line_selection();};EA.Ä.area_get_selection=Ã(){var text=\"\";if(document.selection){var range=document.selection.createRange();text=range.text;}\nelse{text=Á.Â.Ê.substring(Á.Â.selectionStart,Á.Â.selectionEnd);}return text;}; EA.Ä.replace_tab=Ã(text){return text.replace(/((\\n?)([^\t\\n]*)\t)/gi,eA.smartTab);};EA.Ä.smartTab=Ã(){val=\" \";return EA.Ä.smartTab.arguments[2]+EA.Ä.smartTab.arguments[3]+val.substr(0,eA.tab_nb_char-(EA.Ä.smartTab.arguments[3].Æ)%eA.tab_nb_char);};EA.Ä.show_waiting_screen=Ã(){width=Á.editor_area.offsetWidth;height=Á.editor_area.offsetHeight;if(!(Á.isIE&&Á.isIE<6)){width-=2;height-=2;}Á.processing_screen.Ç.display=\"block\";Á.processing_screen.Ç.width=width+\"px\";Á.processing_screen.Ç.height=height+\"px\";Á.waiting_screen_displayed=Ë;};EA.Ä.hide_waiting_screen=Ã(){Á.processing_screen.Ç.display=\"none\";Á.waiting_screen_displayed=Ì;};EA.Ä.add_Ç=Ã(Çs){if(Çs.Æ>0){newcss=document.createElement(\"Ç\");newcss.type=\"text/css\";newcss.media=\"all\";if(newcss.ÇSheet){newcss.ÇSheet.cssText=Çs;}\nelse{newcss.appendChild(document.createTextNode(Çs));}document.getElementsByTagName(\"head\")[0].appendChild(newcss);}};EA.Ä.set_font=Ã(family,size){var t=Á,a=Á.Â,s=Á.Å,elem_font,i,elem;var elems=[\"Â\",\"content_highlight\",\"cursor_pos\",\"end_bracket\",\"selection_field\",\"selection_field_text\",\"line_number\"];if(family&&family!=\"\")s[\"font_family\"]=family;if(size&&size>0)s[\"font_size\"]=size;if(t.isOpera&&t.isOpera < 9.6)s['font_family']=\"monospace\";if(elem_font=_$(\"area_font_size\")){for(i=0;i < elem_font.Æ;i++){if(elem_font.options[i].Ê&&elem_font.options[i].Ê==s[\"font_size\"])elem_font.options[i].selected=Ë;}}if(t.isFirefox){var nbTry=3;do{var div1=document.createElement('div'),text1=document.createElement('Â');var Çs={width:'40px',overflow:'scroll',zIndex:50,visibility:'hidden',fontFamily:s[\"font_family\"],fontSize:s[\"font_size\"]+\"pt\",lineHeight:t.lineHeight+\"px\",padding:'0',margin:'0',border:'none',whiteSpace:'nowrap'};var diff,changed=Ì;for(i in Çs){div1.Ç[ i ]=Çs[i];text1.Ç[ i ]=Çs[i];}text1.wrap='off';text1.setAttribute('wrap','off');t.container.appendChild(div1);t.container.appendChild(text1);div1.innerHTML=text1.Ê='azertyuiopqsdfghjklm';div1.innerHTML=text1.Ê=text1.Ê+'wxcvbn^p*ù$!:;,,';diff=text1.scrollWidth-div1.scrollWidth;if(Math.abs(diff)>=2){s[\"font_size\"]++;changed=Ë;}t.container.removeChild(div1);t.container.removeChild(text1);nbTry--;}while(changed&&nbTry > 0);}elem=t.test_font_size;elem.Ç.fontFamily=\"\"+s[\"font_family\"];elem.Ç.fontSize=s[\"font_size\"]+\"pt\";elem.innerHTML=\"0\";t.lineHeight=elem.offsetHeight;for(i=0;i<elems.Æ;i++){elem=_$(elems[i]);elem.Ç.fontFamily=s[\"font_family\"];elem.Ç.fontSize=s[\"font_size\"]+\"pt\";elem.Ç.lineHeight=t.lineHeight+\"px\";}t.add_Ç(\"pre{font-family:\"+s[\"font_family\"]+\"}\");if((t.isOpera&&t.isOpera < 9.6)||t.isIE >=8){var parNod=a.ÈNode,nxtSib=a.nextSibling,start=a.selectionStart,end=a.selectionEnd;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);t.area_select(start,end-start);}Á.focus();Á.update_size();Á.check_line_selection();};EA.Ä.change_font_size=Ã(){var size=_$(\"area_font_size\").Ê;if(size>0)Á.set_font(\"\",size);};EA.Ä.open_inline_popup=Ã(popup_id){Á.close_all_inline_popup();var popup=_$(popup_id);var editor=_$(\"editor\");for(var i=0;i<Á.inlinePopup.Æ;i++){if(Á.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(Á.inlinePopup[i][\"icon_id\"]);if(icon){Á.switchClassSticky(icon,'editAreaButtonSelected',Ë);break;}}}popup.Ç.height=\"auto\";popup.Ç.overflow=\"visible\";if(document.body.offsetHeight< popup.offsetHeight){popup.Ç.height=(document.body.offsetHeight-10)+\"px\";popup.Ç.overflow=\"auto\";}if(!popup.positionned){var new_left=editor.offsetWidth /2-popup.offsetWidth /2;var new_top=editor.offsetHeight /2-popup.offsetHeight /2;popup.Ç.left=new_left+\"px\";popup.Ç.top=new_top+\"px\";popup.positionned=Ë;}popup.Ç.visibility=\"visible\";};EA.Ä.close_inline_popup=Ã(popup_id){var popup=_$(popup_id);for(var i=0;i<Á.inlinePopup.Æ;i++){if(Á.inlinePopup[i][\"popup_id\"]==popup_id){var icon=_$(Á.inlinePopup[i][\"icon_id\"]);if(icon){Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);break;}}}popup.Ç.visibility=\"hidden\";};EA.Ä.close_all_inline_popup=Ã(e){for(var i=0;i<Á.inlinePopup.Æ;i++){Á.close_inline_popup(Á.inlinePopup[i][\"popup_id\"]);}Á.Â.focus();};EA.Ä.show_help=Ã(){Á.open_inline_popup(\"edit_area_help\");};EA.Ä.new_document=Ã(){Á.Â.Ê=\"\";Á.area_select(0,0);};EA.Ä.get_all_toolbar_height=Ã(){var area=_$(\"editor\");var results=È.getChildren(area,\"div\",\"class\",\"area_toolbar\",\"all\",\"0\");var height=0;for(var i=0;i<results.Æ;i++){height+=results[i].offsetHeight;}return height;};EA.Ä.go_to_line=Ã(line){if(!line){var icon=_$(\"go_to_line\");if(icon !=null){Á.restoreClass(icon);Á.switchClassSticky(icon,'editAreaButtonSelected',Ë);}line=prompt(Á.get_translation(\"go_to_line_prompt\"));if(icon !=null)Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);}if(line&&line!=null&&line.search(/^[0-9]+$/)!=-1){var start=0;var lines=Á.Â.Ê.split(\"\\n\");if(line > lines.Æ)start=Á.Â.Ê.Æ;\nelse{for(var i=0;i<Math.min(line-1,lines.Æ);i++)start+=lines[i].Æ+1;}Á.area_select(start,0);}};EA.Ä.change_smooth_selection_mode=Ã(setTo){if(Á.do_highlight)return;if(setTo !=null){if(setTo===Ì)Á.smooth_selection=Ë;\nelse Á.smooth_selection=Ì;}var icon=_$(\"change_smooth_selection\");Á.Â.focus();if(Á.smooth_selection===Ë){Á.switchClassSticky(icon,'editAreaButtonNormal',Ì);Á.smooth_selection=Ì;Á.selection_field.Ç.display=\"none\";_$(\"cursor_pos\").Ç.display=\"none\";_$(\"end_bracket\").Ç.display=\"none\";}\nelse{Á.switchClassSticky(icon,'editAreaButtonSelected',Ì);Á.smooth_selection=Ë;Á.selection_field.Ç.display=\"block\";_$(\"cursor_pos\").Ç.display=\"block\";_$(\"end_bracket\").Ç.display=\"block\";}};EA.Ä.scroll_to_view=Ã(show){var zone,lineElem;if(!Á.smooth_selection)return;zone=_$(\"result\");var cursor_pos_top=_$(\"cursor_pos\").cursor_top;if(show==\"bottom\"){cursor_pos_top+=Á.getLinePosTop(Á.É['line_start']+Á.É['line_nb']-1);}var max_height_visible=zone.clientHeight+zone.scrollTop;var miss_top=cursor_pos_top+Á.lineHeight-max_height_visible;if(miss_top>0){zone.scrollTop=zone.scrollTop+miss_top;}\nelse if(zone.scrollTop > cursor_pos_top){zone.scrollTop=cursor_pos_top;}var cursor_pos_left=_$(\"cursor_pos\").cursor_left;var max_width_visible=zone.clientWidth+zone.scrollLeft;var miss_left=cursor_pos_left+10-max_width_visible;if(miss_left>0){zone.scrollLeft=zone.scrollLeft+miss_left+50;}\nelse if(zone.scrollLeft > cursor_pos_left){zone.scrollLeft=cursor_pos_left;}\nelse if(zone.scrollLeft==45){zone.scrollLeft=0;}};EA.Ä.check_undo=Ã(only_once){if(!eAs[Á.id])return Ì;if(Á.ÂFocused&&eAs[Á.id][\"displayed\"]==Ë){var text=Á.Â.Ê;if(Á.previous.Æ<=1)Á.switchClassSticky(_$(\"undo\"),'editAreaButtonDisabled',Ë);if(!Á.previous[Á.previous.Æ-1]||Á.previous[Á.previous.Æ-1][\"text\"] !=text){Á.previous.push({\"text\":text,\"selStart\":Á.Â.selectionStart,\"selEnd\":Á.Â.selectionEnd});if(Á.previous.Æ > Á.Å[\"max_undo\"]+1)Á.previous.shift();}if(Á.previous.Æ >=2)Á.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',Ì);}if(!only_once)setTimeout(\"eA.check_undo()\",3000);};EA.Ä.undo=Ã(){if(Á.previous.Æ > 0){Á.getIESelection();Á.next.push({\"text\":Á.Â.Ê,\"selStart\":Á.Â.selectionStart,\"selEnd\":Á.Â.selectionEnd});var prev=Á.previous.pop();if(prev[\"text\"]==Á.Â.Ê&&Á.previous.Æ > 0)prev=Á.previous.pop();Á.Â.Ê=prev[\"text\"];Á.last_undo=prev[\"text\"];Á.area_select(prev[\"selStart\"],prev[\"selEnd\"]-prev[\"selStart\"]);Á.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',Ì);Á.resync_highlight(Ë);Á.check_file_changes();}};EA.Ä.redo=Ã(){if(Á.next.Æ > 0){var next=Á.next.pop();Á.previous.push(next);Á.Â.Ê=next[\"text\"];Á.last_undo=next[\"text\"];Á.area_select(next[\"selStart\"],next[\"selEnd\"]-next[\"selStart\"]);Á.switchClassSticky(_$(\"undo\"),'editAreaButtonNormal',Ì);Á.resync_highlight(Ë);Á.check_file_changes();}if(Á.next.Æ==0)Á.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);};EA.Ä.check_redo=Ã(){if(eA.next.Æ==0||eA.Â.Ê!=eA.last_undo){eA.next=[];eA.switchClassSticky(_$(\"redo\"),'editAreaButtonDisabled',Ë);}\nelse{Á.switchClassSticky(_$(\"redo\"),'editAreaButtonNormal',Ì);}};EA.Ä.switchClass=Ã(element,class_name,lock_state){var lockChanged=Ì;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ë;}if(element !=null&&(lockChanged||!element.classLock)){element.oldClassName=element.className;element.className=class_name;}};EA.Ä.restoreAndSwitchClass=Ã(element,class_name){if(element !=null&&!element.classLock){Á.restoreClass(element);Á.switchClass(element,class_name);}};EA.Ä.restoreClass=Ã(element){if(element !=null&&element.oldClassName&&!element.classLock){element.className=element.oldClassName;element.oldClassName=null;}};EA.Ä.setClassLock=Ã(element,lock_state){if(element !=null)element.classLock=lock_state;};EA.Ä.switchClassSticky=Ã(element,class_name,lock_state){var lockChanged=Ì;if(typeof(lock_state)!=\"undefined\"&&element !=null){element.classLock=lock_state;lockChanged=Ë;}if(element !=null&&(lockChanged||!element.classLock)){element.className=class_name;element.oldClassName=class_name;}};EA.Ä.scroll_page=Ã(params){var dir=params[\"dir\"],shift_pressed=params[\"shift\"];var lines=Á.Â.Ê.split(\"\\n\");var new_pos=0,Æ=0,char_left=0,line_nb=0,curLine=0;var toScrollAmount=_$(\"result\").clientHeight-30;var nbLineToScroll=0,diff=0;if(dir==\"up\"){nbLineToScroll=Math.ceil(toScrollAmount / Á.lineHeight);for(i=Á.É[\"line_start\"];i-diff > Á.É[\"line_start\"]-nbLineToScroll;i--){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ Á.lineHeight);}}nbLineToScroll-=diff;if(Á.É[\"selec_direction\"]==\"up\"){for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]-nbLineToScroll,lines.Æ);line_nb++){new_pos+=lines[line_nb].Æ+1;}char_left=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]-1);if(shift_pressed)Æ=Á.É[\"selectionEnd\"]-new_pos-char_left;Á.area_select(new_pos+char_left,Æ);view=\"top\";}\nelse{view=\"bottom\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+Á.É[\"line_nb\"]-1-nbLineToScroll,lines.Æ);line_nb++){new_pos+=lines[line_nb].Æ+1;}char_left=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]-1);if(shift_pressed){start=Math.min(Á.É[\"selectionStart\"],new_pos+char_left);Æ=Math.max(new_pos+char_left,Á.É[\"selectionStart\"])-start;if(new_pos+char_left < Á.É[\"selectionStart\"])view=\"top\";}\nelse start=new_pos+char_left;Á.area_select(start,Æ);}}\nelse{var nbLineToScroll=Math.floor(toScrollAmount / Á.lineHeight);for(i=Á.É[\"line_start\"];i+diff < Á.É[\"line_start\"]+nbLineToScroll;i++){if(elem=_$('line_'+i)){diff+=Math.floor((elem.offsetHeight-1)/ Á.lineHeight);}}nbLineToScroll-=diff;if(Á.É[\"selec_direction\"]==\"down\"){view=\"bottom\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+Á.É[\"line_nb\"]-2+nbLineToScroll,lines.Æ);line_nb++){if(line_nb==Á.É[\"line_start\"]-1)char_left=Á.É[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Æ+1;}if(shift_pressed){Æ=Math.abs(Á.É[\"selectionStart\"]-new_pos);Æ+=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"]);Á.area_select(Math.min(Á.É[\"selectionStart\"],new_pos),Æ);}\nelse{Á.area_select(new_pos+char_left,0);}}\nelse{view=\"top\";for(line_nb=0;line_nb< Math.min(Á.É[\"line_start\"]+nbLineToScroll-1,lines.Æ,lines.Æ);line_nb++){if(line_nb==Á.É[\"line_start\"]-1)char_left=Á.É[\"selectionStart\"]-new_pos;new_pos+=lines[line_nb].Æ+1;}if(shift_pressed){Æ=Math.abs(Á.É[\"selectionEnd\"]-new_pos-char_left);Æ+=Math.min(lines[Math.min(lines.Æ-1,line_nb)].Æ,Á.É[\"curr_pos\"])-char_left-1;Á.area_select(Math.min(Á.É[\"selectionEnd\"],new_pos+char_left),Æ);if(new_pos+char_left > Á.É[\"selectionEnd\"])view=\"bottom\";}\nelse{Á.area_select(new_pos+char_left,0);}}}Á.check_line_selection();Á.scroll_to_view(view);};EA.Ä.start_resize=Ã(e){È.eAL.resize[\"id\"]=eA.id;È.eAL.resize[\"start_x\"]=(e)? e.pageX:event.x+document.body.scrollLeft;È.eAL.resize[\"start_y\"]=(e)? e.pageY:event.y+document.body.scrollTop;if(eA.isIE){eA.Â.focus();eA.getIESelection();}È.eAL.resize[\"selectionStart\"]=eA.Â.selectionStart;È.eAL.resize[\"selectionEnd\"]=eA.Â.selectionEnd;È.eAL.start_resize_area();};EA.Ä.toggle_full_screen=Ã(to){var t=Á,p=È,a=t.Â,html,frame,selStart,selEnd,old,icon;if(typeof(to)==\"undefined\")to=!t.fullscreen['isFull'];old=t.fullscreen['isFull'];t.fullscreen['isFull']=to;icon=_$(\"fullscreen\");selStart=t.Â.selectionStart;selEnd=t.Â.selectionEnd;html=p.document.getElementsByTagName(\"html\")[0];frame=p.document.getElementById(\"frame_\"+t.id);if(to&&to!=old){t.fullscreen['old_overflow']=p.get_css_property(html,\"overflow\");t.fullscreen['old_height']=p.get_css_property(html,\"height\");t.fullscreen['old_width']=p.get_css_property(html,\"width\");t.fullscreen['old_scrollTop']=html.scrollTop;t.fullscreen['old_scrollLeft']=html.scrollLeft;t.fullscreen['old_zIndex']=p.get_css_property(frame,\"z-index\");if(t.isOpera){html.Ç.height=\"100%\";html.Ç.width=\"100%\";}html.Ç.overflow=\"hidden\";html.scrollTop=0;html.scrollLeft=0;frame.Ç.position=\"absolute\";frame.Ç.width=html.clientWidth+\"px\";frame.Ç.height=html.clientHeight+\"px\";frame.Ç.display=\"block\";frame.Ç.zIndex=\"999999\";frame.Ç.top=\"0px\";frame.Ç.left=\"0px\";frame.Ç.top=\"-\"+p.calculeOffsetTop(frame)+\"px\";frame.Ç.left=\"-\"+p.calculeOffsetLeft(frame)+\"px\";t.switchClassSticky(icon,'editAreaButtonSelected',Ì);t.fullscreen['allow_resize']=t.resize_allowed;t.allow_resize(Ì);if(t.isFirefox){p.eAL.execCommand(t.id,\"update_size();\");t.area_select(selStart,selEnd-selStart);t.scroll_to_view();t.focus();}\nelse{setTimeout(\"p.eAL.execCommand('\"+t.id+\"','update_size();');eA.focus();\",10);}}\nelse if(to!=old){frame.Ç.position=\"static\";frame.Ç.zIndex=t.fullscreen['old_zIndex'];if(t.isOpera){html.Ç.height=\"auto\";html.Ç.width=\"auto\";html.Ç.overflow=\"auto\";}\nelse if(t.isIE&&p!=top){html.Ç.overflow=\"auto\";}\nelse{html.Ç.overflow=t.fullscreen['old_overflow'];}html.scrollTop=t.fullscreen['old_scrollTop'];html.scrollLeft=t.fullscreen['old_scrollLeft'];p.eAL.hide(t.id);p.eAL.show(t.id);t.switchClassSticky(icon,'editAreaButtonNormal',Ì);if(t.fullscreen['allow_resize'])t.allow_resize(t.fullscreen['allow_resize']);if(t.isFirefox){t.area_select(selStart,selEnd-selStart);setTimeout(\"eA.scroll_to_view();\",10);}}};EA.Ä.allow_resize=Ã(allow){var resize=_$(\"resize_area\");if(allow){resize.Ç.visibility=\"visible\";È.eAL.add_event(resize,\"mouseup\",eA.start_resize);}\nelse{resize.Ç.visibility=\"hidden\";È.eAL.remove_event(resize,\"mouseup\",eA.start_resize);}Á.resize_allowed=allow;};EA.Ä.change_syntax=Ã(new_syntax,is_waiting){if(new_syntax==Á.Å['syntax'])return Ë;var founded=Ì;for(var i=0;i<Á.syntax_list.Æ;i++){if(Á.syntax_list[i]==new_syntax)founded=Ë;}if(founded==Ë){if(!È.eAL.load_syntax[new_syntax]){if(!is_waiting)È.eAL.load_script(È.eAL.baseURL+\"reg_syntax/\"+new_syntax+\".js\");setTimeout(\"eA.change_syntax('\"+new_syntax+\"',Ë);\",100);Á.show_waiting_screen();}\nelse{if(!Á.allready_used_syntax[new_syntax]){È.eAL.init_syntax_regexp();Á.add_Ç(È.eAL.syntax[new_syntax][\"Çs\"]);Á.allready_used_syntax[new_syntax]=Ë;}var sel=_$(\"syntax_selection\");if(sel&&sel.Ê!=new_syntax){for(var i=0;i<sel.Æ;i++){if(sel.options[i].Ê&&sel.options[i].Ê==new_syntax)sel.options[i].selected=Ë;}}Á.Å['syntax']=new_syntax;Á.resync_highlight(Ë);Á.hide_waiting_screen();return Ë;}}return Ì;};EA.Ä.set_editable=Ã(is_editable){if(is_editable){document.body.className=\"\";Á.Â.readOnly=Ì;Á.is_editable=Ë;}\nelse{document.body.className=\"non_editable\";Á.Â.readOnly=Ë;Á.is_editable=Ì;}if(eAs[Á.id][\"displayed\"]==Ë)Á.update_size();};EA.Ä.toggle_word_wrap=Ã(){Á.set_word_wrap(!Á.Å['word_wrap']);};EA.Ä.set_word_wrap=Ã(to){var t=Á,a=t.Â;if(t.isOpera){Á.Å['word_wrap']=Ì;t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonDisabled',Ë);return Ì;}if(to){wrap_mode='soft';Á.container.className+=' word_wrap';Á.container.Ç.width=\"\";Á.content_highlight.Ç.width=\"\";a.Ç.width=\"100%\";if(t.isIE&&t.isIE < 7){a.Ç.width=(a.offsetWidth-5)+\"px\";}t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonSelected',Ì);}\nelse{wrap_mode='off';Á.container.className=Á.container.className.replace(/word_wrap/g,'');t.switchClassSticky(_$(\"word_wrap\"),'editAreaButtonNormal',Ë);}Á.Â.previous_scrollWidth='';Á.Â.previous_scrollHeight='';a.wrap=wrap_mode;a.setAttribute('wrap',wrap_mode);if(!Á.isIE){var start=a.selectionStart,end=a.selectionEnd;var parNod=a.ÈNode,nxtSib=a.nextSibling;parNod.removeChild(a);parNod.insertBefore(a,nxtSib);Á.area_select(start,end-start);}Á.Å['word_wrap']=to;Á.focus();Á.update_size();Á.check_line_selection();};EA.Ä.open_file=Ã(Å){if(Å['id']!=\"undefined\"){var id=Å['id'];var new_file={};new_file['id']=id;new_file['title']=id;new_file['text']=\"\";new_file['É']=\"\";new_file['last_text_to_highlight']=\"\";new_file['last_hightlighted_text']=\"\";new_file['previous']=[];new_file['next']=[];new_file['last_undo']=\"\";new_file['smooth_selection']=Á.Å['smooth_selection'];new_file['do_highlight']=Á.Å['start_highlight'];new_file['syntax']=Á.Å['syntax'];new_file['scroll_top']=0;new_file['scroll_left']=0;new_file['selection_start']=0;new_file['selection_end']=0;new_file['edited']=Ì;new_file['font_size']=Á.Å[\"font_size\"];new_file['font_family']=Á.Å[\"font_family\"];new_file['word_wrap']=Á.Å[\"word_wrap\"];new_file['toolbar']={'links':{},'selects':{}};new_file['compare_edited_text']=new_file['text'];Á.files[id]=new_file;Á.update_file(id,Å);Á.files[id]['compare_edited_text']=Á.files[id]['text'];var html_id='tab_file_'+encodeURIComponent(id);Á.filesIdAssoc[html_id]=id;Á.files[id]['html_id']=html_id;if(!_$(Á.files[id]['html_id'])&&id!=\"\"){Á.tab_browsing_area.Ç.display=\"block\";var elem=document.createElement('li');elem.id=Á.files[id]['html_id'];var close=\"<img src=\\\"\"+È.eAL.baseURL+\"images/close.gif\\\" title=\\\"\"+Á.get_translation('close_tab','word')+\"\\\" onclick=\\\"eA.execCommand('close_file',eA.filesIdAssoc['\"+html_id+\"']);return Ì;\\\" class=\\\"hidden\\\" onmouseover=\\\"Á.className=''\\\" onmouseout=\\\"Á.className='hidden'\\\" />\";elem.innerHTML=\"<a onclick=\\\"javascript:eA.execCommand('switch_to_file',eA.filesIdAssoc['\"+html_id+\"']);\\\" selec=\\\"none\\\"><b><span><strong class=\\\"edited\\\">*</strong>\"+Á.files[id]['title']+close+\"</span></b></a>\";_$('tab_browsing_list').appendChild(elem);var elem=document.createElement('text');Á.update_size();}if(id!=\"\")Á.execCommand('file_open',Á.files[id]);Á.switch_to_file(id,Ë);return Ë;}\nelse return Ì;};EA.Ä.close_file=Ã(id){if(Á.files[id]){Á.save_file(id);if(Á.execCommand('file_close',Á.files[id])!==Ì){var li=_$(Á.files[id]['html_id']);li.ÈNode.removeChild(li);if(id==Á.curr_file){var next_file=\"\";var is_next=Ì;for(var i in Á.files){if(is_next){next_file=i;break;}\nelse if(i==id)is_next=Ë;\nelse next_file=i;}Á.switch_to_file(next_file);}delete(Á.files[id]);Á.update_size();}}};EA.Ä.save_file=Ã(id){var t=Á,save,a_links,a_selects,save_butt,img,i;if(t.files[id]){var save=t.files[id];save['É']=t.É;save['last_text_to_highlight']=t.last_text_to_highlight;save['last_hightlighted_text']=t.last_hightlighted_text;save['previous']=t.previous;save['next']=t.next;save['last_undo']=t.last_undo;save['smooth_selection']=t.smooth_selection;save['do_highlight']=t.do_highlight;save['syntax']=t.Å['syntax'];save['text']=t.Â.Ê;save['scroll_top']=t.result.scrollTop;save['scroll_left']=t.result.scrollLeft;save['selection_start']=t.É[\"selectionStart\"];save['selection_end']=t.É[\"selectionEnd\"];save['font_size']=t.Å[\"font_size\"];save['font_family']=t.Å[\"font_family\"];save['word_wrap']=t.Å[\"word_wrap\"];save['toolbar']={'links':{},'selects':{}};a_links=_$(\"toolbar_1\").getElementsByTagName(\"a\");for(i=0;i<a_links.Æ;i++){if(a_links[i].getAttribute('fileSpecific')=='yes'){save_butt={};img=a_links[i].getElementsByTagName('img')[0];save_butt['classLock']=img.classLock;save_butt['className']=img.className;save_butt['oldClassName']=img.oldClassName;save['toolbar']['links'][a_links[i].id]=save_butt;}}a_selects=_$(\"toolbar_1\").getElementsByTagName(\"select\");for(i=0;i<a_selects.Æ;i++){if(a_selects[i].getAttribute('fileSpecific')=='yes'){save['toolbar']['selects'][a_selects[i].id]=a_selects[i].Ê;}}t.files[id]=save;return save;}return Ì;};EA.Ä.update_file=Ã(id,new_Ês){for(var i in new_Ês){Á.files[id][i]=new_Ês[i];}};EA.Ä.display_file=Ã(id){var t=Á,a=t.Â,new_file,a_lis,a_selects,a_links,a_options,i,j;if(id==''){a.readOnly=Ë;t.tab_browsing_area.Ç.display=\"none\";_$(\"no_file_selected\").Ç.display=\"block\";t.result.className=\"empty\";if(!t.files['']){t.open_file({id:''});}}\nelse if(typeof(t.files[id])=='undefined'){return Ì;}\nelse{t.result.className=\"\";a.readOnly=!t.is_editable;_$(\"no_file_selected\").Ç.display=\"none\";t.tab_browsing_area.Ç.display=\"block\";}t.check_redo(Ë);t.check_undo(Ë);t.curr_file=id;a_lis=t.tab_browsing_area.getElementsByTagName('li');for(i=0;i<a_lis.Æ;i++){if(a_lis[i].id==t.files[id]['html_id'])a_lis[i].className='selected';\nelse a_lis[i].className='';}new_file=t.files[id];a.Ê=new_file['text'];t.set_font(new_file['font_family'],new_file['font_size']);t.area_select(new_file['É']['selection_start'],new_file['É']['selection_end']-new_file['É']['selection_start']);t.manage_size(Ë);t.result.scrollTop=new_file['scroll_top'];t.result.scrollLeft=new_file['scroll_left'];t.previous=new_file['previous'];t.next=new_file['next'];t.last_undo=new_file['last_undo'];t.check_redo(Ë);t.check_undo(Ë);t.execCommand(\"change_highlight\",new_file['do_highlight']);t.execCommand(\"change_syntax\",new_file['syntax']);t.execCommand(\"change_smooth_selection_mode\",new_file['smooth_selection']);t.execCommand(\"set_word_wrap\",new_file['word_wrap']);a_links=new_file['toolbar']['links'];for(i in a_links){if(img=_$(i).getElementsByTagName('img')[0]){img.classLock=a_links[i]['classLock'];img.className=a_links[i]['className'];img.oldClassName=a_links[i]['oldClassName'];}}a_selects=new_file['toolbar']['selects'];for(i in a_selects){a_options=_$(i).options;for(j=0;j<a_options.Æ;j++){if(a_options[j].Ê==a_selects[i])_$(i).options[j].selected=Ë;}}};EA.Ä.switch_to_file=Ã(file_to_show,force_refresh){if(file_to_show!=Á.curr_file||force_refresh){Á.save_file(Á.curr_file);if(Á.curr_file!='')Á.execCommand('file_switch_off',Á.files[Á.curr_file]);Á.display_file(file_to_show);if(file_to_show!='')Á.execCommand('file_switch_on',Á.files[file_to_show]);}};EA.Ä.get_file=Ã(id){if(id==Á.curr_file)Á.save_file(id);return Á.files[id];};EA.Ä.get_all_files=Ã(){tmp_files=Á.files;Á.save_file(Á.curr_file);if(tmp_files[''])delete(Á.files['']);return tmp_files;};EA.Ä.check_file_changes=Ã(){var id=Á.curr_file;if(Á.files[id]&&Á.files[id]['compare_edited_text']!=undefined){if(Á.files[id]['compare_edited_text'].Æ==Á.Â.Ê.Æ&&Á.files[id]['compare_edited_text']==Á.Â.Ê){if(Á.files[id]['edited']!=Ì)Á.set_file_edited_mode(id,Ì);}\nelse{if(Á.files[id]['edited']!=Ë)Á.set_file_edited_mode(id,Ë);}}};EA.Ä.set_file_edited_mode=Ã(id,to){if(Á.files[id]&&_$(Á.files[id]['html_id'])){var link=_$(Á.files[id]['html_id']).getElementsByTagName('a')[0];if(to==Ë){link.className='edited';}\nelse{link.className='';if(id==Á.curr_file)text=Á.Â.Ê;\nelse text=Á.files[id]['text'];Á.files[id]['compare_edited_text']=text;}Á.files[id]['edited']=to;}};EA.Ä.set_show_line_colors=Ã(new_Ê){Á.show_line_colors=new_Ê;if(new_Ê)Á.selection_field.className+=' show_colors';\nelse Á.selection_field.className=Á.selection_field.className.replace(/ show_colors/g,'');};var EA_keys={8:\"Retour arriere\",9:\"Tabulation\",12:\"Milieu(pave numerique)\",13:\"Entrer\",16:\"Shift\",17:\"Ctrl\",18:\"Alt\",19:\"Pause\",20:\"Verr Maj\",27:\"Esc\",32:\"Space\",33:\"Page up\",34:\"Page down\",35:\"End\",36:\"Begin\",37:\"Left\",38:\"Up\",39:\"Right\",40:\"Down\",44:\"Impr ecran\",45:\"Inser\",46:\"Suppr\",91:\"Menu Demarrer Windows / touche pomme Mac\",92:\"Menu Demarrer Windows\",93:\"Menu contextuel Windows\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"Verr Num\",145:\"Arret defil\"};Ã keyDown(e){if(!e){e=event;}for(var i in eA.plugins){if(typeof(eA.plugins[i].onkeydown)==\"Ã\"){if(eA.plugins[i].onkeydown(e)===Ì){if(eA.isIE)e.keyCode=0;return Ì;}}}var target_id=(e.target||e.srcElement).id;var use=Ì;if(EA_keys[e.keyCode])letter=EA_keys[e.keyCode];\nelse letter=String.fromCharCode(e.keyCode);var low_letter=letter.toLowerCase();if(letter==\"Page up\"&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"up\",\"shift\":ShiftPressed(e)});use=Ë;}\nelse if(letter==\"Page down\"&&!eA.isOpera){eA.execCommand(\"scroll_page\",{\"dir\":\"down\",\"shift\":ShiftPressed(e)});use=Ë;}\nelse if(eA.is_editable==Ì){return Ë;}\nelse if(letter==\"Tabulation\"&&target_id==\"Â\"&&!CtrlPressed(e)&&!AltPressed(e)){if(ShiftPressed(e))eA.execCommand(\"invert_tab_selection\");\nelse eA.execCommand(\"tab_selection\");use=Ë;if(eA.isOpera||(eA.isFirefox&&eA.isMac))setTimeout(\"eA.execCommand('focus');\",1);}\nelse if(letter==\"Entrer\"&&target_id==\"Â\"){if(eA.press_enter())use=Ë;}\nelse if(letter==\"Entrer\"&&target_id==\"area_search\"){eA.execCommand(\"area_search\");use=Ë;}\nelse if(letter==\"Esc\"){eA.execCommand(\"close_all_inline_popup\",e);use=Ë;}\nelse if(CtrlPressed(e)&&!AltPressed(e)&&!ShiftPressed(e)){switch(low_letter){case \"f\":eA.execCommand(\"area_search\");use=Ë;break;case \"r\":eA.execCommand(\"area_replace\");use=Ë;break;case \"q\":eA.execCommand(\"close_all_inline_popup\",e);use=Ë;break;case \"h\":eA.execCommand(\"change_highlight\");use=Ë;break;case \"g\":setTimeout(\"eA.execCommand('go_to_line');\",5);use=Ë;break;case \"e\":eA.execCommand(\"show_help\");use=Ë;break;case \"z\":use=Ë;eA.execCommand(\"undo\");break;case \"y\":use=Ë;eA.execCommand(\"redo\");break;default:break;}}if(eA.next.Æ > 0){setTimeout(\"eA.check_redo();\",10);}setTimeout(\"eA.check_file_changes();\",10);if(use){if(eA.isIE)e.keyCode=0;return Ì;}return Ë;};Ã AltPressed(e){if(window.event){return(window.event.altKey);}\nelse{if(e.modifiers)return(e.altKey||(e.modifiers % 2));\nelse return e.altKey;}};Ã CtrlPressed(e){if(window.event){return(window.event.ctrlKey);}\nelse{return(e.ctrlKey||(e.modifiers==2)||(e.modifiers==3)||(e.modifiers>5));}};Ã ShiftPressed(e){if(window.event){return(window.event.shiftKey);}\nelse{return(e.shiftKey||(e.modifiers>3));}}; EA.Ä.show_search=Ã(){if(_$(\"area_search_replace\").Ç.visibility==\"visible\"){Á.hidden_search();}\nelse{Á.open_inline_popup(\"area_search_replace\");var text=Á.area_get_selection();var search=text.split(\"\\n\")[0];_$(\"area_search\").Ê=search;_$(\"area_search\").focus();}};EA.Ä.hidden_search=Ã(){Á.close_inline_popup(\"area_search_replace\");};EA.Ä.area_search=Ã(mode){if(!mode)mode=\"search\";_$(\"area_search_msg\").innerHTML=\"\";var search=_$(\"area_search\").Ê;Á.Â.focus();Á.Â.ÂFocused=Ë;var infos=Á.get_selection_infos();var start=infos[\"selectionStart\"];var pos=-1;var pos_begin=-1;var Æ=search.Æ;if(_$(\"area_search_replace\").Ç.visibility!=\"visible\"){Á.show_search();return;}if(search.Æ==0){_$(\"area_search_msg\").innerHTML=Á.get_translation(\"search_field_empty\");return;}if(mode!=\"replace\"){if(_$(\"area_search_reg_exp\").checked)start++;\nelse start+=search.Æ;}if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);pos=infos[\"full_text\"].substr(start).search(reg);pos_begin=infos[\"full_text\"].search(reg);if(pos!=-1){pos+=start;Æ=infos[\"full_text\"].substr(start).match(reg)[0].Æ;}\nelse if(pos_begin!=-1){Æ=infos[\"full_text\"].match(reg)[0].Æ;}}\nelse{if(_$(\"area_search_match_case\").checked){pos=infos[\"full_text\"].indexOf(search,start);pos_begin=infos[\"full_text\"].indexOf(search);}\nelse{pos=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase(),start);pos_begin=infos[\"full_text\"].toLowerCase().indexOf(search.toLowerCase());}}if(pos==-1&&pos_begin==-1){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+Á.get_translation(\"not_found\");return;}\nelse if(pos==-1&&pos_begin !=-1){begin=pos_begin;_$(\"area_search_msg\").innerHTML=Á.get_translation(\"restart_search_at_begin\");}\nelse begin=pos;if(mode==\"replace\"&&pos==infos[\"indexOfCursor\"]){var replace=_$(\"area_replace\").Ê;var new_text=\"\";if(_$(\"area_search_reg_exp\").checked){var opt=\"m\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);new_text=infos[\"full_text\"].substr(0,begin)+infos[\"full_text\"].substr(start).replace(reg,replace);}\nelse{new_text=infos[\"full_text\"].substr(0,begin)+replace+infos[\"full_text\"].substr(begin+Æ);}Á.Â.Ê=new_text;Á.area_select(begin,Æ);Á.area_search();}\nelse Á.area_select(begin,Æ);};EA.Ä.area_replace=Ã(){Á.area_search(\"replace\");};EA.Ä.area_replace_all=Ã(){var base_text=Á.Â.Ê;var search=_$(\"area_search\").Ê;var replace=_$(\"area_replace\").Ê;if(search.Æ==0){_$(\"area_search_msg\").innerHTML=Á.get_translation(\"search_field_empty\");return;}var new_text=\"\";var nb_change=0;if(_$(\"area_search_reg_exp\").checked){var opt=\"mg\";if(!_$(\"area_search_match_case\").checked)opt+=\"i\";var reg=new RegExp(search,opt);nb_change=infos[\"full_text\"].match(reg).Æ;new_text=infos[\"full_text\"].replace(reg,replace);}\nelse{if(_$(\"area_search_match_case\").checked){var tmp_tab=base_text.split(search);nb_change=tmp_tab.Æ-1;new_text=tmp_tab.join(replace);}\nelse{var lower_Ê=base_text.toLowerCase();var lower_search=search.toLowerCase();var start=0;var pos=lower_Ê.indexOf(lower_search);while(pos!=-1){nb_change++;new_text+=Á.Â.Ê.substring(start,pos)+replace;start=pos+search.Æ;pos=lower_Ê.indexOf(lower_search,pos+1);}new_text+=Á.Â.Ê.substring(start);}}if(new_text==base_text){_$(\"area_search_msg\").innerHTML=\"<strong>\"+search+\"</strong> \"+Á.get_translation(\"not_found\");}\nelse{Á.Â.Ê=new_text;_$(\"area_search_msg\").innerHTML=\"<strong>\"+nb_change+\"</strong> \"+Á.get_translation(\"occurrence_replaced\");setTimeout(\"eA.Â.focus();eA.Â.ÂFocused=Ë;\",100);}}; EA.Ä.change_highlight=Ã(change_to){if(Á.Å[\"syntax\"].Æ==0&&change_to==Ì){Á.switchClassSticky(_$(\"highlight\"),'editAreaButtonDisabled',Ë);Á.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ë);return Ì;}if(Á.do_highlight==change_to)return Ì;Á.getIESelection();var pos_start=Á.Â.selectionStart;var pos_end=Á.Â.selectionEnd;if(Á.do_highlight===Ë||change_to==Ì)Á.disable_highlight();\nelse Á.enable_highlight();Á.Â.focus();Á.Â.selectionStart=pos_start;Á.Â.selectionEnd=pos_end;Á.setIESelection();};EA.Ä.disable_highlight=Ã(displayOnly){var t=Á,a=t.Â,new_Obj,old_class,new_class;t.selection_field.innerHTML=\"\";t.selection_field_text.innerHTML=\"\";t.content_highlight.Ç.visibility=\"hidden\";new_Obj=t.content_highlight.cloneNode(Ì);new_Obj.innerHTML=\"\";t.content_highlight.ÈNode.insertBefore(new_Obj,t.content_highlight);t.content_highlight.ÈNode.removeChild(t.content_highlight);t.content_highlight=new_Obj;old_class=È.getAttribute(a,\"class\");if(old_class){new_class=old_class.replace(\"hidden\",\"\");È.setAttribute(a,\"class\",new_class);}a.Ç.backgroundColor=\"transÈ\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonNormal',Ë);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonDisabled',Ë);t.do_highlight=Ì;t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonSelected',Ë);if(typeof(t.smooth_selection_before_highlight)!=\"undefined\"&&t.smooth_selection_before_highlight===Ì){t.change_smooth_selection_mode(Ì);}};EA.Ä.enable_highlight=Ã(){var t=Á,a=t.Â,new_class;t.show_waiting_screen();t.content_highlight.Ç.visibility=\"visible\";new_class=È.getAttribute(a,\"class\")+\" hidden\";È.setAttribute(a,\"class\",new_class);if(t.isIE)a.Ç.backgroundColor=\"#FFFFFF\";t.switchClassSticky(_$(\"highlight\"),'editAreaButtonSelected',Ì);t.switchClassSticky(_$(\"reset_highlight\"),'editAreaButtonNormal',Ì);t.smooth_selection_before_highlight=t.smooth_selection;if(!t.smooth_selection)t.change_smooth_selection_mode(Ë);t.switchClassSticky(_$(\"change_smooth_selection\"),'editAreaButtonDisabled',Ë);t.do_highlight=Ë;t.resync_highlight();t.hide_waiting_screen();};EA.Ä.maj_highlight=Ã(infos){var debug_opti=\"\",tps_start=new Date().getTime(),tps_middle_opti=new Date().getTime();var t=Á,hightlighted_text,updated_highlight;var textToHighlight=infos[\"full_text\"],doSyntaxOpti=Ì,doHtmlOpti=Ì,stay_begin=\"\",stay_end=\"\",trace_new,trace_last;if(t.last_text_to_highlight==infos[\"full_text\"]&&t.resync_highlight!==Ë)return;if(t.reload_highlight===Ë){t.reload_highlight=Ì;}\nelse if(textToHighlight.Æ==0){textToHighlight=\"\\n \";}\nelse{changes=t.checkTextEvolution(t.last_text_to_highlight,textToHighlight);trace_new=t.get_syntax_trace(changes.newTextLine).replace(/\\r/g,'');trace_last=t.get_syntax_trace(changes.lastTextLine).replace(/\\r/g,'');doSyntaxOpti=(trace_new==trace_last);if(!doSyntaxOpti&&trace_new==\"\\n\"+trace_last&&/^[ \t\s]*\\n[ \t\s]*$/.test(changes.newText.replace(/\\r/g,''))&&changes.lastText==\"\"){doSyntaxOpti=Ë;}if(doSyntaxOpti){tps_middle_opti=new Date().getTime();stay_begin=t.last_hightlighted_text.split(\"\\n\").slice(0,changes.lineStart).join(\"\\n\");if(changes.lineStart>0)stay_begin+=\"\\n\";stay_end=t.last_hightlighted_text.split(\"\\n\").slice(changes.lineLastEnd+1).join(\"\\n\");if(stay_end.Æ>0)stay_end=\"\\n\"+stay_end;if(stay_begin.split('<span').Æ !=stay_begin.split('</span').Æ||stay_end.split('<span').Æ !=stay_end.split('</span').Æ){doSyntaxOpti=Ì;stay_end='';stay_begin='';}\nelse{if(stay_begin.Æ==0&&changes.posLastEnd==-1)changes.newTextLine+=\"\\n\";textToHighlight=changes.newTextLine;}}if(t.Å[\"debug\"]){var ch=changes;debug_opti=(doSyntaxOpti?\"Optimisation\":\"No optimisation\")+\" start:\"+ch.posStart+\"(\"+ch.lineStart+\")\"+\" end_new:\"+ch.posNewEnd+\"(\"+ch.lineNewEnd+\")\"+\" end_last:\"+ch.posLastEnd+\"(\"+ch.lineLastEnd+\")\"+\"\\nchanged_text:\"+ch.newText+\"=> trace:\"+trace_new+\"\\nchanged_last_text:\"+ch.lastText+\"=> trace:\"+trace_last+\"\\nchanged_line:\"+ch.newTextLine+\"\\nlast_changed_line:\"+ch.lastTextLine+\"\\nstay_begin:\"+stay_begin.slice(-100)+\"\\nstay_end:\"+stay_end.substr(0,100);+\"\\n\";}}tps_end_opti=new Date().getTime();updated_highlight=t.colorize_text(textToHighlight);tpsAfterReg=new Date().getTime();if(doSyntaxOpti){try{var replacedBloc,i,nbStart='',nbEnd='',newHtml,ÆOld,ÆNew;replacedBloc=t.last_hightlighted_text.substring(stay_begin.Æ,t.last_hightlighted_text.Æ-stay_end.Æ);ÆOld=replacedBloc.Æ;ÆNew=updated_highlight.Æ;for(i=0;i < ÆOld&&i < ÆNew&&replacedBloc.charAt(i)==updated_highlight.charAt(i);i++){}nbStart=i;for(i=0;i+nbStart < ÆOld&&i+nbStart < ÆNew&&replacedBloc.charAt(ÆOld-i-1)==updated_highlight.charAt(ÆNew-i-1);i++){}nbEnd=i;lastHtml=replacedBloc.substring(nbStart,ÆOld-nbEnd);newHtml=updated_highlight.substring(nbStart,ÆNew-nbEnd);if(newHtml.indexOf('<span')==-1&&newHtml.indexOf('</span')==-1&&lastHtml.indexOf('<span')==-1&&lastHtml.indexOf('</span')==-1){var beginStr,nbOpendedSpan,nbClosedSpan,nbUnchangedChars,span,textNode;doHtmlOpti=Ë;beginStr=t.last_hightlighted_text.substr(0,stay_begin.Æ+nbStart);nbOpendedSpan=beginStr.split('<span').Æ-1;nbClosedSpan=beginStr.split('</span').Æ-1;span=t.content_highlight.getElementsByTagName('span')[ nbOpendedSpan ];ÈSpan=span;maxStartOffset=maxEndOffset=0;if(nbOpendedSpan==nbClosedSpan){while(ÈSpan.ÈNode !=t.content_highlight&&ÈSpan.ÈNode.tagName !='PRE'){ÈSpan=ÈSpan.ÈNode;}}\nelse{maxStartOffset=maxEndOffset=beginStr.Æ+1;nbClosed=beginStr.substr(Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1))).split('</span').Æ-1;while(nbClosed > 0){nbClosed--;ÈSpan=ÈSpan.ÈNode;}while(ÈSpan.ÈNode !=t.content_highlight&&ÈSpan.ÈNode.tagName !='PRE'&&(tmpMaxStartOffset=Math.max(0,beginStr.lastIndexOf('<span',maxStartOffset-1)))<(tmpMaxEndOffset=Math.max(0,beginStr.lastIndexOf('</span',maxEndOffset-1)))){maxStartOffset=tmpMaxStartOffset;maxEndOffset=tmpMaxEndOffset;}}if(ÈSpan.ÈNode==t.content_highlight||ÈSpan.ÈNode.tagName=='PRE'){maxStartOffset=Math.max(0,beginStr.indexOf('<span'));}if(maxStartOffset==beginStr.Æ){nbSubSpanBefore=0;}\nelse{lastEndPos=Math.max(0,beginStr.lastIndexOf('>',maxStartOffset));nbSubSpanBefore=beginStr.substr(lastEndPos).split('<span').Æ-1;}if(nbSubSpanBefore==0){textNode=ÈSpan.firstChild;}\nelse{lastSubSpan=ÈSpan.getElementsByTagName('span')[ nbSubSpanBefore-1 ];while(lastSubSpan.ÈNode !=ÈSpan){lastSubSpan=lastSubSpan.ÈNode;}if(lastSubSpan.nextSibling==null||lastSubSpan.nextSibling.nodeType !=3){textNode=document.createTextNode('');lastSubSpan.ÈNode.insertBefore(textNode,lastSubSpan.nextSibling);}\nelse{textNode=lastSubSpan.nextSibling;}}nbUnchangedChars=beginStr.Æ-Math.max(0,beginStr.lastIndexOf('>')+1);if(t.isIE){nbUnchangedChars-=(beginStr.substr(beginStr.Æ-nbUnchangedChars).split(\"\\n\").Æ-1);textNode.replaceData(nbUnchangedChars,lastHtml.replace(/\\n/g,'').Æ,newHtml.replace(/\\n/g,''));}\nelse{textNode.replaceData(nbUnchangedChars,lastHtml.Æ,newHtml);}}}catch(e){doHtmlOpti=Ì;}}tpsAfterOpti2=new Date().getTime();hightlighted_text=stay_begin+updated_highlight+stay_end;if(!doHtmlOpti){var new_Obj=t.content_highlight.cloneNode(Ì);if((t.isIE&&t.isIE < 8)||(t.isOpera&&t.isOpera < 9.6))new_Obj.innerHTML=\"<pre><span class='\"+t.Å[\"syntax\"]+\"'>\"+hightlighted_text+\"</span></pre>\";\nelse new_Obj.innerHTML=\"<span class='\"+t.Å[\"syntax\"]+\"'>\"+hightlighted_text+\"</span>\";t.content_highlight.ÈNode.replaceChild(new_Obj,t.content_highlight);t.content_highlight=new_Obj;}t.last_text_to_highlight=infos[\"full_text\"];t.last_hightlighted_text=hightlighted_text;tps3=new Date().getTime();if(t.Å[\"debug\"]){t.debug.Ê=\"Tps optimisation \"+(tps_end_opti-tps_start)+\" | tps reg exp:\"+(tpsAfterReg-tps_end_opti)+\" | tps opti HTML:\"+(tpsAfterOpti2-tpsAfterReg)+' '+(doHtmlOpti ? 'yes':'no')+\" | tps update highlight content:\"+(tps3-tpsAfterOpti2)+\" | tpsTotal:\"+(tps3-tps_start)+\"(\"+tps3+\")\\n\"+debug_opti;}};EA.Ä.resync_highlight=Ã(reload_now){Á.reload_highlight=Ë;Á.last_text_to_highlight=\"\";Á.focus();if(reload_now)Á.check_line_selection(Ì);}; EA.Ä.comment_or_quote=Ã(){var new_class=\"\",close_tag=\"\",sy,arg,i;sy=È.eAL.syntax[eA.current_code_lang];arg=EA.Ä.comment_or_quote.arguments[0];for(i in sy[\"quotes\"]){if(arg.indexOf(i)==0){new_class=\"quotesmarks\";close_tag=sy[\"quotes\"][i];}}if(new_class.Æ==0){for(var i in sy[\"comments\"]){if(arg.indexOf(i)==0){new_class=\"comments\";close_tag=sy[\"comments\"][i];}}}if(close_tag==\"\\n\"){return \"µ__\"+new_class+\"__µ\"+arg.replace(/(\\r?\\n)?$/m,\"µ_END_µ$1\");}\nelse{reg=new RegExp(È.eAL.get_escaped_regexp(close_tag)+\"$\",\"m\");if(arg.search(reg)!=-1)return \"µ__\"+new_class+\"__µ\"+arg+\"µ_END_µ\";\nelse return \"µ__\"+new_class+\"__µ\"+arg;}};EA.Ä.get_syntax_trace=Ã(text){if(Á.Å[\"syntax\"].Æ>0&&È.eAL.syntax[Á.Å[\"syntax\"]][\"syntax_trace_regexp\"])return text.replace(È.eAL.syntax[Á.Å[\"syntax\"]][\"syntax_trace_regexp\"],\"$3\");};EA.Ä.colorize_text=Ã(text){text=\" \"+text;if(Á.Å[\"syntax\"].Æ>0)text=Á.apply_syntax(text,Á.Å[\"syntax\"]);return text.substr(1).replace(/&/g,\"&\").replace(/</g,\"<\").replace(/>/g,\">\").replace(/µ_END_µ/g,\"</span>\").replace(/µ__([a-zA-Z0-9]+)__µ/g,\"<span class='$1'>\");};EA.Ä.apply_syntax=Ã(text,lang){var sy;Á.current_code_lang=lang;if(!È.eAL.syntax[lang])return text;sy=È.eAL.syntax[lang];if(sy[\"custom_regexp\"]['before']){for(var i in sy[\"custom_regexp\"]['before']){var convert=\"$1µ__\"+sy[\"custom_regexp\"]['before'][i]['class']+\"__µ$2µ_END_µ$3\";text=text.replace(sy[\"custom_regexp\"]['before'][i]['regexp'],convert);}}if(sy[\"comment_or_quote_reg_exp\"]){text=text.replace(sy[\"comment_or_quote_reg_exp\"],Á.comment_or_quote);}if(sy[\"keywords_reg_exp\"]){for(var i in sy[\"keywords_reg_exp\"]){text=text.replace(sy[\"keywords_reg_exp\"][i],'µ__'+i+'__µ$2µ_END_µ');}}if(sy[\"delimiters_reg_exp\"]){text=text.replace(sy[\"delimiters_reg_exp\"],'µ__delimiters__µ$1µ_END_µ');}if(sy[\"operators_reg_exp\"]){text=text.replace(sy[\"operators_reg_exp\"],'µ__operators__µ$1µ_END_µ');}if(sy[\"custom_regexp\"]['after']){for(var i in sy[\"custom_regexp\"]['after']){var convert=\"$1µ__\"+sy[\"custom_regexp\"]['after'][i]['class']+\"__µ$2µ_END_µ$3\";text=text.replace(sy[\"custom_regexp\"]['after'][i]['regexp'],convert);}}return text;}; var EditArea_charmap={init:Ã(){Á.default_language=\"Arrows\";},get_control_html:Ã(ctrl_name){switch(ctrl_name){case \"charmap\":return È.eAL.get_button_html('charmap_but','charmap.gif','charmap_press',Ì,Á.baseURL);}return Ì;},onload:Ã(){if(eA.Å[\"charmap_default\"]&&eA.Å[\"charmap_default\"].Æ>0)Á.default_language=eA.Å[\"charmap_default\"];},onkeydown:Ã(e){},execCommand:Ã(cmd,param){switch(cmd){case \"charmap_press\":win=window.open(Á.baseURL+\"popup.html\",\"charmap\",\"width=500,height=270,scrollbars=yes,resizable=yes\");win.focus();return Ì;}return Ë;}};eA.add_plugin(\"charmap\",EditArea_charmap); var EditArea_test={init:Ã(){eA.load_css(Á.baseURL+\"css/test.css\");eA.load_script(Á.baseURL+\"test2.js\");},get_control_html:Ã(ctrl_name){switch(ctrl_name){case \"test_but\":return È.eAL.get_button_html('test_but','test.gif','test_cmd',Ì,Á.baseURL);case \"test_select\":html=\"<select id='test_select' onchange='javascript:eA.execCommand(\\\"test_select_change\\\")' fileSpecific='no'>\"+\" <option Ê='-1'>{$test_select}</option>\"+\" <option Ê='h1'>h1</option>\"+\" <option Ê='h2'>h2</option>\"+\" <option Ê='h3'>h3</option>\"+\" <option Ê='h4'>h4</option>\"+\" <option Ê='h5'>h5</option>\"+\" <option Ê='h6'>h6</option>\"+\" </select>\";return html;}return Ì;},onload:Ã(){alert(\"test load\");},onkeydown:Ã(e){var str=String.fromCharCode(e.keyCode);if(str.toLowerCase()==\"f\"){return Ë;}return Ì;},execCommand:Ã(cmd,param){switch(cmd){case \"test_select_change\":var val=document.getElementById(\"test_select\").Ê;if(val!=-1)È.eAL.insertTags(eA.id,\"<\"+val+\">\",\"</\"+val+\">\");document.getElementById(\"test_select\").options[0].selected=Ë;return Ì;case \"test_cmd\":alert(\"user clicked on test_cmd\");return Ì;}return Ë;},_someInternalFunction:Ã(a,b){return a+b;}};eA.add_plugin(\"test\",EditArea_test);var editArea= eA;EditArea=EA;</script>".replace(/Á/g,'this').replace(/Â/g,'textarea').replace(/Ã/g,'function').replace(/Ä/g,'prototype').replace(/Å/g,'settings').replace(/Æ/g,'length').replace(/Ç/g,'style').replace(/È/g,'parent').replace(/É/g,'last_selection').replace(/Ê/g,'value').replace(/Ë/g,'true').replace(/Ì/g,'false'); -editAreaLoader.all_plugins_loaded=true; -editAreaLoader.template= "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" > <head> <title>EditArea</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\"/> [__CSSRULES__] [__JSCODE__] </head> <body> <div id='editor'> <div class='area_toolbar' id='toolbar_1'>[__TOOLBAR__]</div> <div class='area_toolbar' id='tab_browsing_area'><ul id='tab_browsing_list' class='menu'> <li> </li> </ul></div> <div id='result'> <div id='no_file_selected'></div> <div id='container'> <div id='cursor_pos' class='edit_area_cursor'> </div> <div id='end_bracket' class='edit_area_cursor'> </div> <div id='selection_field'></div> <div id='line_number' selec='none'></div> <div id='content_highlight'></div> <div id='test_font_size'></div> <div id='selection_field_text'></div> <textarea id='textarea' wrap='off' onchange='editArea.execCommand(\"onchange\");' onfocus='javascript:editArea.textareaFocused=true;' onblur='javascript:editArea.textareaFocused=false;'> </textarea> </div> </div> <div class='area_toolbar' id='toolbar_2'> <table class='statusbar' cellspacing='0' cellpadding='0'> <tr> <td class='total' selec='none'>{$position}:</td> <td class='infos' selec='none'> {$line_abbr} <span id='linePos'>0</span>, {$char_abbr} <span id='currPos'>0</span> </td> <td class='total' selec='none'>{$total}:</td> <td class='infos' selec='none'> {$line_abbr} <span id='nbLine'>0</span>, {$char_abbr} <span id='nbChar'>0</span> </td> <td class='resize'> <span id='resize_area'><img src='[__BASEURL__]images/statusbar_resize.gif' alt='resize' selec='none'></span> </td> </tr> </table> </div> </div> <div id='processing'> <div id='processing_text'> {$processing} </div> </div> <div id='area_search_replace' class='editarea_popup'> <table cellspacing='2' cellpadding='0' style='width: 100%'> <tr> <td selec='none'>{$search}</td> <td><input type='text' id='area_search' /></td> <td id='close_area_search_replace'> <a onclick='Javascript:editArea.execCommand(\"hidden_search\")'><img selec='none' src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a><br /> </tr><tr> <td selec='none'>{$replace}</td> <td><input type='text' id='area_replace' /></td> <td><img id='move_area_search_replace' onmousedown='return parent.start_move_element(event,\"area_search_replace\", parent.frames[\"frame_\"+editArea.id]);' src='[__BASEURL__]images/move.gif' alt='{$move_popup}' title='{$move_popup}' /></td> </tr> </table> <div class='button'> <input type='checkbox' id='area_search_match_case' /><label for='area_search_match_case' selec='none'>{$match_case}</label> <input type='checkbox' id='area_search_reg_exp' /><label for='area_search_reg_exp' selec='none'>{$reg_exp}</label> <br /> <a onclick='Javascript:editArea.execCommand(\"area_search\")' selec='none'>{$find_next}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace\")' selec='none'>{$replace}</a> <a onclick='Javascript:editArea.execCommand(\"area_replace_all\")' selec='none'>{$replace_all}</a><br /> </div> <div id='area_search_msg' selec='none'></div> </div> <div id='edit_area_help' class='editarea_popup'> <div class='close_popup'> <a onclick='Javascript:editArea.execCommand(\"close_all_inline_popup\")'><img src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a> </div> <div><h2>Editarea [__EA_VERSION__]</h2><br /> <h3>{$shortcuts}:</h3> {$tab}: {$add_tab}<br /> {$shift}+{$tab}: {$remove_tab}<br /> {$ctrl}+f: {$search_command}<br /> {$ctrl}+r: {$replace_command}<br /> {$ctrl}+h: {$highlight}<br /> {$ctrl}+g: {$go_to_line}<br /> {$ctrl}+z: {$undo}<br /> {$ctrl}+y: {$redo}<br /> {$ctrl}+e: {$help}<br /> {$ctrl}+q, {$esc}: {$close_popup}<br /> {$accesskey} E: {$toggle}<br /> <br /> <em>{$about_notice}</em> <br /><div class='copyright'>© Christophe Dolivet 2007-2009</div> </div> </div> </body> </html> "; -editAreaLoader.iframe_css= "<style>body,html{margin:0;padding:0;height:100%;border:none;overflow:hidden;background-color:#FFF;}body,html,table,form,textarea{font:12px monospace,sans-serif;}#editor{border:solid #888 1px;overflow:hidden;}#result{z-index:4;overflow-x:auto;overflow-y:scroll;border-top:solid #888 1px;border-bottom:solid #888 1px;position:relative;clear:both;}#result.empty{overflow:hidden;}#container{overflow:hidden;border:solid blue 0;position:relative;z-index:10;padding:0 5px 0 45px;}#textarea{position:relative;top:0;left:0;margin:0;padding:0;width:100%;height:100%;overflow:hidden;z-index:7;border-width:0;background-color:transparent;resize:none;}#textarea,#textarea:hover{outline:none;}#content_highlight{white-space:pre;margin:0;padding:0;position:absolute;z-index:4;overflow:visible;}#selection_field,#selection_field_text{margin:0;background-color:#E1F2F9;position:absolute;z-index:5;top:-100px;padding:0;white-space:pre;overflow:hidden;}#selection_field.show_colors {z-index:3;background-color:#EDF9FC;}#selection_field strong{font-weight:normal;}#selection_field.show_colors *,#selection_field_text * {visibility:hidden;}#selection_field_text{background-color:transparent;}#selection_field_text strong{font-weight:normal;background-color:#3399FE;color:#FFF;visibility:visible;}#container.word_wrap #content_highlight,#container.word_wrap #selection_field,#container.word_wrap #selection_field_text,#container.word_wrap #test_font_size{white-space:pre-wrap;white-space:-moz-pre-wrap !important;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word;width:99%;}#line_number{position:absolute;overflow:hidden;border-right:solid black 1px;z-index:8;width:38px;padding:0 5px 0 0;margin:0 0 0 -45px;text-align:right;color:#AAAAAA;}#test_font_size{padding:0;margin:0;visibility:hidden;position:absolute;white-space:pre;}pre{margin:0;padding:0;}.hidden{opacity:0.2;filter:alpha(opacity=20);}#result .edit_area_cursor{position:absolute;z-index:6;background-color:#FF6633;top:-100px;margin:0;}#result .edit_area_selection_field .overline{background-color:#996600;}.editarea_popup{border:solid 1px #888888;background-color:#ECE9D8;width:250px;padding:4px;position:absolute;visibility:hidden;z-index:15;top:-500px;}.editarea_popup,.editarea_popup table{font-family:sans-serif;font-size:10pt;}.editarea_popup img{border:0;}.editarea_popup .close_popup{float:right;line-height:16px;border:0;padding:0;}.editarea_popup h1,.editarea_popup h2,.editarea_popup h3,.editarea_popup h4,.editarea_popup h5,.editarea_popup h6{margin:0;padding:0;}.editarea_popup .copyright{text-align:right;}div#area_search_replace{}div#area_search_replace img{border:0;}div#area_search_replace div.button{text-align:center;line-height:1.7em;}div#area_search_replace .button a{cursor:pointer;border:solid 1px #888888;background-color:#DEDEDE;text-decoration:none;padding:0 2px;color:#000000;white-space:nowrap;}div#area_search_replace a:hover{background-color:#EDEDED;}div#area_search_replace #move_area_search_replace{cursor:move;border:solid 1px #888;}div#area_search_replace #close_area_search_replace{text-align:right;vertical-align:top;white-space:nowrap;}div#area_search_replace #area_search_msg{height:18px;overflow:hidden;border-top:solid 1px #888;margin-top:3px;}#edit_area_help{width:350px;}#edit_area_help div.close_popup{float:right;}.area_toolbar{width:100%;margin:0;padding:0;background-color:#ECE9D8;text-align:center;}.area_toolbar,.area_toolbar table{font:11px sans-serif;}.area_toolbar img{border:0;vertical-align:middle;}.area_toolbar input{margin:0;padding:0;}.area_toolbar select{font-family:'MS Sans Serif',sans-serif,Verdana,Arial;font-size:7pt;font-weight:normal;margin:2px 0 0 0 ;padding:0;vertical-align:top;background-color:#F0F0EE;}table.statusbar{width:100%;}.area_toolbar td.infos{text-align:center;width:130px;border-right:solid 1px #888;border-width:0 1px 0 0;padding:0;}.area_toolbar td.total{text-align:right;width:50px;padding:0;}.area_toolbar td.resize{text-align:right;}.area_toolbar span#resize_area{cursor:nw-resize;visibility:hidden;}.editAreaButtonNormal,.editAreaButtonOver,.editAreaButtonDown,.editAreaSeparator,.editAreaSeparatorLine,.editAreaButtonDisabled,.editAreaButtonSelected {border:0; margin:0; padding:0; background:transparent;margin-top:0;margin-left:1px;padding:0;}.editAreaButtonNormal {border:1px solid #ECE9D8 !important;cursor:pointer;}.editAreaButtonOver {border:1px solid #0A246A !important;cursor:pointer;background-color:#B6BDD2;}.editAreaButtonDown {cursor:pointer;border:1px solid #0A246A !important;background-color:#8592B5;}.editAreaButtonSelected {border:1px solid #C0C0BB !important;cursor:pointer;background-color:#F4F2E8;}.editAreaButtonDisabled {filter:progid:DXImageTransform.Microsoft.Alpha(opacity=30);-moz-opacity:0.3;opacity:0.3;border:1px solid #F0F0EE !important;cursor:pointer;}.editAreaSeparatorLine {margin:1px 2px;background-color:#C0C0BB;width:2px;height:18px;}#processing{display:none;background-color:#ECE9D8;border:solid #888 1px;position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;text-align:center;}#processing_text{position:absolute;left:50%;top:50%;width:200px;height:20px;margin-left:-100px;margin-top:-10px;text-align:center;}#tab_browsing_area{display:none;background-color:#CCC9A8;border-top:1px solid #888;text-align:left;margin:0;}#tab_browsing_list {padding:0;margin:0;list-style-type:none;white-space:nowrap;}#tab_browsing_list li {float:left;margin:-1px;}#tab_browsing_list a {position:relative;display:block;text-decoration:none;float:left;cursor:pointer;line-height:14px;}#tab_browsing_list a span {display:block;color:#000;background:#ECE9D8;border:1px solid #888;border-width:1px 1px 0;text-align:center;padding:2px 2px 1px 4px;position:relative;}#tab_browsing_list a b {display:block;border-bottom:2px solid #617994;}#tab_browsing_list a .edited {display:none;}#tab_browsing_list a.edited .edited {display:inline;}#tab_browsing_list a img{margin-left:7px;}#tab_browsing_list a.edited img{margin-left:3px;}#tab_browsing_list a:hover span {background:#F4F2E8;border-color:#0A246A;}#tab_browsing_list .selected a span{background:#046380;color:#FFF;}#no_file_selected{height:100%;width:150%;background:#CCC;display:none;z-index:20;position:absolute;}.non_editable #editor{border-width:0 1px;}.non_editable .area_toolbar{display:none;}#auto_completion_area{background:#FFF;border:solid 1px #888;position:absolute;z-index:15;width:280px;height:180px;overflow:auto;display:none;}#auto_completion_area a,#auto_completion_area a:visited{display:block;padding:0 2px 1px;color:#000;text-decoration:none;}#auto_completion_area a:hover,#auto_completion_area a:focus,#auto_completion_area a.focus{background:#D6E1FE;text-decoration:none;}#auto_completion_area ul{margin:0;padding:0;list-style:none inside;}#auto_completion_area li{padding:0;}#auto_completion_area .prefix{font-style:italic;padding:0 3px;}</style>"; diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_functions.js b/wp-content/plugins/comicpress-companion/edit_area/edit_area_functions.js deleted file mode 100644 index 984d4c610..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area_functions.js +++ /dev/null @@ -1,1203 +0,0 @@ - //replace tabulation by the good number of white spaces - EditArea.prototype.replace_tab= function(text){ - return text.replace(/((\n?)([^\t\n]*)\t)/gi, editArea.smartTab); // slower than simple replace... - }; - - // call by the replace_tab function - EditArea.prototype.smartTab= function(){ - val=" "; - return EditArea.prototype.smartTab.arguments[2] + EditArea.prototype.smartTab.arguments[3] + val.substr(0, editArea.tab_nb_char - (EditArea.prototype.smartTab.arguments[3].length)%editArea.tab_nb_char); - }; - - EditArea.prototype.show_waiting_screen= function(){ - width = this.editor_area.offsetWidth; - height = this.editor_area.offsetHeight; - if( !(this.isIE && this.isIE<6) ) - { - width -= 2; - height -= 2; - } - this.processing_screen.style.display= "block"; - this.processing_screen.style.width = width+"px"; - this.processing_screen.style.height = height+"px"; - this.waiting_screen_displayed = true; - }; - - EditArea.prototype.hide_waiting_screen= function(){ - this.processing_screen.style.display="none"; - this.waiting_screen_displayed= false; - }; - - EditArea.prototype.add_style= function(styles){ - if(styles.length>0){ - newcss = document.createElement("style"); - newcss.type="text/css"; - newcss.media="all"; - if(newcss.styleSheet){ // IE - newcss.styleSheet.cssText = styles; - } else { // W3C - newcss.appendChild(document.createTextNode(styles)); - } - document.getElementsByTagName("head")[0].appendChild(newcss); - } - }; - - EditArea.prototype.set_font= function(family, size){ - var t=this, a=this.textarea, s=this.settings, elem_font, i, elem; - // list all elements concerned by font changes - var elems= ["textarea", "content_highlight", "cursor_pos", "end_bracket", "selection_field", "selection_field_text", "line_number"]; - - if(family && family!="") - s["font_family"]= family; - if(size && size>0) - s["font_size"] = size; - if( t.isOpera && t.isOpera < 9.6 ) // opera<9.6 can't manage non monospace font - s['font_family']="monospace"; - - // update the select tag - if( elem_font = _$("area_font_size") ) - { - for( i = 0; i < elem_font.length; i++ ) - { - if( elem_font.options[i].value && elem_font.options[i].value == s["font_size"] ) - elem_font.options[i].selected=true; - } - } - - /* - * somethimes firefox has rendering mistake with non-monospace font for text width in textarea vs in div for changing font size (eg: verdana change between 11pt to 12pt) - * => looks like a browser internal random bug as text width can change while content_highlight is updated - * we'll check if the font-size produce the same text width inside textarea and div and if not, we'll increment the font-size - * - * This is an ugly fix - */ - if( t.isFirefox ) - { - var nbTry = 3; - do { - var div1 = document.createElement( 'div' ), text1 = document.createElement( 'textarea' ); - var styles = { - width: '40px', - overflow: 'scroll', - zIndex: 50, - visibility: 'hidden', - fontFamily: s["font_family"], - fontSize: s["font_size"]+"pt", - lineHeight: t.lineHeight+"px", - padding: '0', - margin: '0', - border: 'none', - whiteSpace: 'nowrap' - }; - var diff, changed = false; - for( i in styles ) - { - div1.style[ i ] = styles[i]; - text1.style[ i ] = styles[i]; - } - // no wrap for this text - text1.wrap = 'off'; - text1.setAttribute('wrap', 'off'); - t.container.appendChild( div1 ); - t.container.appendChild( text1 ); - // try to make FF to bug - div1.innerHTML = text1.value = 'azertyuiopqsdfghjklm'; - div1.innerHTML = text1.value = text1.value+'wxcvbn^p*ù$!:;,,'; - diff = text1.scrollWidth - div1.scrollWidth; - - // firefox return here a diff of 1 px between equals scrollWidth (can't explain) - if( Math.abs( diff ) >= 2 ) - { - s["font_size"]++; - changed = true; - } - t.container.removeChild( div1 ); - t.container.removeChild( text1 ); - nbTry--; - }while( changed && nbTry > 0 ); - } - - - // calc line height - elem = t.test_font_size; - elem.style.fontFamily = ""+s["font_family"]; - elem.style.fontSize = s["font_size"]+"pt"; - elem.innerHTML = "0"; - t.lineHeight = elem.offsetHeight; - - // update font for all concerned elements - for( i=0; i<elems.length; i++) - { - elem = _$(elems[i]); - elem.style.fontFamily = s["font_family"]; - elem.style.fontSize = s["font_size"]+"pt"; - elem.style.lineHeight = t.lineHeight+"px"; - } - // define a css for <pre> tags - t.add_style("pre{font-family:"+s["font_family"]+"}"); - - // old opera and IE>=8 doesn't update font changes to the textarea - if( ( t.isOpera && t.isOpera < 9.6 ) || t.isIE >= 8 ) - { - var parNod = a.parentNode, nxtSib = a.nextSibling, start= a.selectionStart, end= a.selectionEnd; - parNod.removeChild(a); - parNod.insertBefore(a, nxtSib); - t.area_select(start, end-start); - } - - // force update of selection field - this.focus(); - this.update_size(); - this.check_line_selection(); - }; - - EditArea.prototype.change_font_size= function(){ - var size=_$("area_font_size").value; - if(size>0) - this.set_font("", size); - }; - - - EditArea.prototype.open_inline_popup= function(popup_id){ - this.close_all_inline_popup(); - var popup= _$(popup_id); - var editor= _$("editor"); - - // search matching icon - for(var i=0; i<this.inlinePopup.length; i++){ - if(this.inlinePopup[i]["popup_id"]==popup_id){ - var icon= _$(this.inlinePopup[i]["icon_id"]); - if(icon){ - this.switchClassSticky(icon, 'editAreaButtonSelected', true); - break; - } - } - } - // check size - popup.style.height="auto"; - popup.style.overflow= "visible"; - - if(document.body.offsetHeight< popup.offsetHeight){ - popup.style.height= (document.body.offsetHeight-10)+"px"; - popup.style.overflow= "auto"; - } - - if(!popup.positionned){ - var new_left= editor.offsetWidth /2 - popup.offsetWidth /2; - var new_top= editor.offsetHeight /2 - popup.offsetHeight /2; - //var new_top= area.offsetHeight /2 - popup.offsetHeight /2; - //var new_left= area.offsetWidth /2 - popup.offsetWidth /2; - //alert("new_top: ("+new_top+") = calculeOffsetTop(area) ("+calculeOffsetTop(area)+") + area.offsetHeight /2("+ area.offsetHeight /2+") - popup.offsetHeight /2("+popup.offsetHeight /2+") - scrollTop: "+document.body.scrollTop); - popup.style.left= new_left+"px"; - popup.style.top= new_top+"px"; - popup.positionned=true; - } - popup.style.visibility="visible"; - - //popup.style.display="block"; - }; - - EditArea.prototype.close_inline_popup= function(popup_id){ - var popup= _$(popup_id); - // search matching icon - for(var i=0; i<this.inlinePopup.length; i++){ - if(this.inlinePopup[i]["popup_id"]==popup_id){ - var icon= _$(this.inlinePopup[i]["icon_id"]); - if(icon){ - this.switchClassSticky(icon, 'editAreaButtonNormal', false); - break; - } - } - } - - popup.style.visibility="hidden"; - }; - - EditArea.prototype.close_all_inline_popup= function(e){ - for(var i=0; i<this.inlinePopup.length; i++){ - this.close_inline_popup(this.inlinePopup[i]["popup_id"]); - } - this.textarea.focus(); - }; - - EditArea.prototype.show_help= function(){ - - this.open_inline_popup("edit_area_help"); - - }; - - EditArea.prototype.new_document= function(){ - this.textarea.value=""; - this.area_select(0,0); - }; - - EditArea.prototype.get_all_toolbar_height= function(){ - var area= _$("editor"); - var results= parent.getChildren(area, "div", "class", "area_toolbar", "all", "0"); // search only direct children - //results= results.concat(getChildren(area, "table", "class", "area_toolbar", "all", "0")); - var height=0; - for(var i=0; i<results.length; i++){ - height+= results[i].offsetHeight; - } - //alert("toolbar height: "+height); - return height; - }; - - EditArea.prototype.go_to_line= function(line){ - if(!line) - { - var icon= _$("go_to_line"); - if(icon != null){ - this.restoreClass(icon); - this.switchClassSticky(icon, 'editAreaButtonSelected', true); - } - - line= prompt(this.get_translation("go_to_line_prompt")); - if(icon != null) - this.switchClassSticky(icon, 'editAreaButtonNormal', false); - } - if(line && line!=null && line.search(/^[0-9]+$/)!=-1){ - var start=0; - var lines= this.textarea.value.split("\n"); - if(line > lines.length) - start= this.textarea.value.length; - else{ - for(var i=0; i<Math.min(line-1, lines.length); i++) - start+= lines[i].length + 1; - } - this.area_select(start, 0); - } - - - }; - - - EditArea.prototype.change_smooth_selection_mode= function(setTo){ - //alert("setTo: "+setTo); - if(this.do_highlight) - return; - - if(setTo != null){ - if(setTo === false) - this.smooth_selection=true; - else - this.smooth_selection=false; - } - var icon= _$("change_smooth_selection"); - this.textarea.focus(); - if(this.smooth_selection===true){ - //setAttribute(icon, "class", getAttribute(icon, "class").replace(/ selected/g, "") ); - /*setAttribute(icon, "oldClassName", "editAreaButtonNormal" ); - setAttribute(icon, "className", "editAreaButtonNormal" );*/ - //this.restoreClass(icon); - //this.restoreAndSwitchClass(icon,'editAreaButtonNormal'); - this.switchClassSticky(icon, 'editAreaButtonNormal', false); - - this.smooth_selection=false; - this.selection_field.style.display= "none"; - _$("cursor_pos").style.display= "none"; - _$("end_bracket").style.display= "none"; - }else{ - //setAttribute(icon, "class", getAttribute(icon, "class") + " selected"); - //this.switchClass(icon,'editAreaButtonSelected'); - this.switchClassSticky(icon, 'editAreaButtonSelected', false); - this.smooth_selection=true; - this.selection_field.style.display= "block"; - _$("cursor_pos").style.display= "block"; - _$("end_bracket").style.display= "block"; - } - }; - - // the auto scroll of the textarea has some lacks when it have to show cursor in the visible area when the textarea size change - // show specifiy whereas it is the "top" or "bottom" of the selection that is showned - EditArea.prototype.scroll_to_view= function(show){ - var zone, lineElem; - if(!this.smooth_selection) - return; - zone= _$("result"); - - // manage height scroll - var cursor_pos_top= _$("cursor_pos").cursor_top; - if(show=="bottom") - { - //cursor_pos_top+= (this.last_selection["line_nb"]-1)* this.lineHeight; - cursor_pos_top+= this.getLinePosTop( this.last_selection['line_start'] + this.last_selection['line_nb'] - 1 ); - } - - var max_height_visible= zone.clientHeight + zone.scrollTop; - var miss_top = cursor_pos_top + this.lineHeight - max_height_visible; - if(miss_top>0){ - //alert(miss_top); - zone.scrollTop= zone.scrollTop + miss_top; - }else if( zone.scrollTop > cursor_pos_top){ - // when erase all the content -> does'nt scroll back to the top - //alert("else: "+cursor_pos_top); - zone.scrollTop= cursor_pos_top; - } - - // manage left scroll - //var cursor_pos_left= parseInt(_$("cursor_pos").style.left.replace("px","")); - var cursor_pos_left= _$("cursor_pos").cursor_left; - var max_width_visible= zone.clientWidth + zone.scrollLeft; - var miss_left= cursor_pos_left + 10 - max_width_visible; - if(miss_left>0){ - zone.scrollLeft= zone.scrollLeft + miss_left + 50; - }else if( zone.scrollLeft > cursor_pos_left){ - zone.scrollLeft= cursor_pos_left ; - }else if( zone.scrollLeft == 45){ - // show the line numbers if textarea align to it's left - zone.scrollLeft=0; - } - }; - - EditArea.prototype.check_undo= function(only_once){ - if(!editAreas[this.id]) - return false; - if(this.textareaFocused && editAreas[this.id]["displayed"]==true){ - var text=this.textarea.value; - if(this.previous.length<=1) - this.switchClassSticky(_$("undo"), 'editAreaButtonDisabled', true); - - if(!this.previous[this.previous.length-1] || this.previous[this.previous.length-1]["text"] != text){ - this.previous.push({"text": text, "selStart": this.textarea.selectionStart, "selEnd": this.textarea.selectionEnd}); - if(this.previous.length > this.settings["max_undo"]+1) - this.previous.shift(); - - } - if(this.previous.length >= 2) - this.switchClassSticky(_$("undo"), 'editAreaButtonNormal', false); - } - - if(!only_once) - setTimeout("editArea.check_undo()", 3000); - }; - - EditArea.prototype.undo= function(){ - //alert("undo"+this.previous.length); - if(this.previous.length > 0) - { - this.getIESelection(); - // var pos_cursor=this.textarea.selectionStart; - this.next.push( { "text": this.textarea.value, "selStart": this.textarea.selectionStart, "selEnd": this.textarea.selectionEnd } ); - var prev= this.previous.pop(); - if( prev["text"] == this.textarea.value && this.previous.length > 0 ) - prev =this.previous.pop(); - this.textarea.value = prev["text"]; - this.last_undo = prev["text"]; - this.area_select(prev["selStart"], prev["selEnd"]-prev["selStart"]); - this.switchClassSticky(_$("redo"), 'editAreaButtonNormal', false); - this.resync_highlight(true); - //alert("undo"+this.previous.length); - this.check_file_changes(); - } - }; - - EditArea.prototype.redo= function(){ - if(this.next.length > 0) - { - /*this.getIESelection();*/ - //var pos_cursor=this.textarea.selectionStart; - var next= this.next.pop(); - this.previous.push(next); - this.textarea.value= next["text"]; - this.last_undo= next["text"]; - this.area_select(next["selStart"], next["selEnd"]-next["selStart"]); - this.switchClassSticky(_$("undo"), 'editAreaButtonNormal', false); - this.resync_highlight(true); - this.check_file_changes(); - } - if( this.next.length == 0) - this.switchClassSticky(_$("redo"), 'editAreaButtonDisabled', true); - }; - - EditArea.prototype.check_redo= function(){ - if(editArea.next.length == 0 || editArea.textarea.value!=editArea.last_undo){ - editArea.next= []; // undo the ability to use "redo" button - editArea.switchClassSticky(_$("redo"), 'editAreaButtonDisabled', true); - } - else - { - this.switchClassSticky(_$("redo"), 'editAreaButtonNormal', false); - } - }; - - - // functions that manage icons roll over, disabled, etc... - EditArea.prototype.switchClass = function(element, class_name, lock_state) { - var lockChanged = false; - - if (typeof(lock_state) != "undefined" && element != null) { - element.classLock = lock_state; - lockChanged = true; - } - - if (element != null && (lockChanged || !element.classLock)) { - element.oldClassName = element.className; - element.className = class_name; - } - }; - - EditArea.prototype.restoreAndSwitchClass = function(element, class_name) { - if (element != null && !element.classLock) { - this.restoreClass(element); - this.switchClass(element, class_name); - } - }; - - EditArea.prototype.restoreClass = function(element) { - if (element != null && element.oldClassName && !element.classLock) { - element.className = element.oldClassName; - element.oldClassName = null; - } - }; - - EditArea.prototype.setClassLock = function(element, lock_state) { - if (element != null) - element.classLock = lock_state; - }; - - EditArea.prototype.switchClassSticky = function(element, class_name, lock_state) { - var lockChanged = false; - if (typeof(lock_state) != "undefined" && element != null) { - element.classLock = lock_state; - lockChanged = true; - } - - if (element != null && (lockChanged || !element.classLock)) { - element.className = class_name; - element.oldClassName = class_name; - } - }; - - //make the "page up" and "page down" buttons works correctly - EditArea.prototype.scroll_page= function(params){ - var dir= params["dir"], shift_pressed= params["shift"]; - var lines= this.textarea.value.split("\n"); - var new_pos=0, length=0, char_left=0, line_nb=0, curLine=0; - var toScrollAmount = _$("result").clientHeight -30; - var nbLineToScroll = 0, diff= 0; - - if(dir=="up"){ - nbLineToScroll = Math.ceil( toScrollAmount / this.lineHeight ); - - // fix number of line to scroll - for( i = this.last_selection["line_start"]; i - diff > this.last_selection["line_start"] - nbLineToScroll ; i-- ) - { - if( elem = _$('line_'+ i) ) - { - diff += Math.floor( ( elem.offsetHeight - 1 ) / this.lineHeight ); - } - } - nbLineToScroll -= diff; - - if(this.last_selection["selec_direction"]=="up"){ - for(line_nb=0; line_nb< Math.min(this.last_selection["line_start"]-nbLineToScroll, lines.length); line_nb++){ - new_pos+= lines[line_nb].length + 1; - } - char_left=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]-1); - if(shift_pressed) - length=this.last_selection["selectionEnd"]-new_pos-char_left; - this.area_select(new_pos+char_left, length); - view="top"; - }else{ - view="bottom"; - for(line_nb=0; line_nb< Math.min(this.last_selection["line_start"]+this.last_selection["line_nb"]-1-nbLineToScroll, lines.length); line_nb++){ - new_pos+= lines[line_nb].length + 1; - } - char_left=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]-1); - if(shift_pressed){ - //length=this.last_selection["selectionEnd"]-new_pos-char_left; - start= Math.min(this.last_selection["selectionStart"], new_pos+char_left); - length= Math.max(new_pos+char_left, this.last_selection["selectionStart"] )- start ; - if(new_pos+char_left < this.last_selection["selectionStart"]) - view="top"; - }else - start=new_pos+char_left; - this.area_select(start, length); - - } - } - else - { - var nbLineToScroll= Math.floor( toScrollAmount / this.lineHeight ); - // fix number of line to scroll - for( i = this.last_selection["line_start"]; i + diff < this.last_selection["line_start"] + nbLineToScroll ; i++ ) - { - if( elem = _$('line_'+ i) ) - { - diff += Math.floor( ( elem.offsetHeight - 1 ) / this.lineHeight ); - } - } - nbLineToScroll -= diff; - - if(this.last_selection["selec_direction"]=="down"){ - view="bottom"; - for(line_nb=0; line_nb< Math.min(this.last_selection["line_start"]+this.last_selection["line_nb"]-2+nbLineToScroll, lines.length); line_nb++){ - if(line_nb==this.last_selection["line_start"]-1) - char_left= this.last_selection["selectionStart"] -new_pos; - new_pos+= lines[line_nb].length + 1; - - } - if(shift_pressed){ - length=Math.abs(this.last_selection["selectionStart"]-new_pos); - length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"]); - //length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, char_left); - this.area_select(Math.min(this.last_selection["selectionStart"], new_pos), length); - }else{ - this.area_select(new_pos+char_left, 0); - } - - }else{ - view="top"; - for(line_nb=0; line_nb< Math.min(this.last_selection["line_start"]+nbLineToScroll-1, lines.length, lines.length); line_nb++){ - if(line_nb==this.last_selection["line_start"]-1) - char_left= this.last_selection["selectionStart"] -new_pos; - new_pos+= lines[line_nb].length + 1; - } - if(shift_pressed){ - length=Math.abs(this.last_selection["selectionEnd"]-new_pos-char_left); - length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, this.last_selection["curr_pos"])- char_left-1; - //length+=Math.min(lines[Math.min(lines.length-1, line_nb)].length, char_left); - this.area_select(Math.min(this.last_selection["selectionEnd"], new_pos+char_left), length); - if(new_pos+char_left > this.last_selection["selectionEnd"]) - view="bottom"; - }else{ - this.area_select(new_pos+char_left, 0); - } - - } - } - //console.log( new_pos, char_left, length, nbLineToScroll, toScrollAmount, _$("result").clientHeigh ); - this.check_line_selection(); - this.scroll_to_view(view); - }; - - EditArea.prototype.start_resize= function(e){ - parent.editAreaLoader.resize["id"] = editArea.id; - parent.editAreaLoader.resize["start_x"] = (e)? e.pageX : event.x + document.body.scrollLeft; - parent.editAreaLoader.resize["start_y"] = (e)? e.pageY : event.y + document.body.scrollTop; - if(editArea.isIE) - { - editArea.textarea.focus(); - editArea.getIESelection(); - } - parent.editAreaLoader.resize["selectionStart"] = editArea.textarea.selectionStart; - parent.editAreaLoader.resize["selectionEnd"] = editArea.textarea.selectionEnd; - parent.editAreaLoader.start_resize_area(); - }; - - EditArea.prototype.toggle_full_screen= function(to){ - var t=this, p=parent, a=t.textarea, html, frame, selStart, selEnd, old, icon; - if(typeof(to)=="undefined") - to= !t.fullscreen['isFull']; - old = t.fullscreen['isFull']; - t.fullscreen['isFull']= to; - icon = _$("fullscreen"); - selStart = t.textarea.selectionStart; - selEnd = t.textarea.selectionEnd; - html = p.document.getElementsByTagName("html")[0]; - frame = p.document.getElementById("frame_"+t.id); - - if(to && to!=old) - { // toogle on fullscreen - - t.fullscreen['old_overflow'] = p.get_css_property(html, "overflow"); - t.fullscreen['old_height'] = p.get_css_property(html, "height"); - t.fullscreen['old_width'] = p.get_css_property(html, "width"); - t.fullscreen['old_scrollTop'] = html.scrollTop; - t.fullscreen['old_scrollLeft'] = html.scrollLeft; - t.fullscreen['old_zIndex'] = p.get_css_property(frame, "z-index"); - if(t.isOpera){ - html.style.height = "100%"; - html.style.width = "100%"; - } - html.style.overflow = "hidden"; - html.scrollTop = 0; - html.scrollLeft = 0; - - frame.style.position = "absolute"; - frame.style.width = html.clientWidth+"px"; - frame.style.height = html.clientHeight+"px"; - frame.style.display = "block"; - frame.style.zIndex = "999999"; - frame.style.top = "0px"; - frame.style.left = "0px"; - - // if the iframe was in a div with position absolute, the top and left are the one of the div, - // so I fix it by seeing at witch position the iframe start and correcting it - frame.style.top = "-"+p.calculeOffsetTop(frame)+"px"; - frame.style.left = "-"+p.calculeOffsetLeft(frame)+"px"; - - // parent.editAreaLoader.execCommand(t.id, "update_size();"); - // var body=parent.document.getElementsByTagName("body")[0]; - // body.appendChild(frame); - - t.switchClassSticky(icon, 'editAreaButtonSelected', false); - t.fullscreen['allow_resize']= t.resize_allowed; - t.allow_resize(false); - - //t.area_select(selStart, selEnd-selStart); - - - // opera can't manage to do a direct size update - if(t.isFirefox){ - p.editAreaLoader.execCommand(t.id, "update_size();"); - t.area_select(selStart, selEnd-selStart); - t.scroll_to_view(); - t.focus(); - }else{ - setTimeout("p.editAreaLoader.execCommand('"+ t.id +"', 'update_size();');editArea.focus();", 10); - } - - - } - else if(to!=old) - { // toogle off fullscreen - frame.style.position="static"; - frame.style.zIndex= t.fullscreen['old_zIndex']; - - if(t.isOpera) - { - html.style.height = "auto"; - html.style.width = "auto"; - html.style.overflow = "auto"; - } - else if(t.isIE && p!=top) - { // IE doesn't manage html overflow in frames like in normal page... - html.style.overflow = "auto"; - } - else - { - html.style.overflow = t.fullscreen['old_overflow']; - } - html.scrollTop = t.fullscreen['old_scrollTop']; - html.scrollLeft = t.fullscreen['old_scrollLeft']; - - p.editAreaLoader.hide(t.id); - p.editAreaLoader.show(t.id); - - t.switchClassSticky(icon, 'editAreaButtonNormal', false); - if(t.fullscreen['allow_resize']) - t.allow_resize(t.fullscreen['allow_resize']); - if(t.isFirefox){ - t.area_select(selStart, selEnd-selStart); - setTimeout("editArea.scroll_to_view();", 10); - } - - //p.editAreaLoader.remove_event(p.window, "resize", editArea.update_size); - } - - }; - - EditArea.prototype.allow_resize= function(allow){ - var resize= _$("resize_area"); - if(allow){ - - resize.style.visibility="visible"; - parent.editAreaLoader.add_event(resize, "mouseup", editArea.start_resize); - }else{ - resize.style.visibility="hidden"; - parent.editAreaLoader.remove_event(resize, "mouseup", editArea.start_resize); - } - this.resize_allowed= allow; - }; - - - EditArea.prototype.change_syntax= function(new_syntax, is_waiting){ - // alert("cahnge to "+new_syntax); - // the syntax is the same - if(new_syntax==this.settings['syntax']) - return true; - - // check that the syntax is one allowed - var founded= false; - for(var i=0; i<this.syntax_list.length; i++) - { - if(this.syntax_list[i]==new_syntax) - founded= true; - } - - if(founded==true) - { - // the reg syntax file is not loaded - if(!parent.editAreaLoader.load_syntax[new_syntax]) - { - // load the syntax file and wait for file loading - if(!is_waiting) - parent.editAreaLoader.load_script(parent.editAreaLoader.baseURL + "reg_syntax/" + new_syntax + ".js"); - setTimeout("editArea.change_syntax('"+ new_syntax +"', true);", 100); - this.show_waiting_screen(); - } - else - { - if(!this.allready_used_syntax[new_syntax]) - { // the syntax has still not been used - // rebuild syntax definition for new languages - parent.editAreaLoader.init_syntax_regexp(); - // add style to the new list - this.add_style(parent.editAreaLoader.syntax[new_syntax]["styles"]); - this.allready_used_syntax[new_syntax]=true; - } - // be sure that the select option is correctly updated - var sel= _$("syntax_selection"); - if(sel && sel.value!=new_syntax) - { - for(var i=0; i<sel.length; i++){ - if(sel.options[i].value && sel.options[i].value == new_syntax) - sel.options[i].selected=true; - } - } - - /* if(this.settings['syntax'].length==0) - { - this.switchClassSticky(_$("highlight"), 'editAreaButtonNormal', false); - this.switchClassSticky(_$("reset_highlight"), 'editAreaButtonNormal', false); - this.change_highlight(true); - } - */ - this.settings['syntax']= new_syntax; - this.resync_highlight(true); - this.hide_waiting_screen(); - return true; - } - } - return false; - }; - - - // check if the file has changed - EditArea.prototype.set_editable= function(is_editable){ - if(is_editable) - { - document.body.className= ""; - this.textarea.readOnly= false; - this.is_editable= true; - } - else - { - document.body.className= "non_editable"; - this.textarea.readOnly= true; - this.is_editable= false; - } - - if(editAreas[this.id]["displayed"]==true) - this.update_size(); - }; - - /***** Wrap mode *****/ - - // toggling function for set_wrap_mode - EditArea.prototype.toggle_word_wrap= function(){ - this.set_word_wrap( !this.settings['word_wrap'] ); - }; - - - // open a new tab for the given file - EditArea.prototype.set_word_wrap= function(to){ - var t=this, a= t.textarea; - - if( t.isOpera ) - { - this.settings['word_wrap']= false; - t.switchClassSticky( _$("word_wrap"), 'editAreaButtonDisabled', true ); - return false; - } - - if( to ) - { - wrap_mode = 'soft'; - this.container.className+= ' word_wrap'; - this.container.style.width=""; - this.content_highlight.style.width=""; - a.style.width="100%"; - if( t.isIE && t.isIE < 7 ) // IE 6 count 50 px too much - { - a.style.width = ( a.offsetWidth-5 )+"px"; - } - - t.switchClassSticky( _$("word_wrap"), 'editAreaButtonSelected', false ); - } - else - { - wrap_mode = 'off'; - this.container.className = this.container.className.replace(/word_wrap/g, ''); - t.switchClassSticky( _$("word_wrap"), 'editAreaButtonNormal', true ); - } - this.textarea.previous_scrollWidth = ''; - this.textarea.previous_scrollHeight = ''; - - a.wrap= wrap_mode; - a.setAttribute('wrap', wrap_mode); - // only IE can change wrap mode on the fly without element reloading - if(!this.isIE) - { - var start=a.selectionStart, end= a.selectionEnd; - var parNod = a.parentNode, nxtSib = a.nextSibling; - parNod.removeChild(a); - parNod.insertBefore(a, nxtSib); - this.area_select(start, end-start); - } - // reset some optimisation - this.settings['word_wrap'] = to; - this.focus(); - this.update_size(); - this.check_line_selection(); - }; - /***** tabbed files managing functions *****/ - - // open a new tab for the given file - EditArea.prototype.open_file= function(settings){ - - if(settings['id']!="undefined") - { - var id= settings['id']; - // create a new file object with defautl values - var new_file= {}; - new_file['id'] = id; - new_file['title'] = id; - new_file['text'] = ""; - new_file['last_selection'] = ""; - new_file['last_text_to_highlight'] = ""; - new_file['last_hightlighted_text'] = ""; - new_file['previous'] = []; - new_file['next'] = []; - new_file['last_undo'] = ""; - new_file['smooth_selection'] = this.settings['smooth_selection']; - new_file['do_highlight']= this.settings['start_highlight']; - new_file['syntax'] = this.settings['syntax']; - new_file['scroll_top'] = 0; - new_file['scroll_left'] = 0; - new_file['selection_start']= 0; - new_file['selection_end']= 0; - new_file['edited'] = false; - new_file['font_size'] = this.settings["font_size"]; - new_file['font_family'] = this.settings["font_family"]; - new_file['word_wrap'] = this.settings["word_wrap"]; - new_file['toolbar'] = {'links':{}, 'selects': {}}; - new_file['compare_edited_text']= new_file['text']; - - - this.files[id]= new_file; - this.update_file(id, settings); - this.files[id]['compare_edited_text']= this.files[id]['text']; - - - var html_id= 'tab_file_'+encodeURIComponent(id); - this.filesIdAssoc[html_id]= id; - this.files[id]['html_id']= html_id; - - if(!_$(this.files[id]['html_id']) && id!="") - { - // be sure the tab browsing area is displayed - this.tab_browsing_area.style.display= "block"; - var elem= document.createElement('li'); - elem.id= this.files[id]['html_id']; - var close= "<img src=\""+ parent.editAreaLoader.baseURL +"images/close.gif\" title=\""+ this.get_translation('close_tab', 'word') +"\" onclick=\"editArea.execCommand('close_file', editArea.filesIdAssoc['"+ html_id +"']);return false;\" class=\"hidden\" onmouseover=\"this.className=''\" onmouseout=\"this.className='hidden'\" />"; - elem.innerHTML= "<a onclick=\"javascript:editArea.execCommand('switch_to_file', editArea.filesIdAssoc['"+ html_id +"']);\" selec=\"none\"><b><span><strong class=\"edited\">*</strong>"+ this.files[id]['title'] + close +"</span></b></a>"; - _$('tab_browsing_list').appendChild(elem); - var elem= document.createElement('text'); - this.update_size(); - } - - // open file callback (for plugin) - if(id!="") - this.execCommand('file_open', this.files[id]); - - this.switch_to_file(id, true); - return true; - } - else - return false; - }; - - // close the given file - EditArea.prototype.close_file= function(id){ - if(this.files[id]) - { - this.save_file(id); - - // close file callback - if(this.execCommand('file_close', this.files[id])!==false) - { - // remove the tab in the toolbar - var li= _$(this.files[id]['html_id']); - li.parentNode.removeChild(li); - // select a new file - if(id== this.curr_file) - { - var next_file= ""; - var is_next= false; - for(var i in this.files) - { - if( is_next ) - { - next_file = i; - break; - } - else if( i == id ) - is_next = true; - else - next_file = i; - } - // display the next file - this.switch_to_file(next_file); - } - // clear datas - delete (this.files[id]); - this.update_size(); - } - } - }; - - // backup current file datas - EditArea.prototype.save_file= function(id){ - var t= this, save, a_links, a_selects, save_butt, img, i; - if(t.files[id]) - { - var save= t.files[id]; - save['last_selection'] = t.last_selection; - save['last_text_to_highlight'] = t.last_text_to_highlight; - save['last_hightlighted_text'] = t.last_hightlighted_text; - save['previous'] = t.previous; - save['next'] = t.next; - save['last_undo'] = t.last_undo; - save['smooth_selection'] = t.smooth_selection; - save['do_highlight'] = t.do_highlight; - save['syntax'] = t.settings['syntax']; - save['text'] = t.textarea.value; - save['scroll_top'] = t.result.scrollTop; - save['scroll_left'] = t.result.scrollLeft; - save['selection_start'] = t.last_selection["selectionStart"]; - save['selection_end'] = t.last_selection["selectionEnd"]; - save['font_size'] = t.settings["font_size"]; - save['font_family'] = t.settings["font_family"]; - save['word_wrap'] = t.settings["word_wrap"]; - save['toolbar'] = {'links':{}, 'selects': {}}; - - // save toolbar buttons state for fileSpecific buttons - a_links= _$("toolbar_1").getElementsByTagName("a"); - for( i=0; i<a_links.length; i++ ) - { - if( a_links[i].getAttribute('fileSpecific') == 'yes' ) - { - save_butt = {}; - img = a_links[i].getElementsByTagName('img')[0]; - save_butt['classLock'] = img.classLock; - save_butt['className'] = img.className; - save_butt['oldClassName'] = img.oldClassName; - - save['toolbar']['links'][a_links[i].id]= save_butt; - } - } - - // save toolbar select state for fileSpecific buttons - a_selects= _$("toolbar_1").getElementsByTagName("select"); - for( i=0; i<a_selects.length; i++) - { - if(a_selects[i].getAttribute('fileSpecific')=='yes') - { - save['toolbar']['selects'][a_selects[i].id]= a_selects[i].value; - } - } - - t.files[id]= save; - - return save; - } - - return false; - }; - - // update file_datas - EditArea.prototype.update_file= function(id, new_values){ - for(var i in new_values) - { - this.files[id][i]= new_values[i]; - } - }; - - // display file datas - EditArea.prototype.display_file= function(id){ - var t = this, a= t.textarea, new_file, a_lis, a_selects, a_links, a_options, i, j; - - // we're showing the empty file - if(id=='') - { - a.readOnly= true; - t.tab_browsing_area.style.display= "none"; - _$("no_file_selected").style.display= "block"; - t.result.className= "empty"; - // clear current datas - if(!t.files['']) - { - t.open_file({id: ''}); - } - } - // we try to show a non existent file, so we left - else if( typeof( t.files[id] ) == 'undefined' ) - { - return false; - } - // display a normal file - else - { - t.result.className= ""; - a.readOnly= !t.is_editable; - _$("no_file_selected").style.display= "none"; - t.tab_browsing_area.style.display= "block"; - } - - // ensure to have last state for undo/redo actions - t.check_redo(true); - t.check_undo(true); - t.curr_file= id; - - // replace selected tab file - a_lis= t.tab_browsing_area.getElementsByTagName('li'); - for( i=0; i<a_lis.length; i++) - { - if(a_lis[i].id == t.files[id]['html_id']) - a_lis[i].className='selected'; - else - a_lis[i].className=''; - } - - // replace next files datas - new_file= t.files[id]; - - // restore text content - a.value= new_file['text']; - - // restore font-size - t.set_font(new_file['font_family'], new_file['font_size']); - - // restore selection and scroll - t.area_select(new_file['last_selection']['selection_start'], new_file['last_selection']['selection_end'] - new_file['last_selection']['selection_start']); - t.manage_size(true); - t.result.scrollTop= new_file['scroll_top']; - t.result.scrollLeft= new_file['scroll_left']; - - // restore undo, redo - t.previous= new_file['previous']; - t.next= new_file['next']; - t.last_undo= new_file['last_undo']; - t.check_redo(true); - t.check_undo(true); - - // restore highlight - t.execCommand("change_highlight", new_file['do_highlight']); - t.execCommand("change_syntax", new_file['syntax']); - - // smooth mode - t.execCommand("change_smooth_selection_mode", new_file['smooth_selection']); - - // word_wrap - t.execCommand("set_word_wrap", new_file['word_wrap']); - - // restore links state in toolbar - a_links= new_file['toolbar']['links']; - for( i in a_links) - { - if( img = _$(i).getElementsByTagName('img')[0] ) - { - img.classLock = a_links[i]['classLock']; - img.className = a_links[i]['className']; - img.oldClassName= a_links[i]['oldClassName']; - } - } - - // restore select state in toolbar - a_selects = new_file['toolbar']['selects']; - for( i in a_selects) - { - a_options = _$(i).options; - for( j=0; j<a_options.length; j++) - { - if( a_options[j].value == a_selects[i] ) - _$(i).options[j].selected=true; - } - } - - }; - - // change tab for displaying a new one - EditArea.prototype.switch_to_file= function(file_to_show, force_refresh){ - if(file_to_show!=this.curr_file || force_refresh) - { - this.save_file(this.curr_file); - if(this.curr_file!='') - this.execCommand('file_switch_off', this.files[this.curr_file]); - this.display_file(file_to_show); - if(file_to_show!='') - this.execCommand('file_switch_on', this.files[file_to_show]); - } - }; - - // get all infos for the given file - EditArea.prototype.get_file= function(id){ - if(id==this.curr_file) - this.save_file(id); - return this.files[id]; - }; - - // get all available files infos - EditArea.prototype.get_all_files= function(){ - tmp_files= this.files; - this.save_file(this.curr_file); - if(tmp_files['']) - delete(this.files['']); - return tmp_files; - }; - - - // check if the file has changed - EditArea.prototype.check_file_changes= function(){ - - var id= this.curr_file; - if(this.files[id] && this.files[id]['compare_edited_text']!=undefined) - { - if(this.files[id]['compare_edited_text'].length==this.textarea.value.length && this.files[id]['compare_edited_text']==this.textarea.value) - { - if(this.files[id]['edited']!= false) - this.set_file_edited_mode(id, false); - } - else - { - if(this.files[id]['edited']!= true) - this.set_file_edited_mode(id, true); - } - } - }; - - // set if the file is edited or not - EditArea.prototype.set_file_edited_mode= function(id, to){ - // change CSS for edited tab - if(this.files[id] && _$(this.files[id]['html_id'])) - { - var link= _$(this.files[id]['html_id']).getElementsByTagName('a')[0]; - if(to==true) - { - link.className= 'edited'; - } - else - { - link.className= ''; - if(id==this.curr_file) - text= this.textarea.value; - else - text= this.files[id]['text']; - this.files[id]['compare_edited_text']= text; - } - - this.files[id]['edited']= to; - } - }; - - EditArea.prototype.set_show_line_colors = function(new_value){ - this.show_line_colors = new_value; - - if( new_value ) - this.selection_field.className += ' show_colors'; - else - this.selection_field.className = this.selection_field.className.replace( / show_colors/g, '' ); - }; \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/edit_area_loader.js b/wp-content/plugins/comicpress-companion/edit_area/edit_area_loader.js deleted file mode 100644 index 34a17dd03..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/edit_area_loader.js +++ /dev/null @@ -1,1080 +0,0 @@ -/****** - * - * EditArea - * Developped by Christophe Dolivet - * Released under LGPL, Apache and BSD licenses (use the one you want) - * -******/ - -function EditAreaLoader(){ - var t=this; - t.version= "0.8.1.1"; - date= new Date(); - t.start_time=date.getTime(); - t.win= "loading"; // window loading state - t.error= false; // to know if load is interrrupt - t.baseURL=""; - //t.suffix=""; - t.template=""; - t.lang= {}; // array of loaded speech language - t.load_syntax= {}; // array of loaded syntax language for highlight mode - t.syntax= {}; // array of initilized syntax language for highlight mode - t.loadedFiles= []; - t.waiting_loading= {}; // files that must be loaded in order to allow the script to really start - // scripts that must be loaded in the iframe - t.scripts_to_load= ["elements_functions", "resize_area", "reg_syntax"]; - t.sub_scripts_to_load= ["edit_area", "manage_area" ,"edit_area_functions", "keyboard", "search_replace", "highlight", "regexp"]; - - t.resize= []; // contain resizing datas - t.hidden= {}; // store datas of the hidden textareas - - t.default_settings= { - //id: "src" // id of the textarea to transform - debug: false - ,smooth_selection: true - ,font_size: "10" // not for IE - ,font_family: "monospace" // can be "verdana,monospace". Allow non monospace font but Firefox get smaller tabulation with non monospace fonts. IE doesn't change the tabulation width and Opera doesn't take this option into account... - ,start_highlight: false // if start with highlight - ,toolbar: "search, go_to_line, fullscreen, |, undo, redo, |, select_font,|, change_smooth_selection, highlight, reset_highlight, word_wrap, |, help" - ,begin_toolbar: "" // "new_document, save, load, |" - ,end_toolbar: "" // or end_toolbar - ,is_multi_files: false // enable the multi file mode (the textarea content is ignored) - ,allow_resize: "both" // possible values: "no", "both", "x", "y" - ,show_line_colors: false // if the highlight is disabled for the line currently beeing edited (if enabled => heavy CPU use) - ,min_width: 400 - ,min_height: 125 - ,replace_tab_by_spaces: false - ,allow_toggle: true // true or false - ,language: "en" - ,syntax: "" - ,syntax_selection_allow: "basic,brainfuck,c,coldfusion,cpp,css,html,java,js,pas,perl,php,python,ruby,robotstxt,sql,tsql,vb,xml" - ,display: "onload" // onload or later - ,max_undo: 30 - ,browsers: "known" // all or known - ,plugins: "" // comma separated plugin list - ,gecko_spellcheck: false // enable/disable by default the gecko_spellcheck - ,fullscreen: false - ,is_editable: true - ,cursor_position: "begin" - ,word_wrap: false // define if the text is wrapped of not in the textarea - ,autocompletion: false // NOT IMPLEMENTED - ,load_callback: "" // click on load button (function name) - ,save_callback: "" // click on save button (function name) - ,change_callback: "" // textarea onchange trigger (function name) - ,submit_callback: "" // form submited (function name) - ,EA_init_callback: "" // EditArea initiliazed (function name) - ,EA_delete_callback: "" // EditArea deleted (function name) - ,EA_load_callback: "" // EditArea fully loaded and displayed (function name) - ,EA_unload_callback: "" // EditArea delete while being displayed (function name) - ,EA_toggle_on_callback: "" // EditArea toggled on (function name) - ,EA_toggle_off_callback: "" // EditArea toggled off (function name) - ,EA_file_switch_on_callback: "" // a new tab is selected (called for the newly selected file) - ,EA_file_switch_off_callback: "" // a new tab is selected (called for the previously selected file) - ,EA_file_close_callback: "" // close a tab - }; - - t.advanced_buttons = [ - // id, button img, command (it will try to find the translation of "id"), is_file_specific - ['new_document', 'newdocument.gif', 'new_document', false], - ['search', 'search.gif', 'show_search', false], - ['go_to_line', 'go_to_line.gif', 'go_to_line', false], - ['undo', 'undo.gif', 'undo', true], - ['redo', 'redo.gif', 'redo', true], - ['change_smooth_selection', 'smooth_selection.gif', 'change_smooth_selection_mode', true], - ['reset_highlight', 'reset_highlight.gif', 'resync_highlight', true], - ['highlight', 'highlight.gif','change_highlight', true], - ['help', 'help.gif', 'show_help', false], - ['save', 'save.gif', 'save', false], - ['load', 'load.gif', 'load', false], - ['fullscreen', 'fullscreen.gif', 'toggle_full_screen', false], - ['word_wrap', 'word_wrap.gif', 'toggle_word_wrap', true], - ['autocompletion', 'autocompletion.gif', 'toggle_autocompletion', true] - ]; - - // navigator identification - t.set_browser_infos(t); - - if(t.isIE>=6 || t.isGecko || ( t.isWebKit && !t.isSafari<3 ) || t.isOpera>=9 || t.isCamino ) - t.isValidBrowser=true; - else - t.isValidBrowser=false; - - t.set_base_url(); - - for(var i=0; i<t.scripts_to_load.length; i++){ - setTimeout("editAreaLoader.load_script('"+t.baseURL + t.scripts_to_load[i]+ ".js');", 1); // let the time to Object editAreaLoader to be created before loading additionnal scripts - t.waiting_loading[t.scripts_to_load[i]+ ".js"]= false; - } - t.add_event(window, "load", EditAreaLoader.prototype.window_loaded); -}; - -EditAreaLoader.prototype ={ - has_error : function(){ - this.error= true; - // set to empty all EditAreaLoader functions - for(var i in EditAreaLoader.prototype){ - EditAreaLoader.prototype[i]=function(){}; - } - }, - - // add browser informations to the object passed in parameter - set_browser_infos : function(o){ - ua= navigator.userAgent; - - // general detection - o.isWebKit = /WebKit/.test(ua); - o.isGecko = !o.isWebKit && /Gecko/.test(ua); - o.isMac = /Mac/.test(ua); - - o.isIE = (navigator.appName == "Microsoft Internet Explorer"); - if(o.isIE){ - o.isIE = ua.replace(/^.*?MSIE\s+([0-9\.]+).*$/, "$1"); - if(o.isIE<6) - o.has_error(); - } - - if(o.isOpera = (ua.indexOf('Opera') != -1)){ - o.isOpera= ua.replace(/^.*?Opera.*?([0-9\.]+).*$/i, "$1"); - if(o.isOpera<9) - o.has_error(); - o.isIE=false; - } - - if(o.isFirefox =(ua.indexOf('Firefox') != -1)) - o.isFirefox = ua.replace(/^.*?Firefox.*?([0-9\.]+).*$/i, "$1"); - // Firefox clones - if( ua.indexOf('Iceweasel') != -1 ) - o.isFirefox = ua.replace(/^.*?Iceweasel.*?([0-9\.]+).*$/i, "$1"); - if( ua.indexOf('GranParadiso') != -1 ) - o.isFirefox = ua.replace(/^.*?GranParadiso.*?([0-9\.]+).*$/i, "$1"); - if( ua.indexOf('BonEcho') != -1 ) - o.isFirefox = ua.replace(/^.*?BonEcho.*?([0-9\.]+).*$/i, "$1"); - if( ua.indexOf('SeaMonkey') != -1) - o.isFirefox = (ua.replace(/^.*?SeaMonkey.*?([0-9\.]+).*$/i, "$1") ) + 1; - - if(o.isCamino =(ua.indexOf('Camino') != -1)) - o.isCamino = ua.replace(/^.*?Camino.*?([0-9\.]+).*$/i, "$1"); - - if(o.isSafari =(ua.indexOf('Safari') != -1)) - o.isSafari= ua.replace(/^.*?Version\/([0-9]+\.[0-9]+).*$/i, "$1"); - - if(o.isChrome =(ua.indexOf('Chrome') != -1)) { - o.isChrome = ua.replace(/^.*?Chrome.*?([0-9\.]+).*$/i, "$1"); - o.isSafari = false; - } - - }, - - window_loaded : function(){ - editAreaLoader.win="loaded"; - - // add events on forms - if (document.forms) { - for (var i=0; i<document.forms.length; i++) { - var form = document.forms[i]; - form.edit_area_replaced_submit=null; - try { - - form.edit_area_replaced_submit = form.onsubmit; - form.onsubmit=""; - } catch (e) {// Do nothing - } - editAreaLoader.add_event(form, "submit", EditAreaLoader.prototype.submit); - editAreaLoader.add_event(form, "reset", EditAreaLoader.prototype.reset); - } - } - editAreaLoader.add_event(window, "unload", function(){for(var i in editAreas){editAreaLoader.delete_instance(i);}}); // ini callback - }, - - // init the checkup of the selection of the IE textarea - init_ie_textarea : function(id){ - var a=document.getElementById(id); - try{ - if(a && typeof(a.focused)=="undefined"){ - a.focus(); - a.focused=true; - a.selectionStart= a.selectionEnd= 0; - get_IE_selection(a); - editAreaLoader.add_event(a, "focus", IE_textarea_focus); - editAreaLoader.add_event(a, "blur", IE_textarea_blur); - - } - }catch(ex){} - }, - - init : function(settings){ - var t=this,s=settings,i; - - if(!s["id"]) - t.has_error(); - if(t.error) - return; - // if an instance of the editor already exists for this textarea => delete the previous one - if(editAreas[s["id"]]) - t.delete_instance(s["id"]); - - // init settings - for(i in t.default_settings){ - if(typeof(s[i])=="undefined") - s[i]=t.default_settings[i]; - } - - if(s["browsers"]=="known" && t.isValidBrowser==false){ - return; - } - - if(s["begin_toolbar"].length>0) - s["toolbar"]= s["begin_toolbar"] +","+ s["toolbar"]; - if(s["end_toolbar"].length>0) - s["toolbar"]= s["toolbar"] +","+ s["end_toolbar"]; - s["tab_toolbar"]= s["toolbar"].replace(/ /g,"").split(","); - - s["plugins"]= s["plugins"].replace(/ /g,"").split(","); - for(i=0; i<s["plugins"].length; i++){ - if(s["plugins"][i].length==0) - s["plugins"].splice(i,1); - } - // alert(settings["plugins"].length+": "+ settings["plugins"].join(",")); - t.get_template(); - t.load_script(t.baseURL + "langs/"+ s["language"] + ".js"); - - if(s["syntax"].length>0){ - s["syntax"]=s["syntax"].toLowerCase(); - t.load_script(t.baseURL + "reg_syntax/"+ s["syntax"] + ".js"); - } - //alert(this.template); - - editAreas[s["id"]]= {"settings": s}; - editAreas[s["id"]]["displayed"]=false; - editAreas[s["id"]]["hidden"]=false; - - //if(settings["display"]=="onload") - t.start(s["id"]); - }, - - // delete an instance of an EditArea - delete_instance : function(id){ - var d=document,fs=window.frames,span,iframe; - editAreaLoader.execCommand(id, "EA_delete"); - if(fs["frame_"+id] && fs["frame_"+id].editArea) - { - if(editAreas[id]["displayed"]) - editAreaLoader.toggle(id, "off"); - fs["frame_"+id].editArea.execCommand("EA_unload"); - } - - // remove toggle infos and debug textarea - span= d.getElementById("EditAreaArroundInfos_"+id); - if(span) - span.parentNode.removeChild(span); - - // remove the iframe - iframe= d.getElementById("frame_"+id); - if(iframe){ - iframe.parentNode.removeChild(iframe); - //delete iframe; - try { - delete fs["frame_"+id]; - } catch (e) {// Do nothing - } - } - - delete editAreas[id]; - }, - - - start : function(id){ - var t=this,d=document,f,span,father,next,html='',html_toolbar_content='',template,content,i; - - // check that the window is loaded - if(t.win!="loaded"){ - setTimeout("editAreaLoader.start('"+id+"');", 50); - return; - } - - // check that all needed scripts are loaded - for( i in t.waiting_loading){ - if(t.waiting_loading[i]!="loaded" && typeof(t.waiting_loading[i])!="function"){ - setTimeout("editAreaLoader.start('"+id+"');", 50); - return; - } - } - - // wait until language and syntax files are loaded - if(!t.lang[editAreas[id]["settings"]["language"]] || (editAreas[id]["settings"]["syntax"].length>0 && !t.load_syntax[editAreas[id]["settings"]["syntax"]]) ){ - setTimeout("editAreaLoader.start('"+id+"');", 50); - return; - } - // init the regexp for syntax highlight - if(editAreas[id]["settings"]["syntax"].length>0) - t.init_syntax_regexp(); - - - // display toggle option and debug area - if(!d.getElementById("EditAreaArroundInfos_"+id) && (editAreas[id]["settings"]["debug"] || editAreas[id]["settings"]["allow_toggle"])) - { - span= d.createElement("span"); - span.id= "EditAreaArroundInfos_"+id; - if(editAreas[id]["settings"]["allow_toggle"]){ - checked=(editAreas[id]["settings"]["display"]=="onload")?"checked='checked'":""; - html+="<div id='edit_area_toggle_"+i+"'>"; - html+="<input id='edit_area_toggle_checkbox_"+ id +"' class='toggle_"+ id +"' type='checkbox' onclick='editAreaLoader.toggle(\""+ id +"\");' accesskey='e' "+checked+" />"; - html+="<label for='edit_area_toggle_checkbox_"+ id +"'>{$toggle}</label></div>"; - } - if(editAreas[id]["settings"]["debug"]) - html+="<textarea id='edit_area_debug_"+ id +"' spellcheck='off' style='z-index: 20; width: 100%; height: 120px;overflow: auto; border: solid black 1px;'></textarea><br />"; - html= t.translate(html, editAreas[id]["settings"]["language"]); - span.innerHTML= html; - father= d.getElementById(id).parentNode; - next= d.getElementById(id).nextSibling; - if(next==null) - father.appendChild(span); - else - father.insertBefore(span, next); - } - - if(!editAreas[id]["initialized"]) - { - t.execCommand(id, "EA_init"); // ini callback - if(editAreas[id]["settings"]["display"]=="later"){ - editAreas[id]["initialized"]= true; - return; - } - } - - if(t.isIE){ // launch IE selection checkup - t.init_ie_textarea(id); - } - - // get toolbar content - area=editAreas[id]; - - for(i=0; i<area["settings"]["tab_toolbar"].length; i++){ - // alert(this.tab_toolbar[i]+"\n"+ this.get_control_html(this.tab_toolbar[i])); - html_toolbar_content+= t.get_control_html(area["settings"]["tab_toolbar"][i], area["settings"]["language"]); - } - // translate toolbar text here for chrome 2 - html_toolbar_content = t.translate(html_toolbar_content, area["settings"]["language"], "template"); - - - // create javascript import rules for the iframe if the javascript has not been already loaded by the compressor - if(!t.iframe_script){ - t.iframe_script=""; - for(i=0; i<t.sub_scripts_to_load.length; i++) - t.iframe_script+='<script language="javascript" type="text/javascript" src="'+ t.baseURL + t.sub_scripts_to_load[i] +'.js"></script>'; - } - - // add plugins scripts if not already loaded by the compressor (but need to load language in all the case) - for(i=0; i<area["settings"]["plugins"].length; i++){ - //if(typeof(area["settings"]["plugins"][i])=="function") continue; - if(!t.all_plugins_loaded) - t.iframe_script+='<script language="javascript" type="text/javascript" src="'+ t.baseURL + 'plugins/' + area["settings"]["plugins"][i] + '/' + area["settings"]["plugins"][i] +'.js"></script>'; - t.iframe_script+='<script language="javascript" type="text/javascript" src="'+ t.baseURL + 'plugins/' + area["settings"]["plugins"][i] + '/langs/' + area["settings"]["language"] +'.js"></script>'; - } - - - // create css link for the iframe if the whole css text has not been already loaded by the compressor - if(!t.iframe_css){ - t.iframe_css="<link href='"+ t.baseURL +"edit_area.css' rel='stylesheet' type='text/css' />"; - } - - - // create template - template= t.template.replace(/\[__BASEURL__\]/g, t.baseURL); - template= template.replace("[__TOOLBAR__]",html_toolbar_content); - - - // fill template with good language sentences - template= t.translate(template, area["settings"]["language"], "template"); - - // add css_code - template= template.replace("[__CSSRULES__]", t.iframe_css); - // add js_code - template= template.replace("[__JSCODE__]", t.iframe_script); - - // add version_code - template= template.replace("[__EA_VERSION__]", t.version); - //template=template.replace(/\{\$([^\}]+)\}/gm, this.traduc_template); - - //editAreas[area["settings"]["id"]]["template"]= template; - - area.textarea=d.getElementById(area["settings"]["id"]); - editAreas[area["settings"]["id"]]["textarea"]=area.textarea; - - // if removing previous instances from DOM before (fix from Marcin) - if(typeof(window.frames["frame_"+area["settings"]["id"]])!='undefined') - delete window.frames["frame_"+area["settings"]["id"]]; - - // insert template in the document after the textarea - father= area.textarea.parentNode; - /* var container= document.createElement("div"); - container.id= "EditArea_frame_container_"+area["settings"]["id"]; - */ - content= d.createElement("iframe"); - content.name= "frame_"+area["settings"]["id"]; - content.id= "frame_"+area["settings"]["id"]; - content.style.borderWidth= "0px"; - setAttribute(content, "frameBorder", "0"); // IE - content.style.overflow="hidden"; - content.style.display="none"; - - - next= area.textarea.nextSibling; - if(next==null) - father.appendChild(content); - else - father.insertBefore(content, next) ; - f=window.frames["frame_"+area["settings"]["id"]]; - f.document.open(); - f.editAreas=editAreas; - f.area_id= area["settings"]["id"]; - f.document.area_id= area["settings"]["id"]; - f.document.write(template); - f.document.close(); - - // frame.editAreaLoader=this; - //editAreas[area["settings"]["id"]]["displayed"]=true; - - }, - - toggle : function(id, toggle_to){ - - /* if((editAreas[id]["displayed"]==true && toggle_to!="on") || toggle_to=="off"){ - this.toggle_off(id); - }else if((editAreas[id]["displayed"]==false && toggle_to!="off") || toggle_to=="on"){ - this.toggle_on(id); - }*/ - if(!toggle_to) - toggle_to= (editAreas[id]["displayed"]==true)?"off":"on"; - if(editAreas[id]["displayed"]==true && toggle_to=="off"){ - this.toggle_off(id); - }else if(editAreas[id]["displayed"]==false && toggle_to=="on"){ - this.toggle_on(id); - } - - return false; - }, - - // static function - toggle_off : function(id){ - var fs=window.frames,f,t,parNod,nxtSib,selStart,selEnd,scrollTop,scrollLeft; - if(fs["frame_"+id]) - { - f = fs["frame_"+id]; - t = editAreas[id]["textarea"]; - if(f.editArea.fullscreen['isFull']) - f.editArea.toggle_full_screen(false); - editAreas[id]["displayed"]=false; - - // set wrap to off to keep same display mode (some browser get problem with this, so it need more complex operation - t.wrap = "off"; // for IE - setAttribute(t, "wrap", "off"); // for Firefox - parNod = t.parentNode; - nxtSib = t.nextSibling; - parNod.removeChild(t); - parNod.insertBefore(t, nxtSib); - - // restore values - t.value= f.editArea.textarea.value; - selStart = f.editArea.last_selection["selectionStart"]; - selEnd = f.editArea.last_selection["selectionEnd"]; - scrollTop = f.document.getElementById("result").scrollTop; - scrollLeft = f.document.getElementById("result").scrollLeft; - - - document.getElementById("frame_"+id).style.display='none'; - - t.style.display="inline"; - - try{ // IE will give an error when trying to focus an invisible or disabled textarea - t.focus(); - } catch(e){}; - if(this.isIE){ - t.selectionStart= selStart; - t.selectionEnd = selEnd; - t.focused = true; - set_IE_selection(t); - }else{ - if(this.isOpera && this.isOpera < 9.6 ){ // Opera bug when moving selection start and selection end - t.setSelectionRange(0, 0); - } - try{ - t.setSelectionRange(selStart, selEnd); - } catch(e) {}; - } - t.scrollTop= scrollTop; - t.scrollLeft= scrollLeft; - f.editArea.execCommand("toggle_off"); - - } - }, - - // static function - toggle_on : function(id){ - var fs=window.frames,f,t,selStart=0,selEnd=0,scrollTop=0,scrollLeft=0,curPos,elem; - - if(fs["frame_"+id]) - { - f = fs["frame_"+id]; - t = editAreas[id]["textarea"]; - area= f.editArea; - area.textarea.value= t.value; - - // store display values; - curPos = editAreas[id]["settings"]["cursor_position"]; - - if(t.use_last==true) - { - selStart = t.last_selectionStart; - selEnd = t.last_selectionEnd; - scrollTop = t.last_scrollTop; - scrollLeft = t.last_scrollLeft; - t.use_last=false; - } - else if( curPos == "auto" ) - { - try{ - selStart = t.selectionStart; - selEnd = t.selectionEnd; - scrollTop = t.scrollTop; - scrollLeft = t.scrollLeft; - //alert(scrollTop); - }catch(ex){} - } - - // set to good size - this.set_editarea_size_from_textarea(id, document.getElementById("frame_"+id)); - t.style.display="none"; - document.getElementById("frame_"+id).style.display="inline"; - area.execCommand("focus"); // without this focus opera doesn't manage well the iframe body height - - - // restore display values - editAreas[id]["displayed"]=true; - area.execCommand("update_size"); - - f.document.getElementById("result").scrollTop= scrollTop; - f.document.getElementById("result").scrollLeft= scrollLeft; - area.area_select(selStart, selEnd-selStart); - area.execCommand("toggle_on"); - - - } - else - { - /* if(this.isIE) - get_IE_selection(document.getElementById(id)); */ - elem= document.getElementById(id); - elem.last_selectionStart= elem.selectionStart; - elem.last_selectionEnd= elem.selectionEnd; - elem.last_scrollTop= elem.scrollTop; - elem.last_scrollLeft= elem.scrollLeft; - elem.use_last=true; - editAreaLoader.start(id); - } - }, - - set_editarea_size_from_textarea : function(id, frame){ - var elem,width,height; - elem = document.getElementById(id); - - width = Math.max(editAreas[id]["settings"]["min_width"], elem.offsetWidth)+"px"; - height = Math.max(editAreas[id]["settings"]["min_height"], elem.offsetHeight)+"px"; - if(elem.style.width.indexOf("%")!=-1) - width = elem.style.width; - if(elem.style.height.indexOf("%")!=-1) - height = elem.style.height; - //alert("h: "+height+" w: "+width); - - frame.style.width= width; - frame.style.height= height; - }, - - set_base_url : function(){ - var t=this,elems,i,docBasePath; - - if( !this.baseURL ){ - elems = document.getElementsByTagName('script'); - - for( i=0; i<elems.length; i++ ){ - if (elems[i].src && elems[i].src.match(/edit_area_[^\\\/]*$/i) ) { - var src = elems[i].src; - src = src.substring(0, src.lastIndexOf('/')); - this.baseURL = src; - this.file_name= elems[i].src.substr(elems[i].src.lastIndexOf("/")+1); - break; - } - } - } - - docBasePath = document.location.href; - if (docBasePath.indexOf('?') != -1) - docBasePath = docBasePath.substring(0, docBasePath.indexOf('?')); - docBasePath = docBasePath.substring(0, docBasePath.lastIndexOf('/')); - - // If not HTTP absolute - if (t.baseURL.indexOf('://') == -1 && t.baseURL.charAt(0) != '/') { - // If site absolute - t.baseURL = docBasePath + "/" + t.baseURL; - } - t.baseURL +="/"; - }, - - get_button_html : function(id, img, exec, isFileSpecific, baseURL) { - var cmd,html; - if(!baseURL) - baseURL= this.baseURL; - cmd = 'editArea.execCommand(\'' + exec + '\')'; - html = '<a id="a_'+ id +'" href="javascript:' + cmd + '" onclick="' + cmd + ';return false;" onmousedown="return false;" target="_self" fileSpecific="'+ (isFileSpecific?'yes':'no') +'">'; - html += '<img id="' + id + '" src="'+ baseURL +'images/' + img + '" title="{$' + id + '}" width="20" height="20" class="editAreaButtonNormal" onmouseover="editArea.switchClass(this,\'editAreaButtonOver\');" onmouseout="editArea.restoreClass(this);" onmousedown="editArea.restoreAndSwitchClass(this,\'editAreaButtonDown\');" /></a>'; - return html; - }, - - get_control_html : function(button_name, lang) { - var t=this,i,but,html,si; - for (i=0; i<t.advanced_buttons.length; i++) - { - but = t.advanced_buttons[i]; - if (but[0] == button_name) - { - return t.get_button_html(but[0], but[1], but[2], but[3]); - } - } - - switch (button_name){ - case "*": - case "return": - return "<br />"; - case "|": - case "separator": - return '<img src="'+ t.baseURL +'images/spacer.gif" width="1" height="15" class="editAreaSeparatorLine">'; - case "select_font": - html= "<select id='area_font_size' onchange='javascript:editArea.execCommand(\"change_font_size\")' fileSpecific='yes'>"; - html+="<option value='-1'>{$font_size}</option>"; - si=[8,9,10,11,12,14]; - for( i=0;i<si.length;i++){ - html+="<option value='"+si[i]+"'>"+si[i]+" pt</option>"; - } - html+="</select>"; - return html; - case "syntax_selection": - html= "<select id='syntax_selection' onchange='javascript:editArea.execCommand(\"change_syntax\", this.value)' fileSpecific='yes'>"; - html+="<option value='-1'>{$syntax_selection}</option>"; - html+="</select>"; - return html; - } - - return "<span id='tmp_tool_"+button_name+"'>["+button_name+"]</span>"; - }, - - - get_template : function(){ - if(this.template=="") - { - var xhr_object = null; - if(window.XMLHttpRequest) // Firefox - xhr_object = new XMLHttpRequest(); - else if(window.ActiveXObject) // Internet Explorer - xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); - else { // XMLHttpRequest not supported - alert("XMLHTTPRequest not supported. EditArea not loaded"); - return; - } - - xhr_object.open("GET", this.baseURL+"template.html", false); - xhr_object.send(null); - if(xhr_object.readyState == 4) - this.template=xhr_object.responseText; - else - this.has_error(); - } - }, - - // translate text - translate : function(text, lang, mode){ - if(mode=="word") - text=editAreaLoader.get_word_translation(text, lang); - else if(mode="template"){ - editAreaLoader.current_language= lang; - text=text.replace(/\{\$([^\}]+)\}/gm, editAreaLoader.translate_template); - } - return text; - }, - - translate_template : function(){ - return editAreaLoader.get_word_translation(EditAreaLoader.prototype.translate_template.arguments[1], editAreaLoader.current_language); - }, - - get_word_translation : function(val, lang){ - var i; - - for( i in editAreaLoader.lang[lang]){ - if(i == val) - return editAreaLoader.lang[lang][i]; - } - return "_"+val; - }, - - load_script : function(url){ - var t=this,d=document,script,head; - - if( t.loadedFiles[url] ) - return; - //alert("load: "+url); - try{ - script= d.createElement("script"); - script.type= "text/javascript"; - script.src= url; - script.charset= "UTF-8"; - d.getElementsByTagName("head")[0].appendChild(script); - }catch(e){ - d.write('<sc'+'ript language="javascript" type="text/javascript" src="' + url + '" charset="UTF-8"></sc'+'ript>'); - } - - t.loadedFiles[url] = true; - }, - - add_event : function(obj, name, handler) { - try{ - if (obj.attachEvent) { - obj.attachEvent("on" + name, handler); - } else{ - obj.addEventListener(name, handler, false); - } - }catch(e){} - }, - - remove_event : function(obj, name, handler){ - try{ - if (obj.detachEvent) - obj.detachEvent("on" + name, handler); - else - obj.removeEventListener(name, handler, false); - }catch(e){} - }, - - - // reset all the editareas in the form that have been reseted - reset : function(e){ - var formObj,is_child,i,x; - - formObj = editAreaLoader.isIE ? window.event.srcElement : e.target; - if(formObj.tagName!='FORM') - formObj= formObj.form; - - for( i in editAreas ){ - is_child= false; - for( x=0;x<formObj.elements.length;x++ ) { - if(formObj.elements[x].id == i) - is_child=true; - } - - if(window.frames["frame_"+i] && is_child && editAreas[i]["displayed"]==true){ - - var exec= 'window.frames["frame_'+ i +'"].editArea.textarea.value= document.getElementById("'+ i +'").value;'; - exec+= 'window.frames["frame_'+ i +'"].editArea.execCommand("focus");'; - exec+= 'window.frames["frame_'+ i +'"].editArea.check_line_selection();'; - exec+= 'window.frames["frame_'+ i +'"].editArea.execCommand("reset");'; - window.setTimeout(exec, 10); - } - } - return; - }, - - - // prepare all the textarea replaced by an editarea to be submited - submit : function(e){ - var formObj,is_child,fs=window.frames,i,x; - formObj = editAreaLoader.isIE ? window.event.srcElement : e.target; - if(formObj.tagName!='FORM') - formObj= formObj.form; - - for( i in editAreas){ - is_child= false; - for( x=0;x<formObj.elements.length;x++ ) { - if(formObj.elements[x].id == i) - is_child=true; - } - - if(is_child) - { - if(fs["frame_"+i] && editAreas[i]["displayed"]==true) - document.getElementById(i).value= fs["frame_"+ i].editArea.textarea.value; - editAreaLoader.execCommand(i,"EA_submit"); - } - } - if( typeof(formObj.edit_area_replaced_submit) == "function" ){ - res= formObj.edit_area_replaced_submit(); - if(res==false){ - if(editAreaLoader.isIE) - return false; - else - e.preventDefault(); - } - } - return; - }, - - // allow to get the value of the editarea - getValue : function(id){ - if(window.frames["frame_"+id] && editAreas[id]["displayed"]==true){ - return window.frames["frame_"+ id].editArea.textarea.value; - }else if(elem=document.getElementById(id)){ - return elem.value; - } - return false; - }, - - // allow to set the value of the editarea - setValue : function(id, new_val){ - var fs=window.frames; - - if( ( f=fs["frame_"+id] ) && editAreas[id]["displayed"]==true){ - f.editArea.textarea.value= new_val; - f.editArea.execCommand("focus"); - f.editArea.check_line_selection(false); - f.editArea.execCommand("onchange"); - }else if(elem=document.getElementById(id)){ - elem.value= new_val; - } - }, - - // allow to get infos on the selection: array(start, end) - getSelectionRange : function(id){ - var sel,eA,fs=window.frames; - - sel= {"start": 0, "end": 0}; - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - eA= fs["frame_"+ id].editArea; - - sel["start"] = eA.textarea.selectionStart; - sel["end"] = eA.textarea.selectionEnd; - - }else if( elem=document.getElementById(id) ){ - sel= getSelectionRange(elem); - } - return sel; - }, - - // allow to set the selection with the given start and end positions - setSelectionRange : function(id, new_start, new_end){ - var fs=window.frames; - - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - fs["frame_"+ id].editArea.area_select(new_start, new_end-new_start); - // make an auto-scroll to the selection - if(!this.isIE){ - fs["frame_"+ id].editArea.check_line_selection(false); - fs["frame_"+ id].editArea.scroll_to_view(); - } - }else if(elem=document.getElementById(id)){ - setSelectionRange(elem, new_start, new_end); - } - }, - - getSelectedText : function(id){ - var sel= this.getSelectionRange(id); - - return this.getValue(id).substring(sel["start"], sel["end"]); - }, - - setSelectedText : function(id, new_val){ - var fs=window.frames,d=document,sel,text,scrollTop,scrollLeft,new_sel_end; - - new_val = new_val.replace(/\r/g, ""); - sel = this.getSelectionRange(id); - text = this.getValue(id); - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - scrollTop = fs["frame_"+ id].document.getElementById("result").scrollTop; - scrollLeft = fs["frame_"+ id].document.getElementById("result").scrollLeft; - }else{ - scrollTop = d.getElementById(id).scrollTop; - scrollLeft = d.getElementById(id).scrollLeft; - } - - text = text.substring(0, sel["start"])+ new_val +text.substring(sel["end"]); - this.setValue(id, text); - new_sel_end = sel["start"]+ new_val.length; - this.setSelectionRange(id, sel["start"], new_sel_end); - - - // fix \r problem for selection length count on IE & Opera - if(new_val != this.getSelectedText(id).replace(/\r/g, "")){ - this.setSelectionRange(id, sel["start"], new_sel_end+ new_val.split("\n").length -1); - } - // restore scrolling position - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - fs["frame_"+ id].document.getElementById("result").scrollTop= scrollTop; - fs["frame_"+ id].document.getElementById("result").scrollLeft= scrollLeft; - fs["frame_"+ id].editArea.execCommand("onchange"); - }else{ - d.getElementById(id).scrollTop= scrollTop; - d.getElementById(id).scrollLeft= scrollLeft; - } - }, - - insertTags : function(id, open_tag, close_tag){ - var old_sel,new_sel; - - old_sel = this.getSelectionRange(id); - text = open_tag + this.getSelectedText(id) + close_tag; - - editAreaLoader.setSelectedText(id, text); - - new_sel = this.getSelectionRange(id); - if(old_sel["end"] > old_sel["start"]) // if text was selected, cursor at the end - this.setSelectionRange(id, new_sel["end"], new_sel["end"]); - else // cursor in the middle - this.setSelectionRange(id, old_sel["start"]+open_tag.length, old_sel["start"]+open_tag.length); - }, - - // hide both EditArea and normal textarea - hide : function(id){ - var fs= window.frames,d=document,t=this,scrollTop,scrollLeft,span; - if(d.getElementById(id) && !t.hidden[id]) - { - t.hidden[id]= {}; - t.hidden[id]["selectionRange"]= t.getSelectionRange(id); - if(d.getElementById(id).style.display!="none") - { - t.hidden[id]["scrollTop"]= d.getElementById(id).scrollTop; - t.hidden[id]["scrollLeft"]= d.getElementById(id).scrollLeft; - } - - if(fs["frame_"+id]) - { - t.hidden[id]["toggle"]= editAreas[id]["displayed"]; - - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - scrollTop = fs["frame_"+ id].document.getElementById("result").scrollTop; - scrollLeft = fs["frame_"+ id].document.getElementById("result").scrollLeft; - }else{ - scrollTop = d.getElementById(id).scrollTop; - scrollLeft = d.getElementById(id).scrollLeft; - } - t.hidden[id]["scrollTop"]= scrollTop; - t.hidden[id]["scrollLeft"]= scrollLeft; - - if(editAreas[id]["displayed"]==true) - editAreaLoader.toggle_off(id); - } - - // hide toggle button and debug box - span= d.getElementById("EditAreaArroundInfos_"+id); - if(span){ - span.style.display='none'; - } - - // hide textarea - d.getElementById(id).style.display= "none"; - } - }, - - // restore hidden EditArea and normal textarea - show : function(id){ - var fs= window.frames,d=document,t=this,span; - if((elem=d.getElementById(id)) && t.hidden[id]) - { - elem.style.display= "inline"; - elem.scrollTop= t.hidden[id]["scrollTop"]; - elem.scrollLeft= t.hidden[id]["scrollLeft"]; - span= d.getElementById("EditAreaArroundInfos_"+id); - if(span){ - span.style.display='inline'; - } - - if(fs["frame_"+id]) - { - - // restore toggle button and debug box - - - // restore textarea - elem.style.display= "inline"; - - // restore EditArea - if(t.hidden[id]["toggle"]==true) - editAreaLoader.toggle_on(id); - - scrollTop = t.hidden[id]["scrollTop"]; - scrollLeft = t.hidden[id]["scrollLeft"]; - - if(fs["frame_"+id] && editAreas[id]["displayed"]==true){ - fs["frame_"+ id].document.getElementById("result").scrollTop = scrollTop; - fs["frame_"+ id].document.getElementById("result").scrollLeft = scrollLeft; - }else{ - elem.scrollTop = scrollTop; - elem.scrollLeft = scrollLeft; - } - - } - // restore selection - sel = t.hidden[id]["selectionRange"]; - t.setSelectionRange(id, sel["start"], sel["end"]); - delete t.hidden[id]; - } - }, - - // get the current file datas (for multi file editing mode) - getCurrentFile : function(id){ - return this.execCommand(id, 'get_file', this.execCommand(id, 'curr_file')); - }, - - // get the given file datas (for multi file editing mode) - getFile : function(id, file_id){ - return this.execCommand(id, 'get_file', file_id); - }, - - // get all the openned files datas (for multi file editing mode) - getAllFiles : function(id){ - return this.execCommand(id, 'get_all_files()'); - }, - - // open a file (for multi file editing mode) - openFile : function(id, file_infos){ - return this.execCommand(id, 'open_file', file_infos); - }, - - // close the given file (for multi file editing mode) - closeFile : function(id, file_id){ - return this.execCommand(id, 'close_file', file_id); - }, - - // close the given file (for multi file editing mode) - setFileEditedMode : function(id, file_id, to){ - var reg1,reg2; - reg1 = new RegExp('\\\\', 'g'); - reg2 = new RegExp('"', 'g'); - return this.execCommand(id, 'set_file_edited_mode("'+ file_id.replace(reg1, '\\\\').replace(reg2, '\\"') +'", '+ to +')'); - }, - - - // allow to access to editarea functions and datas (for advanced users only) - execCommand : function(id, cmd, fct_param){ - switch(cmd){ - case "EA_init": - if(editAreas[id]['settings']["EA_init_callback"].length>0) - eval(editAreas[id]['settings']["EA_init_callback"]+"('"+ id +"');"); - break; - case "EA_delete": - if(editAreas[id]['settings']["EA_delete_callback"].length>0) - eval(editAreas[id]['settings']["EA_delete_callback"]+"('"+ id +"');"); - break; - case "EA_submit": - if(editAreas[id]['settings']["submit_callback"].length>0) - eval(editAreas[id]['settings']["submit_callback"]+"('"+ id +"');"); - break; - } - if(window.frames["frame_"+id] && window.frames["frame_"+ id].editArea){ - if(fct_param!=undefined) - return eval('window.frames["frame_'+ id +'"].editArea.'+ cmd +'(fct_param);'); - else - return eval('window.frames["frame_'+ id +'"].editArea.'+ cmd +';'); - } - return false; - } -}; - - var editAreaLoader= new EditAreaLoader(); - var editAreas= {}; - diff --git a/wp-content/plugins/comicpress-companion/edit_area/elements_functions.js b/wp-content/plugins/comicpress-companion/edit_area/elements_functions.js deleted file mode 100644 index 3426fd19c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/elements_functions.js +++ /dev/null @@ -1,333 +0,0 @@ -/**** - * This page contains some general usefull functions for javascript - * - ****/ - - - // need to redefine this functiondue to IE problem - function getAttribute( elm, aName ) { - var aValue,taName,i; - try{ - aValue = elm.getAttribute( aName ); - }catch(exept){} - - if( ! aValue ){ - for( i = 0; i < elm.attributes.length; i ++ ) { - taName = elm.attributes[i] .name.toLowerCase(); - if( taName == aName ) { - aValue = elm.attributes[i] .value; - return aValue; - } - } - } - return aValue; - }; - - // need to redefine this function due to IE problem - function setAttribute( elm, attr, val ) { - if(attr=="class"){ - elm.setAttribute("className", val); - elm.setAttribute("class", val); - }else{ - elm.setAttribute(attr, val); - } - }; - - /* return a child element - elem: element we are searching in - elem_type: type of the eleemnt we are searching (DIV, A, etc...) - elem_attribute: attribute of the searched element that must match - elem_attribute_match: value that elem_attribute must match - option: "all" if must return an array of all children, otherwise return the first match element - depth: depth of search (-1 or no set => unlimited) - */ - function getChildren(elem, elem_type, elem_attribute, elem_attribute_match, option, depth) - { - if(!option) - var option="single"; - if(!depth) - var depth=-1; - if(elem){ - var children= elem.childNodes; - var result=null; - var results= []; - for (var x=0;x<children.length;x++) { - strTagName = new String(children[x].tagName); - children_class="?"; - if(strTagName!= "undefined"){ - child_attribute= getAttribute(children[x],elem_attribute); - if((strTagName.toLowerCase()==elem_type.toLowerCase() || elem_type=="") && (elem_attribute=="" || child_attribute==elem_attribute_match)){ - if(option=="all"){ - results.push(children[x]); - }else{ - return children[x]; - } - } - if(depth!=0){ - result=getChildren(children[x], elem_type, elem_attribute, elem_attribute_match, option, depth-1); - if(option=="all"){ - if(result.length>0){ - results= results.concat(result); - } - }else if(result!=null){ - return result; - } - } - } - } - if(option=="all") - return results; - } - return null; - }; - - function isChildOf(elem, parent){ - if(elem){ - if(elem==parent) - return true; - while(elem.parentNode != 'undefined'){ - return isChildOf(elem.parentNode, parent); - } - } - return false; - }; - - function getMouseX(e){ - - if(e!=null && typeof(e.pageX)!="undefined"){ - return e.pageX; - }else{ - return (e!=null?e.x:event.x)+ document.documentElement.scrollLeft; - } - }; - - function getMouseY(e){ - if(e!=null && typeof(e.pageY)!="undefined"){ - return e.pageY; - }else{ - return (e!=null?e.y:event.y)+ document.documentElement.scrollTop; - } - }; - - function calculeOffsetLeft(r){ - return calculeOffset(r,"offsetLeft") - }; - - function calculeOffsetTop(r){ - return calculeOffset(r,"offsetTop") - }; - - function calculeOffset(element,attr){ - var offset=0; - while(element){ - offset+=element[attr]; - element=element.offsetParent - } - return offset; - }; - - /** return the computed style - * @param: elem: the reference to the element - * @param: prop: the name of the css property - */ - function get_css_property(elem, prop) - { - if(document.defaultView) - { - return document.defaultView.getComputedStyle(elem, null).getPropertyValue(prop); - } - else if(elem.currentStyle) - { - var prop = prop.replace(/-\D/gi, function(sMatch) - { - return sMatch.charAt(sMatch.length - 1).toUpperCase(); - }); - return elem.currentStyle[prop]; - } - else return null; - } - -/**** - * Moving an element - ***/ - - var _mCE; // currently moving element - - /* allow to move an element in a window - e: the event - id: the id of the element - frame: the frame of the element - ex of use: - in html: <img id='move_area_search_replace' onmousedown='return parent.start_move_element(event,"area_search_replace", parent.frames["this_frame_id"]);' .../> - or - in javascript: document.getElementById("my_div").onmousedown= start_move_element - */ - function start_move_element(e, id, frame){ - var elem_id=(e.target || e.srcElement).id; - if(id) - elem_id=id; - if(!frame) - frame=window; - if(frame.event) - e=frame.event; - - _mCE= frame.document.getElementById(elem_id); - _mCE.frame=frame; - frame.document.onmousemove= move_element; - frame.document.onmouseup= end_move_element; - /*_mCE.onmousemove= move_element; - _mCE.onmouseup= end_move_element;*/ - - //alert(_mCE.frame.document.body.offsetHeight); - - mouse_x= getMouseX(e); - mouse_y= getMouseY(e); - //window.status=frame+ " elem: "+elem_id+" elem: "+ _mCE + " mouse_x: "+mouse_x; - _mCE.start_pos_x = mouse_x - (_mCE.style.left.replace("px","") || calculeOffsetLeft(_mCE)); - _mCE.start_pos_y = mouse_y - (_mCE.style.top.replace("px","") || calculeOffsetTop(_mCE)); - return false; - }; - - function end_move_element(e){ - _mCE.frame.document.onmousemove= ""; - _mCE.frame.document.onmouseup= ""; - _mCE=null; - }; - - function move_element(e){ - var newTop,newLeft,maxLeft; - - if( _mCE.frame && _mCE.frame.event ) - e=_mCE.frame.event; - newTop = getMouseY(e) - _mCE.start_pos_y; - newLeft = getMouseX(e) - _mCE.start_pos_x; - - maxLeft = _mCE.frame.document.body.offsetWidth- _mCE.offsetWidth; - max_top = _mCE.frame.document.body.offsetHeight- _mCE.offsetHeight; - newTop = Math.min(Math.max(0, newTop), max_top); - newLeft = Math.min(Math.max(0, newLeft), maxLeft); - - _mCE.style.top = newTop+"px"; - _mCE.style.left = newLeft+"px"; - return false; - }; - -/*** - * Managing a textarea (this part need the navigator infos from editAreaLoader - ***/ - - var nav= editAreaLoader.nav; - - // allow to get infos on the selection: array(start, end) - function getSelectionRange(textarea){ - return {"start": textarea.selectionStart, "end": textarea.selectionEnd}; - }; - - // allow to set the selection - function setSelectionRange(t, start, end){ - t.focus(); - - start = Math.max(0, Math.min(t.value.length, start)); - end = Math.max(start, Math.min(t.value.length, end)); - - if( this.isOpera && this.isOpera < 9.6 ){ // Opera bug when moving selection start and selection end - t.selectionEnd = 1; - t.selectionStart = 0; - t.selectionEnd = 1; - t.selectionStart = 0; - } - t.selectionStart = start; - t.selectionEnd = end; - //textarea.setSelectionRange(start, end); - - if(isIE) - set_IE_selection(t); - }; - - - // set IE position in Firefox mode (textarea.selectionStart and textarea.selectionEnd). should work as a repeated task - function get_IE_selection(t){ - var d=document,div,range,stored_range,elem,scrollTop,relative_top,line_start,line_nb,range_start,range_end,tab; - if(t && t.focused) - { - if(!t.ea_line_height) - { // calculate the lineHeight - div= d.createElement("div"); - div.style.fontFamily= get_css_property(t, "font-family"); - div.style.fontSize= get_css_property(t, "font-size"); - div.style.visibility= "hidden"; - div.innerHTML="0"; - d.body.appendChild(div); - t.ea_line_height= div.offsetHeight; - d.body.removeChild(div); - } - //t.focus(); - range = d.selection.createRange(); - try - { - stored_range = range.duplicate(); - stored_range.moveToElementText( t ); - stored_range.setEndPoint( 'EndToEnd', range ); - if(stored_range.parentElement() == t){ - // the range don't take care of empty lines in the end of the selection - elem = t; - scrollTop = 0; - while(elem.parentNode){ - scrollTop+= elem.scrollTop; - elem = elem.parentNode; - } - - // var scrollTop= t.scrollTop + document.body.scrollTop; - - // var relative_top= range.offsetTop - calculeOffsetTop(t) + scrollTop; - relative_top= range.offsetTop - calculeOffsetTop(t)+ scrollTop; - // alert("rangeoffset: "+ range.offsetTop +"\ncalcoffsetTop: "+ calculeOffsetTop(t) +"\nrelativeTop: "+ relative_top); - line_start = Math.round((relative_top / t.ea_line_height) +1); - - line_nb = Math.round(range.boundingHeight / t.ea_line_height); - - range_start = stored_range.text.length - range.text.length; - tab = t.value.substr(0, range_start).split("\n"); - range_start += (line_start - tab.length)*2; // add missing empty lines to the selection - t.selectionStart = range_start; - - range_end = t.selectionStart + range.text.length; - tab = t.value.substr(0, range_start + range.text.length).split("\n"); - range_end += (line_start + line_nb - 1 - tab.length)*2; - t.selectionEnd = range_end; - } - } - catch(e){} - } - setTimeout("get_IE_selection(document.getElementById('"+ t.id +"'));", 50); - }; - - function IE_textarea_focus(){ - event.srcElement.focused= true; - } - - function IE_textarea_blur(){ - event.srcElement.focused= false; - } - - // select the text for IE (take into account the \r difference) - function set_IE_selection( t ){ - var nbLineStart,nbLineStart,nbLineEnd,range; - if(!window.closed){ - nbLineStart=t.value.substr(0, t.selectionStart).split("\n").length - 1; - nbLineEnd=t.value.substr(0, t.selectionEnd).split("\n").length - 1; - try - { - range = document.selection.createRange(); - range.moveToElementText( t ); - range.setEndPoint( 'EndToStart', range ); - range.moveStart('character', t.selectionStart - nbLineStart); - range.moveEnd('character', t.selectionEnd - nbLineEnd - (t.selectionStart - nbLineStart) ); - range.select(); - } - catch(e){} - } - }; - - - editAreaLoader.waiting_loading["elements_functions.js"]= "loaded"; diff --git a/wp-content/plugins/comicpress-companion/edit_area/highlight.js b/wp-content/plugins/comicpress-companion/edit_area/highlight.js deleted file mode 100644 index fbfbc0089..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/highlight.js +++ /dev/null @@ -1,391 +0,0 @@ - // change_to: "on" or "off" - EditArea.prototype.change_highlight= function(change_to){ - if(this.settings["syntax"].length==0 && change_to==false){ - this.switchClassSticky(_$("highlight"), 'editAreaButtonDisabled', true); - this.switchClassSticky(_$("reset_highlight"), 'editAreaButtonDisabled', true); - return false; - } - - if(this.do_highlight==change_to) - return false; - - - this.getIESelection(); - var pos_start= this.textarea.selectionStart; - var pos_end= this.textarea.selectionEnd; - - if(this.do_highlight===true || change_to==false) - this.disable_highlight(); - else - this.enable_highlight(); - this.textarea.focus(); - this.textarea.selectionStart = pos_start; - this.textarea.selectionEnd = pos_end; - this.setIESelection(); - - }; - - EditArea.prototype.disable_highlight= function(displayOnly){ - var t= this, a=t.textarea, new_Obj, old_class, new_class; - - t.selection_field.innerHTML=""; - t.selection_field_text.innerHTML=""; - t.content_highlight.style.visibility="hidden"; - // replacing the node is far more faster than deleting it's content in firefox - new_Obj= t.content_highlight.cloneNode(false); - new_Obj.innerHTML= ""; - t.content_highlight.parentNode.insertBefore(new_Obj, t.content_highlight); - t.content_highlight.parentNode.removeChild(t.content_highlight); - t.content_highlight= new_Obj; - old_class= parent.getAttribute( a,"class" ); - if(old_class){ - new_class= old_class.replace( "hidden","" ); - parent.setAttribute( a, "class", new_class ); - } - - a.style.backgroundColor="transparent"; // needed in order to see the bracket finders - - //var icon= document.getElementById("highlight"); - //setAttribute(icon, "class", getAttribute(icon, "class").replace(/ selected/g, "") ); - //t.restoreClass(icon); - //t.switchClass(icon,'editAreaButtonNormal'); - t.switchClassSticky(_$("highlight"), 'editAreaButtonNormal', true); - t.switchClassSticky(_$("reset_highlight"), 'editAreaButtonDisabled', true); - - t.do_highlight=false; - - t.switchClassSticky(_$("change_smooth_selection"), 'editAreaButtonSelected', true); - if(typeof(t.smooth_selection_before_highlight)!="undefined" && t.smooth_selection_before_highlight===false){ - t.change_smooth_selection_mode(false); - } - - // this.textarea.style.backgroundColor="#FFFFFF"; - }; - - EditArea.prototype.enable_highlight= function(){ - var t=this, a=t.textarea, new_class; - t.show_waiting_screen(); - - t.content_highlight.style.visibility="visible"; - new_class =parent.getAttribute(a,"class")+" hidden"; - parent.setAttribute( a, "class", new_class ); - - // IE can't manage mouse click outside text range without this - if( t.isIE ) - a.style.backgroundColor="#FFFFFF"; - - t.switchClassSticky(_$("highlight"), 'editAreaButtonSelected', false); - t.switchClassSticky(_$("reset_highlight"), 'editAreaButtonNormal', false); - - t.smooth_selection_before_highlight=t.smooth_selection; - if(!t.smooth_selection) - t.change_smooth_selection_mode(true); - t.switchClassSticky(_$("change_smooth_selection"), 'editAreaButtonDisabled', true); - - - t.do_highlight=true; - t.resync_highlight(); - - t.hide_waiting_screen(); - }; - - /** - * Ask to update highlighted text - * @param Array infos - Array of datas returned by EditArea.get_selection_infos() - */ - EditArea.prototype.maj_highlight= function(infos){ - // for speed mesure - var debug_opti="",tps_start= new Date().getTime(), tps_middle_opti=new Date().getTime(); - var t=this, hightlighted_text, updated_highlight; - var textToHighlight=infos["full_text"], doSyntaxOpti = false, doHtmlOpti = false, stay_begin="", stay_end="", trace_new , trace_last; - - if(t.last_text_to_highlight==infos["full_text"] && t.resync_highlight!==true) - return; - - // OPTIMISATION: will search to update only changed lines - if(t.reload_highlight===true){ - t.reload_highlight=false; - }else if(textToHighlight.length==0){ - textToHighlight="\n "; - }else{ - // get text change datas - changes = t.checkTextEvolution(t.last_text_to_highlight,textToHighlight); - - // check if it can only reparse the changed text - trace_new = t.get_syntax_trace(changes.newTextLine).replace(/\r/g, ''); - trace_last = t.get_syntax_trace(changes.lastTextLine).replace(/\r/g, ''); - doSyntaxOpti = ( trace_new == trace_last ); - - // check if the difference comes only from a new line created - // => we have to remember that the editor can automaticaly add tabulation or space after the new line) - if( !doSyntaxOpti && trace_new == "\n"+trace_last && /^[ \t\s]*\n[ \t\s]*$/.test( changes.newText.replace(/\r/g, '') ) && changes.lastText =="" ) - { - doSyntaxOpti = true; - } - - // we do the syntax optimisation - if( doSyntaxOpti ){ - - tps_middle_opti=new Date().getTime(); - - stay_begin= t.last_hightlighted_text.split("\n").slice(0, changes.lineStart).join("\n"); - if(changes.lineStart>0) - stay_begin+= "\n"; - stay_end= t.last_hightlighted_text.split("\n").slice(changes.lineLastEnd+1).join("\n"); - if(stay_end.length>0) - stay_end= "\n"+stay_end; - - // Final check to see that we're not in the middle of span tags - if( stay_begin.split('<span').length != stay_begin.split('</span').length - || stay_end.split('<span').length != stay_end.split('</span').length ) - { - doSyntaxOpti = false; - stay_end = ''; - stay_begin = ''; - } - else - { - if(stay_begin.length==0 && changes.posLastEnd==-1) - changes.newTextLine+="\n"; - textToHighlight=changes.newTextLine; - } - } - if(t.settings["debug"]){ - var ch =changes; - debug_opti= ( doSyntaxOpti?"Optimisation": "No optimisation" ) - +" start: "+ch.posStart +"("+ch.lineStart+")" - +" end_new: "+ ch.posNewEnd+"("+ch.lineNewEnd+")" - +" end_last: "+ ch.posLastEnd+"("+ch.lineLastEnd+")" - +"\nchanged_text: "+ch.newText+" => trace: "+trace_new - +"\nchanged_last_text: "+ch.lastText+" => trace: "+trace_last - //debug_opti+= "\nchanged: "+ infos["full_text"].substring(ch.posStart, ch.posNewEnd); - + "\nchanged_line: "+ch.newTextLine - + "\nlast_changed_line: "+ch.lastTextLine - +"\nstay_begin: "+ stay_begin.slice(-100) - +"\nstay_end: "+ stay_end.substr( 0, 100 ); - //debug_opti="start: "+stay_begin_len+ "("+nb_line_start_unchanged+") end: "+ (stay_end_len)+ "("+(splited.length-nb_line_end_unchanged)+") "; - //debug_opti+="changed: "+ textToHighlight.substring(stay_begin_len, textToHighlight.length-stay_end_len)+" \n"; - - //debug_opti+="changed: "+ stay_begin.substr(stay_begin.length-200)+ "----------"+ textToHighlight+"------------------"+ stay_end.substr(0,200) +"\n"; - +"\n"; - } - - - // END OPTIMISATION - } - - tps_end_opti = new Date().getTime(); - - // apply highlight - updated_highlight = t.colorize_text(textToHighlight); - tpsAfterReg = new Date().getTime(); - - /*** - * see if we can optimize for updating only the required part of the HTML code - * - * The goal here will be to find the text node concerned by the modification and to update it - */ - //------------------------------------------- - // - if( doSyntaxOpti ) - { - try - { - var replacedBloc, i, nbStart = '', nbEnd = '', newHtml, lengthOld, lengthNew; - replacedBloc = t.last_hightlighted_text.substring( stay_begin.length, t.last_hightlighted_text.length - stay_end.length ); - - lengthOld = replacedBloc.length; - lengthNew = updated_highlight.length; - - // find the identical caracters at the beginning - for( i=0; i < lengthOld && i < lengthNew && replacedBloc.charAt(i) == updated_highlight.charAt(i) ; i++ ) - { - } - nbStart = i; - // find the identical caracters at the end - for( i=0; i + nbStart < lengthOld && i + nbStart < lengthNew && replacedBloc.charAt(lengthOld-i-1) == updated_highlight.charAt(lengthNew-i-1) ; i++ ) - { - } - nbEnd = i; - - // get the changes - lastHtml = replacedBloc.substring( nbStart, lengthOld - nbEnd ); - newHtml = updated_highlight.substring( nbStart, lengthNew - nbEnd ); - - - // We can do the optimisation only if we havn't touch to span elements - if( newHtml.indexOf('<span') == -1 && newHtml.indexOf('</span') == -1 - && lastHtml.indexOf('<span') == -1 && lastHtml.indexOf('</span') == -1 ) - { - var beginStr, nbOpendedSpan, nbClosedSpan, nbUnchangedChars, span, textNode; - doHtmlOpti = true; - beginStr = t.last_hightlighted_text.substr( 0, stay_begin.length + nbStart ); - - nbOpendedSpan = beginStr.split('<span').length - 1; - nbClosedSpan = beginStr.split('</span').length - 1; - // retrieve the previously opened span (Add 1 for the first level span?) - span = t.content_highlight.getElementsByTagName('span')[ nbOpendedSpan ]; - - //--------[ - // get the textNode to update - - // if we're inside a span, we'll take the one that is opened (can be a parent of the current span) - parentSpan = span; - maxStartOffset = maxEndOffset = 0; - - // it will be in the child of the root node - if( nbOpendedSpan == nbClosedSpan ) - { - while( parentSpan.parentNode != t.content_highlight && parentSpan.parentNode.tagName != 'PRE' ) - { - parentSpan = parentSpan.parentNode; - } - } - // get the last opened span - else - { - maxStartOffset = maxEndOffset = beginStr.length + 1; - // move to parent node for each closed span found after the lastest open span - nbClosed = beginStr.substr( Math.max( 0, beginStr.lastIndexOf( '<span', maxStartOffset - 1 ) ) ).split('</span').length - 1; - while( nbClosed > 0 ) - { - nbClosed--; - parentSpan = parentSpan.parentNode; - } - - // find the position of the last opended tag - while( parentSpan.parentNode != t.content_highlight && parentSpan.parentNode.tagName != 'PRE' && ( tmpMaxStartOffset = Math.max( 0, beginStr.lastIndexOf( '<span', maxStartOffset - 1 ) ) ) < ( tmpMaxEndOffset = Math.max( 0, beginStr.lastIndexOf( '</span', maxEndOffset - 1 ) ) ) ) - { - maxStartOffset = tmpMaxStartOffset; - maxEndOffset = tmpMaxEndOffset; - } - } - // Note: maxEndOffset is no more used but maxStartOffset will be used - - if( parentSpan.parentNode == t.content_highlight || parentSpan.parentNode.tagName == 'PRE' ) - { - maxStartOffset = Math.max( 0, beginStr.indexOf( '<span' ) ); - } - - // find the matching text node (this will be one that will be at the end of the beginStr - if( maxStartOffset == beginStr.length ) - { - nbSubSpanBefore = 0; - } - else - { - lastEndPos = Math.max( 0, beginStr.lastIndexOf( '>', maxStartOffset ) ); - - // count the number of sub spans - nbSubSpanBefore = beginStr.substr( lastEndPos ).split('<span').length-1; - } - - // there is no sub-span before - if( nbSubSpanBefore == 0 ) - { - textNode = parentSpan.firstChild; - } - // we need to find where is the text node modified - else - { - // take the last direct child (no sub-child) - lastSubSpan = parentSpan.getElementsByTagName('span')[ nbSubSpanBefore - 1 ]; - while( lastSubSpan.parentNode != parentSpan ) - { - lastSubSpan = lastSubSpan.parentNode; - } - - // associate to next text node following the last sub span - if( lastSubSpan.nextSibling == null || lastSubSpan.nextSibling.nodeType != 3 ) - { - textNode = document.createTextNode(''); - lastSubSpan.parentNode.insertBefore( textNode, lastSubSpan.nextSibling ); - } - else - { - textNode = lastSubSpan.nextSibling; - } - } - //--------] - - - //--------[ - // update the textNode content - - // number of caracters after the last opened of closed span - nbUnchangedChars = beginStr.length - Math.max( 0, beginStr.lastIndexOf( '>' ) + 1 ); - - // console.log( span, textNode, nbOpendedSpan,nbClosedSpan, span.nextSibling, textNode.length, nbUnchangedChars, lastHtml, lastHtml.length, newHtml, newHtml.length ); - // alert( textNode.parentNode.className +'-'+ textNode.parentNode.tagName+"\n"+ textNode.data +"\n"+ nbUnchangedChars +"\n"+ lastHtml.length +"\n"+ newHtml +"\n"+ newHtml.length ); - - // IE only manage \r for cariage return in textNode and not \n or \r\n - if( t.isIE ) - { - nbUnchangedChars -= ( beginStr.substr( beginStr.length - nbUnchangedChars ).split("\n").length - 1 ); - //alert( textNode.data.replace(/\r/g, '_r').replace(/\n/g, '_n')); - textNode.replaceData( nbUnchangedChars, lastHtml.replace(/\n/g, '').length, newHtml.replace(/\n/g, '') ); - } - else - { - textNode.replaceData( nbUnchangedChars, lastHtml.length, newHtml ); - } - //--------] - } - } - // an exception shouldn't occured but if replaceData failed at least it won't break everything - catch( e ) - { - // throw e; - // console.log( e ); - doHtmlOpti = false; - } - - } - /*** END HTML update's optimisation ***/ - // end test - - // console.log( (TPS6-TPS5), (TPS5-TPS4), (TPS4-TPS3), (TPS3-TPS2), (TPS2-TPS1), _CPT ); - // get the new highlight content - tpsAfterOpti2 = new Date().getTime(); - hightlighted_text = stay_begin + updated_highlight + stay_end; - if( !doHtmlOpti ) - { - // update the content of the highlight div by first updating a clone node (as there is no display in the same time for t node it's quite faster (5*)) - var new_Obj= t.content_highlight.cloneNode(false); - if( ( t.isIE && t.isIE < 8 ) || ( t.isOpera && t.isOpera < 9.6 ) ) - new_Obj.innerHTML= "<pre><span class='"+ t.settings["syntax"] +"'>" + hightlighted_text + "</span></pre>"; - else - new_Obj.innerHTML= "<span class='"+ t.settings["syntax"] +"'>"+ hightlighted_text +"</span>"; - - t.content_highlight.parentNode.replaceChild(new_Obj, t.content_highlight); - - t.content_highlight= new_Obj; - } - - t.last_text_to_highlight= infos["full_text"]; - t.last_hightlighted_text= hightlighted_text; - - tps3=new Date().getTime(); - - if(t.settings["debug"]){ - //lineNumber=tab_text.length; - //t.debug.value+=" \nNB char: "+_$("src").value.length+" Nb line: "+ lineNumber; - - t.debug.value= "Tps optimisation "+(tps_end_opti-tps_start) - +" | tps reg exp: "+ (tpsAfterReg-tps_end_opti) - +" | tps opti HTML : "+ (tpsAfterOpti2-tpsAfterReg) + ' '+ ( doHtmlOpti ? 'yes' : 'no' ) - +" | tps update highlight content: "+ (tps3-tpsAfterOpti2) - +" | tpsTotal: "+ (tps3-tps_start) - + "("+tps3+")\n"+ debug_opti; - // t.debug.value+= "highlight\n"+hightlighted_text;*/ - } - - }; - - EditArea.prototype.resync_highlight= function(reload_now){ - this.reload_highlight=true; - this.last_text_to_highlight=""; - this.focus(); - if(reload_now) - this.check_line_selection(false); - }; diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/autocompletion.gif b/wp-content/plugins/comicpress-companion/edit_area/images/autocompletion.gif deleted file mode 100644 index f3dfc2e3a9098846711136f051eef77653916032..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 359 zcmZ?wbhEHb6k!lyxXQpFA|mo}EA!@Q4nOYHgolT(Sh3>UDThDr4mvqG+1lE6cXyvT zbEdhu`ST&IJNwfAetYoaa@wzFON@<;j~+dGc75dc@83V|k@#`5`0Fu`@8^QOy}f_l zoA&F)_Ivm4iHV8*|NnpA0<TZocz@h%NJ~rm_v_93tsGzW8~lF0=EwD%?-!!ity?!` z%9P8OFMr=F`R~W`-!FH4JL~o5-LZp<eSh3-`u}X{$K4!X4jX?xpz{C!e+Fzo@h1x- zJA(y-4oDK@CkD0_hdBivI#T^7o_t)QvrB1*Gu!tDvqDJ@mCZX1*UuKoV%TirIYBx{ zZLtN9sYmhTiJ^8PA&(cTEH&X4)lm>vH1yP~SLR}65@$41@{&>(;*d&Jtnr*8#L1w+ yXs9Ob$-*;_AyC3e#)D(Ud}n>H4J*T)lx3%_+F_y0t-W`j7N^|46DPeK8LR=EG@q3K diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/close.gif b/wp-content/plugins/comicpress-companion/edit_area/images/close.gif deleted file mode 100644 index 679ca2aa47644793fc7096142233af6d18cfc9ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 102 zcmZ?wbhEHb6ky<E*u=o_|Nnmn2Zt*cPBb($FdzXP5F4b1f!Ua2*BwTsQ<}#YTSQ54 u&YV}~xiElB`sv&k9Cg9JHWjhYH;uj)`ShF8fdmg7G3FCXiaLE57_0&Lb0FOS diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/fullscreen.gif b/wp-content/plugins/comicpress-companion/edit_area/images/fullscreen.gif deleted file mode 100644 index 66fa6d92177f171fd42883474b7dd093bd2d339a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 198 zcmZ?wbhEHb6k!lyILymn<dw8&<8hyoLx-;YE17&^(zZX3KK;v_`qHWVLCvyHk6!&- zar|F+?d@+r|6O|YkAZ<f@h1x-0|P&U4g&)N1IP>pmf{a5Jy-9w$d=jlf1apGN~T#G zV~FxYAs)puOpDfpytX*}NWZm-*Zkr_o_z^PC$a?C_NFKmCOn(N-0ZaRcBrh2=j-qp za(p~2J3J!_c3=4N>y}>dMV`tZ7iZnO$icx=?CKsJ9UEKC&(Pb~-zPn3@|3C5gasL_ E0U}jbIRF3v diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/go_to_line.gif b/wp-content/plugins/comicpress-companion/edit_area/images/go_to_line.gif deleted file mode 100644 index 06042ec9ab0947e483f12016d58840f483abfc93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1053 zcmZ?wbhEHb6k!lyc)o#w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wLbrLK4 ocET{2&2OHynTE!fge80mjurD78Y~K&+xcZyWZ$1>puk`a07lHKBLDyZ diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/help.gif b/wp-content/plugins/comicpress-companion/edit_area/images/help.gif deleted file mode 100644 index 51a1ee42073402ce787b60d151219ef7ce367615..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 295 zcmZ?wbhEHb6k!lyxWdOE;=gI}?%Q!~^Im-XSvql<Qq-fOITtLWde7as=T!B(XvU94 zdw)$@dwB1m!$1H03uwG#n)gpA_+(huuZ}f;Ce2%P==#@&<+ptcX2tiP*>K{{#I=u< zA`TroeNQR<%cc|G85kH8f3h$#Fvv6LFfcGMfb3*oUGhM^FC}wc#;SE53nJS@*TkoV z`n?Nro0isi*F|Y&2-_y%Lysa<#CA3&86GI`Y4lQESWuxN=YD8%;tZZX&qW+BOH^kx z9%w1_Q25c8vi+t7pBjHsZdIH#LtTSvDVHoOt1zFSAOk<MxEhbB9P4C$u_+9UGAwE` zY|K)VrT7>a#F$xl)p<5B^4Ib+ZWPhr;E|AI4qUQVi<d>5U0i&V$@vQxO%xfd0Y9a5 A0ssI2 diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/highlight.gif b/wp-content/plugins/comicpress-companion/edit_area/images/highlight.gif deleted file mode 100644 index 16491f6cfcf3e1123f08352c895f8010f791c469..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 256 zcmZ?wbhEHb6k!lyxFW#dW}`N#%IVehnnja}(vzcapI>umN7MI@8`4vcJ6TPdJn_(> zRZgc)UfHr`OI}``n_tkUSD!AOn0D{(-9@vK{{21F)YNuqSJHx6GY)Q@`RdN3hLWU7 zlOFl_rEi*K^!Uz31_lPjpDc_F4Dt**3=9kmAUhdYYagihrDV>_Sha4&5)B?}qf>1b ztFFA+GPgi;Zj0hh4T1e^T*)6y6pnN?FV+!NYGZDFw9`YY*ZpY7hn(~69#0<?*qo5m zeOhpWgQtb-VeTiFEu~CMV!|@~p($)-O=8@#3?1qc%sqV!;yMyiz5O$cBv=@y8!0c4 NTC!s0Ds@E$YXI|nZubBH diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/load.gif b/wp-content/plugins/comicpress-companion/edit_area/images/load.gif deleted file mode 100644 index 461698f56b1e5822f49ed10227b2e57e683c8a03..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1041 zcmZ?wbhEHb6k!lyc)pc^fqORt_Z|kGoeV<D7zDO52(4xi+Q1;TjzRPQgTx*N$rCK{ z+Zg0dGN@c)S3Aj}wS!-C9fRgA7Q_9b+S{3p53?EE5;I=KVSh^2Y8{8o6Gewjf?nrU z-FJw2KQ{C@BIf^A+kdZR;BLdPBeIdN6=N=21fSE7xTqHU+&uP_X7Y9GxLX=2pRAHD zsHcCkNxfj1e%T=Fvt{;e$IMF(=?|llcROZZwJ5mll6Tdu;8tw*VZGWvE;V;EiVnEd z-?M4>?a^@0v*Ce9<2}#D2T|2G%-jBXH$U)hejZW#!oB6EU(0j<wg*L3M}s<^_;mcv zZ#wVa_dKEfk=ulS5xp-$Cp=E+eU#Y$+<V%;y#BjQ9cRL4{EVFOr)1*2oN3QeXMT>G z^QUv_^^_$)Q<wb9U;L?J{^zy@&)XKi$Y1@hZ1ua@3vYL>c+s%_bMNZc9qYa?UU7Hf zs=KRJovPjOchaU0)3?27-T$?J&)5FFAE)kqvvt$?t(&g(ANf7~z@OGL|K=b1uzSa? z`A5GmKlF9~-s>BWemr{k!I8sH7G3=@`_`Xxryia-_j%d9KkIM(yLj%|%6tEI-1u?s z!iS5O->!f5=l1nCcW%7g`R32gxBu?k`+nick9+sNKf3qv#M^)SKmB|B=*P1szi++% z^X%F0*Uvw_c=7w?%inKaen0X1-<#KePW}0J`tQGY@BUr={rCL8e;+^o{`B$Rr%(UB zeg5<C-@l*Vet-Y|@AtQVe}DY@^XK2czyJRI`}cpi1I3>#j9d)=8FZK!7#Rc@1Q-}N z-ZA{=l=0ZGz_H0@nv6-uQbAQI7Ece)q?G0ZW(z`koty(YR9srmSrn>dhc5S>R>TwH z^lGB4`O1vFMqfQIFVtu5?wDlUG0i_}V?yph#@5zOb_cJkJB8AHXBnlm9XTO%^i(IS zZGi2<PsjOXO_O%DC@xBNX=1iEy7?gF<rO81sG2P=9xyO8*4sY|$#m7|pQ&bG7n0DR z(9l@#xa`BsE$ltwD%wUa84Da78tXM@7#y17!9Uy3J#B@?!^EZo+%ahvXC2kLqUzDb u^7WvwlR~S5edf+jA}0kFSm!HnO!@H0jaO1Hpo8I{BQqN}GYcCFgEat8=c0!I diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/move.gif b/wp-content/plugins/comicpress-companion/edit_area/images/move.gif deleted file mode 100644 index d15f9f5420506a35f341d3ff418a2751ed988cad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 257 zcmZ?wbhEHb6lM@+I3mLE@83TrCMGsEHg<M)Mn*<%Zf;gqR!&Y%US3`<E-oG(9u5u; zetv#IK|x7LNnv4O5fKp<78V8uhW}u|KnN)QWMO1r5Mj^(DFoTcz*?uE+IPjoQ*Gs> zv;>uxr~LX=JYJ~utNVGdU-3&ZdYZIKDSx4|Qt#PG6FNL3mtT6ZL_ot$rB!JQ#|K|2 zp<{{-*^imJ8(j`MNERd=aIl#u&&n4Sp>ALmVAIUZ5GBlD!xhzSlq8VktjZz8X(q%L WI5}EqCcB5V8jJZ-=VT*A25SHag*y2F diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/newdocument.gif b/wp-content/plugins/comicpress-companion/edit_area/images/newdocument.gif deleted file mode 100644 index a9d293842354bade04fc9607e55763fd0ea9efec..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 170 zcmZ?wbhEHb6k!lyILyXi<drmO(WXn+9xd8>>C>lAhfZDk_wV1NRfiru|Fr4QqfPrR zefsh5(%nys)*d=^<{kqBgW^vXMg|6c1|0?l1_qEB3@qUvPI|81Yw>zcRrsj~Ih~2~ zcn#7{Rm!!V+Lgv|=cdE;vVHn3a?3U<E3}9&%5Jn^GHPEsv2hE_G+)Q9MW&2`JjbV9 dGWB77r2b4QWB2V>-EZC2=fC^0$Bv1?8USS^QLz93 diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/opacity.png b/wp-content/plugins/comicpress-companion/edit_area/images/opacity.png deleted file mode 100644 index b4217cb212926ce7abfde5e045380e3f6a5d54b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 147 zcmeAS@N?(olHy`uVBq!ia0y~yU=RUe4mJh`hTcwDUIqpRmUKs7M+S!VC(K#9UNSH+ zNS3%plmzFem6RtIr7}3C<R_&nc;+Uirv{}arc@T5OtoQPU{LjRaSW-rmGtMs!@Fs0 xT1;weTFrsX?z}Rl1y>FPGPid%GBC0+tde0~nYKZ?lYxPO!PC{xWt~$(6975HC}{uy diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/processing.gif b/wp-content/plugins/comicpress-companion/edit_area/images/processing.gif deleted file mode 100644 index cce32f20f4734a99416b62adc4d998048331d136..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 825 zcmZ?wbhEHb6krfwc+A1Tz`!6SC1q@E?BnB;mX_Ag&@gl6%uSm%{l@_m|8x7fh6Fo1 z2DlpO889<4Ffb_oWMSlD;9$@J83r<zfyG1MWGBOd8Bw#-Ij*+Juz#z4=rQe{=h~dv z6Q?MYOionT*86(by|v7Deim@ZrW%|O;gV3B{HaE7DF+i{U~AmwTWdwd?<uL@@?(J- z&W~dFhm${@K!z_DxcZHO0m<+y1|^pZZ4id@%eFe4kl=wD-tY8~IKx{&hCi3M`i+GV z$#4<J5@7}u!<Pn}kl}+G&fiR=;m1IRt1Djp#=(SSct~JLumFnTM-xskFhC9OKTM?I z91B5Vu6gwv4>OYCQxZ!iE1($uwBQ5_6Vz~ih6lt2ix<f7<%U<k39uj;ex<PFvH^<W ztPCeOSfGaYI}mAj56JN6mRG-tup${Q!cZdYh+?>^zzH5UsNwvLL>hh$WVkxR)o&7P aNQQ?9lmrK&81AZYLVyEmc>h6k!>s|8!cK7j diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/redo.gif b/wp-content/plugins/comicpress-companion/edit_area/images/redo.gif deleted file mode 100644 index 3af90697f0b74d0b6b07b585614a6dc67ff87f1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 169 zcmZ?wbhEHb6k!lyILytU>p!V@@dw+Y>(h6=k1Jad+VyeQkt>#|+xphL@U4H6IpzJH zQ!mY<7KGRCU%CGk0|SHNPZmZ727U$|1_lNOkQodtVINL<uHI|$`s~N3bC*2(n&))v zXgpbH;<bQlMzDeJ<6{pRc{$ry4kjF7+Q&V?z)*mxE85pel7)+@Vflm_ju@T>vBe$| ZZo<*bwwWR_Ii4X${~dW>QO3ex4FIA_L$?3` diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/reset_highlight.gif b/wp-content/plugins/comicpress-companion/edit_area/images/reset_highlight.gif deleted file mode 100644 index 0fa3cb79734b6ddadaded7a30dbbab4cdf7ee11a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 168 zcmZ?wbhEHb6k!lyILyt!#Kd&^^1Zl%t~FbB8hIss`tq%)b<wmnmmWR;RMfX=)1h1c z{{Fjl?@7z7txb~_F)%PF{$ycfVBlxaVPIfj0GYwS68hn!=jy!{ug{uWyI(T6yM2zM zP{r|`BHkA=o<%C0NJ{zIt<TH2to*d8ObhqNaupsuU1{N;Esqj5q<y^<puyD96eesS Z;n3W+*;rr);|Gg9&g*Z#pTWUk4FGG@NUHz< diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/save.gif b/wp-content/plugins/comicpress-companion/edit_area/images/save.gif deleted file mode 100644 index 2777bebfe7c66ae969f4580f0fd3ba37b9383a72..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 285 zcmZ?wbhEHb6k!lyxFX5G#Kg31-!Z?4W6z#_GqMWea$45c_sq>>*0F2vs*0{HoA)dz zD5$7v+P;1Nbgk?|LpOf=_D#vDC@J}DQeK;u(=sQoZGC;;oU9txE&KQP-@j?=o&`k} zX?bnC_Ta~{W49O>7!-f9FfuU6Gw3idFff4ZWMG~3K)o*|b6&=(MZUKaW+a_)OPalQ z>f1khHvBQp*Ka$rv?Op|HV`qMz^J}Z#ZdTYMtYR2rc}f{F~^A|u5E2DHZK$eSWh0D z62|>bhEG**#`ISbVq&IdLiTkkoCadjy}iQrqT*^@P0|c}va-UWqU@7Zr?N@&@h~&< ph_H(+=xmnZV`P+*;}+SzR#_^|fuDW9_(5?&?W4zzA5&zo1_1O4YOnwR diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/search.gif b/wp-content/plugins/comicpress-companion/edit_area/images/search.gif deleted file mode 100644 index cfe76b5d5b06afde765a8f9559c7b2c3fb0d2bf0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 191 zcmZ?wbhEHb6k!lyILyJI=ukO%>Dkcyh4-I)sO;Zl7Sy}@#KZW8tv`SLEooU*GwrBr z#tcQb<`r9yAG-F5fq_BsCkrD313!Zf0|NsC$P5OSoDU~GSMRlWeKud=^p%F_CWFbH zX^R6y&Objiqe+4*OZs4yX8X-Y4h288%vv5F&=3&tT6Xlq6HbZ6jmiZKCR&@snIFvQ w%@n@f@Z6f`8rPO3r*iifeqxW+Dm?tTy3D3V*p)j;*wL6lwzsceRFJ_M0NpK6g8%>k diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/smooth_selection.gif b/wp-content/plugins/comicpress-companion/edit_area/images/smooth_selection.gif deleted file mode 100644 index 8a532e5e62903230d7da3919a9300d99fad8bdde..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 174 zcmZ?wbhEHb6k!lyILyVMtSr28bzJAnz2^Rz=gyrwdwzOUnBA&<hbA>89lG@X%a<=n zMUy^$EGlbT_WR2=1_lPjpDc_F4Ezi_3=9kmATt<PqCcGUT)o%g_1WKP3LGsxZbr!( zoKC^43<3*2{@K!Q5b)6A5Kp6$VZ<A?4H8}<0X(Hsr}PUNSj=<x3KBCm5e_)rS*6gh ed1~;1K#3OfY<AHHjtV?%yVB3U|7|G9U=09JCPd%> diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/spacer.gif b/wp-content/plugins/comicpress-companion/edit_area/images/spacer.gif deleted file mode 100644 index 388486517fa8da13ebd150e8f65d5096c3e10c3a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 ocmZ?wbhEHbWMp7un7{x9ia%KxMHm<ubU=KN3<DFB3nPOy0Ck}RAOHXW diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/statusbar_resize.gif b/wp-content/plugins/comicpress-companion/edit_area/images/statusbar_resize.gif deleted file mode 100644 index af89d803f8f0eeb965d9443473d5be009641cacf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 79 zcmZ?wbhEHb<Yo|In8?J?(9rN73>X*~6o0ZXGB7YP=rAxaFo5J4m=vb;uRQ&he=(OX eL)v>5t5iqD`Km<=GJ9TB_P+6+m33W&!5RS4U>ZaK diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/undo.gif b/wp-content/plugins/comicpress-companion/edit_area/images/undo.gif deleted file mode 100644 index 520796d69defa118055d191eec33cc67f7551710..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 175 zcmZ?wbhEHb6k!lyILysp6+3UrnhW-&cXl4VzkK_(xVmHUbz4^-d|Nd4y?y$w!1}xA zuRl(j^kT~94?!KD7#J87f3h$#Fz_?zFfcGMfXrZEiTQBSbM;<}*Jr<4J-B4+o@|zI z%|lg5rE^kT#>oS%j27%|e>fr>m;%=5@vt)|O86wXcRM|BFmRa^@m{IoAj2frLl0$a fIhfiag9-%Ba5pX9AZH<x|5>pi_V@oZK?Z98lM6>~ diff --git a/wp-content/plugins/comicpress-companion/edit_area/images/word_wrap.gif b/wp-content/plugins/comicpress-companion/edit_area/images/word_wrap.gif deleted file mode 100644 index 8f256ccbff1be3648c46238864f06e29ec99f63e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 951 zcmZ?wbhEHb6k!ly_|5<VEKDpuZYkmZ`6+QVtl>*#vbLC%?J3FW@M$~JQa5Ev-;z1A z)~s2z{lkZ^zkdG#X&A+$AuwD*K=CIFBLl;K1|5)xKzV|JV+zB6P8p943l27O2y3}m zI5Zq?7m(-E(0I_u+%2Y`wMC=hQ8OEln1(|`gM)KBpOuivg9S@ZPuC0OTXQ3!@x&xG z`DIHuHm7^fWXfy{F_?7VD3iTyUdhh~j*NYB%q$sRR~s&OJNyrw()IBm<7$8Tl)F}2 rGn>}49_p(-F!fdVs-(r!)^e5W-q{_pd0x+n@<)gEH*mADFjxZsIJ8`? diff --git a/wp-content/plugins/comicpress-companion/edit_area/keyboard.js b/wp-content/plugins/comicpress-companion/edit_area/keyboard.js deleted file mode 100644 index 71b3a7c17..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/keyboard.js +++ /dev/null @@ -1,145 +0,0 @@ -var EA_keys = {8:"Retour arriere",9:"Tabulation",12:"Milieu (pave numerique)",13:"Entrer",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Verr Maj",27:"Esc",32:"Space",33:"Page up",34:"Page down",35:"End",36:"Begin",37:"Left",38:"Up",39:"Right",40:"Down",44:"Impr ecran",45:"Inser",46:"Suppr",91:"Menu Demarrer Windows / touche pomme Mac",92:"Menu Demarrer Windows",93:"Menu contextuel Windows",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Verr Num",145:"Arret defil"}; - - - -function keyDown(e){ - if(!e){ // if IE - e=event; - } - - // send the event to the plugins - for(var i in editArea.plugins){ - if(typeof(editArea.plugins[i].onkeydown)=="function"){ - if(editArea.plugins[i].onkeydown(e)===false){ // stop propaging - if(editArea.isIE) - e.keyCode=0; - return false; - } - } - } - - var target_id=(e.target || e.srcElement).id; - var use=false; - if (EA_keys[e.keyCode]) - letter=EA_keys[e.keyCode]; - else - letter=String.fromCharCode(e.keyCode); - - var low_letter= letter.toLowerCase(); - - if(letter=="Page up" && !editArea.isOpera){ - editArea.execCommand("scroll_page", {"dir": "up", "shift": ShiftPressed(e)}); - use=true; - }else if(letter=="Page down" && !editArea.isOpera){ - editArea.execCommand("scroll_page", {"dir": "down", "shift": ShiftPressed(e)}); - use=true; - }else if(editArea.is_editable==false){ - // do nothing but also do nothing else (allow to navigate with page up and page down) - return true; - }else if(letter=="Tabulation" && target_id=="textarea" && !CtrlPressed(e) && !AltPressed(e)){ - if(ShiftPressed(e)) - editArea.execCommand("invert_tab_selection"); - else - editArea.execCommand("tab_selection"); - - use=true; - if(editArea.isOpera || (editArea.isFirefox && editArea.isMac) ) // opera && firefox mac can't cancel tabulation events... - setTimeout("editArea.execCommand('focus');", 1); - }else if(letter=="Entrer" && target_id=="textarea"){ - if(editArea.press_enter()) - use=true; - }else if(letter=="Entrer" && target_id=="area_search"){ - editArea.execCommand("area_search"); - use=true; - }else if(letter=="Esc"){ - editArea.execCommand("close_all_inline_popup", e); - use=true; - }else if(CtrlPressed(e) && !AltPressed(e) && !ShiftPressed(e)){ - switch(low_letter){ - case "f": - editArea.execCommand("area_search"); - use=true; - break; - case "r": - editArea.execCommand("area_replace"); - use=true; - break; - case "q": - editArea.execCommand("close_all_inline_popup", e); - use=true; - break; - case "h": - editArea.execCommand("change_highlight"); - use=true; - break; - case "g": - setTimeout("editArea.execCommand('go_to_line');", 5); // the prompt stop the return false otherwise - use=true; - break; - case "e": - editArea.execCommand("show_help"); - use=true; - break; - case "z": - use=true; - editArea.execCommand("undo"); - break; - case "y": - use=true; - editArea.execCommand("redo"); - break; - default: - break; - } - } - - // check to disable the redo possibility if the textarea content change - if(editArea.next.length > 0){ - setTimeout("editArea.check_redo();", 10); - } - - setTimeout("editArea.check_file_changes();", 10); - - - if(use){ - // in case of a control that sould'nt be used by IE but that is used => THROW a javascript error that will stop key action - if(editArea.isIE) - e.keyCode=0; - return false; - } - //alert("Test: "+ letter + " ("+e.keyCode+") ALT: "+ AltPressed(e) + " CTRL "+ CtrlPressed(e) + " SHIFT "+ ShiftPressed(e)); - - return true; - -}; - - -// return true if Alt key is pressed -function AltPressed(e) { - if (window.event) { - return (window.event.altKey); - } else { - if(e.modifiers) - return (e.altKey || (e.modifiers % 2)); - else - return e.altKey; - } -}; - -// return true if Ctrl key is pressed -function CtrlPressed(e) { - if (window.event) { - return (window.event.ctrlKey); - } else { - return (e.ctrlKey || (e.modifiers==2) || (e.modifiers==3) || (e.modifiers>5)); - } -}; - -// return true if Shift key is pressed -function ShiftPressed(e) { - if (window.event) { - return (window.event.shiftKey); - } else { - return (e.shiftKey || (e.modifiers>3)); - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/bg.js b/wp-content/plugins/comicpress-companion/edit_area/langs/bg.js deleted file mode 100644 index d4cd77f05..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/bg.js +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Bulgarian translation - * Author: Valentin Hristov - * Company: SOFTKIT Bulgarian - * Site: http://www.softkit-bg.com - */ -editAreaLoader.lang["bg"]={ -new_document: "нов документ", -search_button: "търсене и замяна", -search_command: "търси следващия / отвори прозорец с търсачка", -search: "търсене", -replace: "замяна", -replace_command: "замяна / отвори прозорец с търсачка", -find_next: "намери следващия", -replace_all: "замени всички", -reg_exp: "реголярни изрази", -match_case: "чуствителен към регистъра", -not_found: "няма резултат.", -occurrence_replaced: "замяната е осъществена.", -search_field_empty: "Полето за търсене е празно", -restart_search_at_begin: "До края на документа. Почни с началото.", -move_popup: "премести прозореца с търсачката", -font_size: "--Размер на шрифта--", -go_to_line: "премени към реда", -go_to_line_prompt: "премени към номера на реда:", -undo: "отмени", -redo: "върни", -change_smooth_selection: "включи/изключи някой от функциите за преглед (по красиво, но повече натоварва)", -highlight: "превключване на оцветяване на синтаксиса включена/изключена", -reset_highlight: "въстанови оцветяване на синтаксиса (ако не е синхронизиран с текста)", -word_wrap: "режим на пренасяне на дълги редове", -help: "за програмата", -save: "съхрани", -load: "зареди", -line_abbr: "Стр", -char_abbr: "Стлб", -position: "Позиция", -total: "Всичко", -close_popup: "затвори прозореца", -shortcuts: "Бързи клавиши", -add_tab: "добави табулация в текста", -remove_tab: "премахни табулацията в текста", -about_notice: "Внимание: използвайте функцията оцветяване на синтаксиса само за малки текстове", -toggle: "Превключи редактор", -accesskey: "Бърз клавиш", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Зареждане...", -fullscreen: "на цял екран", -syntax_selection: "--Синтаксис--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "PHP", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "XML", -syntax_c: "C", -syntax_cpp: "C++", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Затвори файла" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/cs.js b/wp-content/plugins/comicpress-companion/edit_area/langs/cs.js deleted file mode 100644 index d0dd55cbb..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/cs.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["cs"]={ -new_document: "Nový dokument", -search_button: "Najdi a nahraď", -search_command: "Hledej další / otevři vyhledávací pole", -search: "Hledej", -replace: "Nahraď", -replace_command: "Nahraď / otevři vyhledávací pole", -find_next: "Najdi další", -replace_all: "Nahraď vše", -reg_exp: "platné výrazy", -match_case: "vyhodnocené výrazy", -not_found: "nenalezené.", -occurrence_replaced: "výskyty nahrazené.", -search_field_empty: "Pole vyhledávání je prázdné", -restart_search_at_begin: "Dosažen konec souboru, začínám od začátku.", -move_popup: "Přesuň vyhledávací okno", -font_size: "--Velikost textu--", -go_to_line: "Přejdi na řádek", -go_to_line_prompt: "Přejdi na řádek:", -undo: "krok zpět", -redo: "znovu", -change_smooth_selection: "Povolit nebo zakázat některé ze zobrazených funkcí (účelnější zobrazení požaduje větší zatížení procesoru)", -highlight: "Zvýrazňování syntaxe zap./vyp.", -reset_highlight: "Obnovit zvýraznění (v případě nesrovnalostí)", -word_wrap: "toggle word wrapping mode", -help: "O programu", -save: "Uložit", -load: "Otevřít", -line_abbr: "Ř.", -char_abbr: "S.", -position: "Pozice", -total: "Celkem", -close_popup: "Zavřít okno", -shortcuts: "Zkratky", -add_tab: "Přidat tabulování textu", -remove_tab: "Odtsranit tabulování textu", -about_notice: "Upozornění! Funkce zvýrazňování textu je k dispozici pouze pro malý text", -toggle: "Přepnout editor", -accesskey: "Přístupová klávesa", -tab: "Záložka", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Zpracovávám ...", -fullscreen: "Celá obrazovka", -syntax_selection: "--vyber zvýrazňovač--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/de.js b/wp-content/plugins/comicpress-companion/edit_area/langs/de.js deleted file mode 100644 index 251ac50bf..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/de.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["de"]={ -new_document: "Neues Dokument", -search_button: "Suchen und Ersetzen", -search_command: "Weitersuchen / öffne Suchfeld", -search: "Suchen", -replace: "Ersetzen", -replace_command: "Ersetzen / öffne Suchfeld", -find_next: "Weitersuchen", -replace_all: "Ersetze alle Treffer", -reg_exp: "reguläre Ausdrücke", -match_case: "passt auf den Begriff<br />", -not_found: "Nicht gefunden.", -occurrence_replaced: "Die Vorkommen wurden ersetzt.", -search_field_empty: "Leeres Suchfeld", -restart_search_at_begin: "Ende des zu durchsuchenden Bereiches erreicht. Es wird die Suche von Anfang an fortgesetzt.", //find a shorter translation -move_popup: "Suchfenster bewegen", -font_size: "--Schriftgröße--", -go_to_line: "Gehe zu Zeile", -go_to_line_prompt: "Gehe zu Zeilennummmer:", -undo: "Rückgängig", -redo: "Wiederherstellen", -change_smooth_selection: "Aktiviere/Deaktiviere einige Features (weniger Bildschirmnutzung aber mehr CPU-Belastung)", -highlight: "Syntax Highlighting an- und ausschalten", -reset_highlight: "Highlighting zurücksetzen (falls mit Text nicht konform)", -word_wrap: "Toggle word wrapping mode", -help: "Info", -save: "Speichern", -load: "Öffnen", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Position", -total: "Gesamt", -close_popup: "Popup schließen", -shortcuts: "Shortcuts", -add_tab: "Tab zum Text hinzufügen", -remove_tab: "Tab aus Text entfernen", -about_notice: "Bemerkung: Syntax Highlighting ist nur für kurze Texte", -toggle: "Editor an- und ausschalten", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "In Bearbeitung...", -fullscreen: "Full-Screen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/dk.js b/wp-content/plugins/comicpress-companion/edit_area/langs/dk.js deleted file mode 100644 index 8b3e7f65d..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/dk.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["dk"]={ -new_document: "nyt tomt dokument", -search_button: "søg og erstat", -search_command: "find næste / åben søgefelt", -search: "søg", -replace: "erstat", -replace_command: "erstat / åben søgefelt", -find_next: "find næste", -replace_all: "erstat alle", -reg_exp: "regular expressions", -match_case: "forskel på store/små bogstaver<br />", -not_found: "not found.", -occurrence_replaced: "occurences replaced.", -search_field_empty: "Search field empty", -restart_search_at_begin: "End of area reached. Restart at begin.", -move_popup: "flyt søgepopup", -font_size: "--Skriftstørrelse--", -go_to_line: "gå til linie", -go_to_line_prompt: "gå til linienummer:", -undo: "fortryd", -redo: "gentag", -change_smooth_selection: "slå display funktioner til/fra (smartere display men mere CPU krævende)", -highlight: "slå syntax highlight til/fra", -reset_highlight: "nulstil highlight (hvis den er desynkroniseret fra teksten)", -word_wrap: "toggle word wrapping mode", -help: "om", -save: "gem", -load: "hent", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Position", -total: "Total", -close_popup: "luk popup", -shortcuts: "Genveje", -add_tab: "tilføj tabulation til tekst", -remove_tab: "fjern tabulation fra tekst", -about_notice: "Husk: syntax highlight funktionen bør kun bruge til små tekster", -toggle: "Slå editor til / fra", -accesskey: "Accesskey", -tab: "Tab", -shift: "Skift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Processing...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/en.js b/wp-content/plugins/comicpress-companion/edit_area/langs/en.js deleted file mode 100644 index 1ec25617f..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/en.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["en"]={ -new_document: "new empty document", -search_button: "search and replace", -search_command: "search next / open search area", -search: "search", -replace: "replace", -replace_command: "replace / open search area", -find_next: "find next", -replace_all: "replace all", -reg_exp: "regular expressions", -match_case: "match case", -not_found: "not found.", -occurrence_replaced: "occurences replaced.", -search_field_empty: "Search field empty", -restart_search_at_begin: "End of area reached. Restart at begin.", -move_popup: "move search popup", -font_size: "--Font size--", -go_to_line: "go to line", -go_to_line_prompt: "go to line number:", -undo: "undo", -redo: "redo", -change_smooth_selection: "enable/disable some display features (smarter display but more CPU charge)", -highlight: "toggle syntax highlight on/off", -reset_highlight: "reset highlight (if desyncronized from text)", -word_wrap: "toggle word wrapping mode", -help: "about", -save: "save", -load: "load", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Position", -total: "Total", -close_popup: "close popup", -shortcuts: "Shortcuts", -add_tab: "add tabulation to text", -remove_tab: "remove tabulation to text", -about_notice: "Notice: syntax highlight function is only for small text", -toggle: "Toggle editor", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Processing...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/eo.js b/wp-content/plugins/comicpress-companion/edit_area/langs/eo.js deleted file mode 100644 index 317ec07f3..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/eo.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["eo"]={ -new_document: "nova dokumento (vakigas la enhavon)", -search_button: "serĉi / anstataŭigi", -search_command: "pluserĉi / malfermi la serĉo-fenestron", -search: "serĉi", -replace: "anstataŭigi", -replace_command: "anstataŭigi / malfermi la serĉo-fenestron", -find_next: "serĉi", -replace_all: "anstataŭigi ĉion", -reg_exp: "regula esprimo", -match_case: "respekti la usklecon", -not_found: "ne trovita.", -occurrence_replaced: "anstataŭigoj plenumitaj.", -search_field_empty: "La kampo estas malplena.", -restart_search_at_begin: "Fino de teksto ĝisrirata, ĉu daŭrigi el la komenco?", -move_popup: "movi la serĉo-fenestron", -font_size: "--Tipara grando--", -go_to_line: "iri al la linio", -go_to_line_prompt: "iri al la linio numero:", -undo: "rezigni", -redo: "refari", -change_smooth_selection: "ebligi/malebligi la funkcioj de vidigo (pli bona vidigo, sed pli da ŝarĝo de la ĉeforgano)", -highlight: "ebligi/malebligi la sintaksan kolorigon", -reset_highlight: "repravalorizi la sintaksan kolorigon (se malsinkronigon de la teksto)", -word_wrap: "toggle word wrapping mode", -help: "pri", -save: "registri", -load: "ŝarĝi", -line_abbr: "Ln", -char_abbr: "Sg", -position: "Pozicio", -total: "Sumo", -close_popup: "fermi la ŝprucfenestron", -shortcuts: "Fulmoklavo", -add_tab: "aldoni tabon en la tekston", -remove_tab: "forigi tablon el la teksto", -about_notice: "Noto: la sintaksa kolorigo estas nur prikalkulita por mallongaj tekstoj.", -toggle: "baskuligi la redaktilon", -accesskey: "Fulmoklavo", -tab: "Tab", -shift: "Maj", -ctrl: "Ktrl", -esc: "Esk", -processing: "ŝargante...", -fullscreen: "plenekrane", -syntax_selection: "--Sintakso--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Pitono", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Fermi la dosieron" -}; \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/es.js b/wp-content/plugins/comicpress-companion/edit_area/langs/es.js deleted file mode 100644 index 736afdeab..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/es.js +++ /dev/null @@ -1,64 +0,0 @@ -editAreaLoader.lang["es"]={ -new_document: "nuevo documento vacío", -search_button: "buscar y reemplazar", -search_command: "buscar siguiente / abrir área de búsqueda", -search: "buscar", -replace: "reemplazar", -replace_command: "reemplazar / abrir área de búsqueda", -find_next: "encontrar siguiente", -replace_all: "reemplazar todos", -reg_exp: "expresiones regulares", -match_case: "coincidir capitalización", -not_found: "no encontrado.", -occurrence_replaced: "ocurrencias reemplazadas.", -search_field_empty: "Campo de búsqueda vacío", -restart_search_at_begin: "Se ha llegado al final del área. Se va a seguir desde el principio.", -move_popup: "mover la ventana de búsqueda", -font_size: "--Tamaño de la fuente--", -go_to_line: "ir a la línea", -go_to_line_prompt: "ir a la línea número:", -undo: "deshacer", -redo: "rehacer", -change_smooth_selection: "activar/desactivar algunas características de visualización (visualización más inteligente pero más carga de CPU)", -highlight: "intercambiar resaltado de sintaxis", -reset_highlight: "reinicializar resaltado (si no esta sincronizado con el texto)", -word_wrap: "toggle word wrapping mode", -help: "acerca", -save: "guardar", -load: "cargar", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Posición", -total: "Total", -close_popup: "recuadro de cierre", -shortcuts: "Atajos", -add_tab: "añadir tabulado al texto", -remove_tab: "borrar tabulado del texto", -about_notice: "Aviso: el resaltado de sintaxis sólo funciona para texto pequeño", -toggle: "Cambiar editor", -accesskey: "Tecla de acceso", -tab: "Tab", -shift: "Mayúsc", -ctrl: "Ctrl", -esc: "Esc", -processing: "Procesando...", -fullscreen: "pantalla completa", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/fi.js b/wp-content/plugins/comicpress-companion/edit_area/langs/fi.js deleted file mode 100644 index 1ec47303e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/fi.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["fi"]={ -new_document: "uusi tyhjä dokumentti", -search_button: "etsi ja korvaa", -search_command: "etsi seuraava / avaa etsintävalikko", -search: "etsi", -replace: "korvaa", -replace_command: "korvaa / avaa etsintävalikko", -find_next: "etsi seuraava", -replace_all: "korvaa kaikki", -reg_exp: "säännölliset lausekkeet", -match_case: "täsmää kirjainkokoon", -not_found: "ei löytynyt.", -occurrence_replaced: "esiintymää korvattu.", -search_field_empty: "Haettava merkkijono on tyhjä", -restart_search_at_begin: "Alueen loppu saavutettiin. Aloitetaan alusta.", -move_popup: "siirrä etsintävalikkoa", -font_size: "--Fontin koko--", -go_to_line: "siirry riville", -go_to_line_prompt: "mene riville:", -undo: "peruuta", -redo: "tee uudelleen", -change_smooth_selection: "kytke/sammuta joitakin näyttötoimintoja (Älykkäämpi toiminta, mutta suurempi CPU kuormitus)", -highlight: "kytke syntaksikorostus päälle/pois", -reset_highlight: "resetoi syntaksikorostus (jos teksti ei ole synkassa korostuksen kanssa)", -word_wrap: "toggle word wrapping mode", -help: "tietoja", -save: "tallenna", -load: "lataa", -line_abbr: "Rv", -char_abbr: "Pos", -position: "Paikka", -total: "Yhteensä", -close_popup: "sulje valikko", -shortcuts: "Pikatoiminnot", -add_tab: "lisää sisennys tekstiin", -remove_tab: "poista sisennys tekstistä", -about_notice: "Huomautus: syntaksinkorostus toimii vain pienelle tekstille", -toggle: "Kytke editori", -accesskey: "Pikanäppäin", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Odota...", -fullscreen: "koko ruutu", -syntax_selection: "--Syntaksi--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Sulje tiedosto" -}; \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/fr.js b/wp-content/plugins/comicpress-companion/edit_area/langs/fr.js deleted file mode 100644 index dcd68149c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/fr.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["fr"]={ -new_document: "nouveau document (efface le contenu)", -search_button: "rechercher / remplacer", -search_command: "rechercher suivant / ouvrir la fenêtre de recherche", -search: "rechercher", -replace: "remplacer", -replace_command: "remplacer / ouvrir la fenêtre de recherche", -find_next: "rechercher", -replace_all: "tout remplacer", -reg_exp: "expr. régulière", -match_case: "respecter la casse", -not_found: "pas trouvé.", -occurrence_replaced: "remplacements éffectués.", -search_field_empty: "Le champ de recherche est vide.", -restart_search_at_begin: "Fin du texte atteint, poursuite au début.", -move_popup: "déplacer la fenêtre de recherche", -font_size: "--Taille police--", -go_to_line: "aller à la ligne", -go_to_line_prompt: "aller a la ligne numero:", -undo: "annuler", -redo: "refaire", -change_smooth_selection: "activer/désactiver des fonctions d'affichage (meilleur affichage mais plus de charge processeur)", -highlight: "activer/désactiver la coloration syntaxique", -reset_highlight: "réinitialiser la coloration syntaxique (si désyncronisée du texte)", -word_wrap: "activer/désactiver les retours à la ligne automatiques", -help: "à propos", -save: "sauvegarder", -load: "charger", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Position", -total: "Total", -close_popup: "fermer le popup", -shortcuts: "Racourcis clavier", -add_tab: "ajouter une tabulation dans le texte", -remove_tab: "retirer une tabulation dans le texte", -about_notice: "Note: la coloration syntaxique n'est prévue que pour de courts textes.", -toggle: "basculer l'éditeur", -accesskey: "Accesskey", -tab: "Tab", -shift: "Maj", -ctrl: "Ctrl", -esc: "Esc", -processing: "chargement...", -fullscreen: "plein écran", -syntax_selection: "--Syntaxe--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Fermer le fichier" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/hr.js b/wp-content/plugins/comicpress-companion/edit_area/langs/hr.js deleted file mode 100644 index 7ee249fde..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/hr.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["hr"]={ -new_document: "Novi dokument", -search_button: "Traži i izmijeni", -search_command: "Traži dalje / Otvori prozor za traženje", -search: "Traži", -replace: "Izmijeni", -replace_command: "Izmijeni / Otvori prozor za traženje", -find_next: "Traži dalje", -replace_all: "Izmjeni sve", -reg_exp: "Regularni izrazi", -match_case: "Bitna vel. slova", -not_found: "nije naðeno.", -occurrence_replaced: "izmjenjenih.", -search_field_empty: "Prazno polje za traženje!", -restart_search_at_begin: "Došao do kraja. Poèeo od poèetka.", -move_popup: "Pomakni prozor", -font_size: "--Velièina teksta--", -go_to_line: "Odi na redak", -go_to_line_prompt: "Odi na redak:", -undo: "Vrati natrag", -redo: "Napravi ponovo", -change_smooth_selection: "Ukljuèi/iskljuèi neke moguænosti prikaza (pametniji prikaz, ali zagušeniji CPU)", -highlight: "Ukljuèi/iskljuèi bojanje sintakse", -reset_highlight: "Ponovi kolorizaciju (ako je nesinkronizirana s tekstom)", -word_wrap: "toggle word wrapping mode", -help: "O edit_area", -save: "Spremi", -load: "Uèitaj", -line_abbr: "Ln", -char_abbr: "Zn", -position: "Pozicija", -total: "Ukupno", -close_popup: "Zatvori prozor", -shortcuts: "Kratice", -add_tab: "Dodaj tabulaciju", -remove_tab: "Makni tabulaciju", -about_notice: "Napomena: koloriziranje sintakse je samo za kratke kodove", -toggle: "Prebaci naèin ureðivanja", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Procesiram...", -fullscreen: "Cijeli prozor", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/it.js b/wp-content/plugins/comicpress-companion/edit_area/langs/it.js deleted file mode 100644 index 1fad6ae64..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/it.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["it"]={ -new_document: "nuovo documento vuoto", -search_button: "cerca e sostituisci", -search_command: "trova successivo / apri finestra di ricerca", -search: "cerca", -replace: "sostituisci", -replace_command: "sostituisci / apri finestra di ricerca", -find_next: "trova successivo", -replace_all: "sostituisci tutti", -reg_exp: "espressioni regolari", -match_case: "confronta maiuscole/minuscole<br />", -not_found: "non trovato.", -occurrence_replaced: "occorrenze sostituite.", -search_field_empty: "Campo ricerca vuoto", -restart_search_at_begin: "Fine del testo raggiunta. Ricomincio dall'inizio.", -move_popup: "sposta popup di ricerca", -font_size: "-- Dimensione --", -go_to_line: "vai alla linea", -go_to_line_prompt: "vai alla linea numero:", -undo: "annulla", -redo: "ripeti", -change_smooth_selection: "abilita/disabilita alcune caratteristiche della visualizzazione", -highlight: "abilita/disabilita colorazione della sintassi", -reset_highlight: "aggiorna colorazione (se non sincronizzata)", -word_wrap: "toggle word wrapping mode", -help: "informazioni su...", -save: "salva", -load: "carica", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Posizione", -total: "Totale", -close_popup: "chiudi popup", -shortcuts: "Scorciatoie", -add_tab: "aggiungi tabulazione", -remove_tab: "rimuovi tabulazione", -about_notice: "Avviso: la colorazione della sintassi vale solo con testo piccolo", -toggle: "Abilita/disabilita editor", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "In corso...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/ja.js b/wp-content/plugins/comicpress-companion/edit_area/langs/ja.js deleted file mode 100644 index e47521b53..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/ja.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["ja"]={ -new_document: "新規作成", -search_button: "検索・置換", -search_command: "次を検索 / 検索窓を表示", -search: "検索", -replace: "置換", -replace_command: "置換 / 置換窓を表示", -find_next: "次を検索", -replace_all: "全置換", -reg_exp: "正規表現", -match_case: "大文字小文字の区別", -not_found: "見つかりません。", -occurrence_replaced: "置換しました。", -search_field_empty: "検索対象文字列が空です。", -restart_search_at_begin: "終端に達しました、始めに戻ります", -move_popup: "検索窓を移動", -font_size: "--フォントサイズ--", -go_to_line: "指定行へ移動", -go_to_line_prompt: "指定行へ移動します:", -undo: "元に戻す", -redo: "やり直し", -change_smooth_selection: "スムース表示の切り替え(CPUを使います)", -highlight: "構文強調表示の切り替え", -reset_highlight: "構文強調表示のリセット", -word_wrap: "toggle word wrapping mode", -help: "ヘルプを表示", -save: "保存", -load: "読み込み", -line_abbr: "行", -char_abbr: "文字", -position: "位置", -total: "合計", -close_popup: "ポップアップを閉じる", -shortcuts: "ショートカット", -add_tab: "タブを挿入する", -remove_tab: "タブを削除する", -about_notice: "注意:構文強調表示は短いテキストでしか有効に機能しません。", -toggle: "テキストエリアとeditAreaの切り替え", -accesskey: "アクセスキー", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "処理中です...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/mk.js b/wp-content/plugins/comicpress-companion/edit_area/langs/mk.js deleted file mode 100644 index a2d9d215c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/mk.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["mk"]={ -new_document: "Нов документ", -search_button: "Најди и замени", -search_command: "Барај следно / Отвори нов прозорец за пребарување", -search: "Барај", -replace: "Замени", -replace_command: "Замени / Отвори прозорец за пребарување", -find_next: "најди следно", -replace_all: "Замени ги сите", -reg_exp: "Регуларни изрази", -match_case: "Битна е големината на буквите", -not_found: "не е пронајдено.", -occurrence_replaced: "замени.", -search_field_empty: "Полето за пребарување е празно", -restart_search_at_begin: "Крај на областа. Стартувај од почеток.", -move_popup: "Помести го прозорецот", -font_size: "--Големина на текстот--", -go_to_line: "Оди на линија", -go_to_line_prompt: "Оди на линија со број:", -undo: "Врати", -redo: "Повтори", -change_smooth_selection: "Вклучи/исклучи некои карактеристики за приказ (попаметен приказ, но поголемо оптеретување за процесорот)", -highlight: "Вклучи/исклучи осветлување на синтакса", -reset_highlight: "Ресетирај го осветлувањето на синтакса (доколку е десинхронизиранo со текстот)", -word_wrap: "toggle word wrapping mode", -help: "За", -save: "Зачувај", -load: "Вчитај", -line_abbr: "Лн", -char_abbr: "Зн", -position: "Позиција", -total: "Вкупно", -close_popup: "Затвори го прозорецот", -shortcuts: "Кратенки", -add_tab: "Додај табулација на текстот", -remove_tab: "Отстрани ја табулацијата", -about_notice: "Напомена: Осветлувањето на синтанса е само за краток текст", -toggle: "Смени начин на уредување", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Обработувам...", -fullscreen: "Цел прозорец", -syntax_selection: "--Синтакса--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Избери датотека" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/nl.js b/wp-content/plugins/comicpress-companion/edit_area/langs/nl.js deleted file mode 100644 index 59baed1bd..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/nl.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["nl"]={ -new_document: "nieuw leeg document", -search_button: "zoek en vervang", -search_command: "zoek volgende / zoekscherm openen", -search: "zoek", -replace: "vervang", -replace_command: "vervang / zoekscherm openen", -find_next: "volgende vinden", -replace_all: "alles vervangen", -reg_exp: "reguliere expressies", -match_case: "hoofdletter gevoelig", -not_found: "niet gevonden.", -occurrence_replaced: "object vervangen.", -search_field_empty: "Zoek veld leeg", -restart_search_at_begin: "Niet meer instanties gevonden, begin opnieuw", -move_popup: "versleep zoek scherm", -font_size: "--Letter grootte--", -go_to_line: "Ga naar regel", -go_to_line_prompt: "Ga naar regel nummer:", -undo: "Ongedaan maken", -redo: "Opnieuw doen", -change_smooth_selection: "zet wat schermopties aan/uit (kan langzamer zijn)", -highlight: "zet syntax highlight aan/uit", -reset_highlight: "reset highlight (indien gedesynchronizeerd)", -word_wrap: "toggle word wrapping mode", -help: "informatie", -save: "opslaan", -load: "laden", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Positie", -total: "Totaal", -close_popup: "Popup sluiten", -shortcuts: "Snelkoppelingen", -add_tab: "voeg tabs toe in tekst", -remove_tab: "verwijder tabs uit tekst", -about_notice: "Notitie: syntax highlight functie is alleen voor kleine tekst", -toggle: "geavanceerde bewerkingsopties", -accesskey: "Accessknop", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Verwerken...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/pl.js b/wp-content/plugins/comicpress-companion/edit_area/langs/pl.js deleted file mode 100644 index d9c2fbf0e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/pl.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["pl"]={ -new_document: "nowy dokument", -search_button: "znajdź i zamień", -search_command: "znajdź następny", -search: "znajdź", -replace: "zamień", -replace_command: "zamień", -find_next: "następny", -replace_all: "zamień wszystko", -reg_exp: "wyrażenie regularne", -match_case: "uwzględnij wielkość liter<br />", -not_found: "nie znaleziono.", -occurrence_replaced: "wystąpień zamieniono.", -search_field_empty: "Nie wprowadzono tekstu", -restart_search_at_begin: "Koniec dokumentu. Wyszukiwanie od początku.", -move_popup: "przesuń okienko wyszukiwania", -font_size: "Rozmiar", -go_to_line: "idź do linii", -go_to_line_prompt: "numer linii:", -undo: "cofnij", -redo: "przywróć", -change_smooth_selection: "włącz/wyłącz niektóre opcje wyglądu (zaawansowane opcje wyglądu obciążają procesor)", -highlight: "włącz/wyłącz podświetlanie składni", -reset_highlight: "odśwież podświetlanie składni (jeśli rozsynchronizowało się z tekstem)", -word_wrap: "toggle word wrapping mode", -help: "o programie", -save: "zapisz", -load: "otwórz", -line_abbr: "Ln", -char_abbr: "Zn", -position: "Pozycja", -total: "W sumie", -close_popup: "zamknij okienko", -shortcuts: "Skróty klawiaturowe", -add_tab: "dodaj wcięcie do zaznaczonego tekstu", -remove_tab: "usuń wcięcie", -about_notice: "Uwaga: podświetlanie składni nie jest zalecane dla długich tekstów", -toggle: "Włącz/wyłącz edytor", -accesskey: "Alt+", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Przetwarzanie...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/pt.js b/wp-content/plugins/comicpress-companion/edit_area/langs/pt.js deleted file mode 100644 index ba762a18f..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/pt.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["pt"]={ -new_document: "Novo documento", -search_button: "Localizar e substituir", -search_command: "Localizar próximo", -search: "Localizar", -replace: "Substituir", -replace_command: "Substituir", -find_next: "Localizar", -replace_all: "Subst. tudo", -reg_exp: "Expressões regulares", -match_case: "Diferenciar maiúsculas e minúsculas", -not_found: "Não encontrado.", -occurrence_replaced: "Ocorrências substituidas", -search_field_empty: "Campo localizar vazio.", -restart_search_at_begin: "Fim das ocorrências. Recomeçar do inicio.", -move_popup: "Mover janela", -font_size: "--Tamanho da fonte--", -go_to_line: "Ir para linha", -go_to_line_prompt: "Ir para a linha:", -undo: "Desfazer", -redo: "Refazer", -change_smooth_selection: "Opções visuais", -highlight: "Cores de sintaxe", -reset_highlight: "Resetar cores (se não sincronizado)", -word_wrap: "toggle word wrapping mode", -help: "Sobre", -save: "Salvar", -load: "Carregar", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Posição", -total: "Total", -close_popup: "Fechar", -shortcuts: "Shortcuts", -add_tab: "Adicionar tabulação", -remove_tab: "Remover tabulação", -about_notice: "Atenção: Cores de sintaxe são indicados somente para textos pequenos", -toggle: "Exibir editor", -accesskey: "Accesskey", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Processando...", -fullscreen: "fullscreen", -syntax_selection: "--Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/ru.js b/wp-content/plugins/comicpress-companion/edit_area/langs/ru.js deleted file mode 100644 index bcb33e499..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/ru.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["ru"]={ -new_document: "новый пустой документ", -search_button: "поиск и замена", -search_command: "искать следующий / открыть панель поиска", -search: "поиск", -replace: "замена", -replace_command: "заменить / открыть панель поиска", -find_next: "найти следующее", -replace_all: "заменить все", -reg_exp: "регулярное выражение", -match_case: "учитывать регистр", -not_found: "не найдено.", -occurrence_replaced: "вхождение заменено.", -search_field_empty: "Поле поиска пустое", -restart_search_at_begin: "Достигнут конец документа. Начинаю с начала.", -move_popup: "переместить окно поиска", -font_size: "--Размер шрифта--", -go_to_line: "перейти к строке", -go_to_line_prompt: "перейти к строке номер:", -undo: "отменить", -redo: "вернуть", -change_smooth_selection: "включить/отключить некоторые функции просмотра (более красиво, но больше использует процессор)", -highlight: "переключить подсветку синтаксиса включена/выключена", -reset_highlight: "восстановить подсветку (если разсинхронизирована от текста)", -word_wrap: "toggle word wrapping mode", -help: "о программе", -save: "сохранить", -load: "загрузить", -line_abbr: "Стр", -char_abbr: "Стлб", -position: "Позиция", -total: "Всего", -close_popup: "закрыть всплывающее окно", -shortcuts: "Горячие клавиши", -add_tab: "добавить табуляцию в текст", -remove_tab: "убрать табуляцию из текста", -about_notice: "Внимание: функция подсветки синтаксиса только для небольших текстов", -toggle: "Переключить редактор", -accesskey: "Горячая клавиша", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Обработка...", -fullscreen: "полный экран", -syntax_selection: "--Синтакс--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Закрыть файл" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/sk.js b/wp-content/plugins/comicpress-companion/edit_area/langs/sk.js deleted file mode 100644 index 93a3c16d8..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/sk.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["sk"]={ -new_document: "nový prázdy dokument", -search_button: "vyhľadaj a nahraď", -search_command: "hľadaj ďalsšie / otvor vyhľadávacie pole", -search: "hľadaj", -replace: "nahraď", -replace_command: "nahraď / otvor vyhľadávacie pole", -find_next: "nájdi ďalšie", -replace_all: "nahraď všetko", -reg_exp: "platné výrazy", -match_case: "zhodujúce sa výrazy", -not_found: "nenájdené.", -occurrence_replaced: "výskyty nahradené.", -search_field_empty: "Pole vyhľadávanie je prádzne", -restart_search_at_begin: "End of area reached. Restart at begin.", -move_popup: "presuň vyhľadávacie okno", -font_size: "--Veľkosť textu--", -go_to_line: "prejdi na riadok", -go_to_line_prompt: "prejdi na riadok:", -undo: "krok späť", -redo: "prepracovať", -change_smooth_selection: "povoliť/zamietnúť niektoré zo zobrazených funkcií (účelnejšie zobrazenie vyžaduje väčšie zaťaženie procesora CPU)", -highlight: "prepnúť zvýrazňovanie syntaxe zap/vyp", -reset_highlight: "zrušiť zvýrazňovanie (ak je nesynchronizované s textom)", -word_wrap: "toggle word wrapping mode", -help: "o programe", -save: "uložiť", -load: "načítať", -line_abbr: "Ln", -char_abbr: "Ch", -position: "Pozícia", -total: "Spolu", -close_popup: "zavrieť okno", -shortcuts: "Skratky", -add_tab: "pridať tabulovanie textu", -remove_tab: "odstrániť tabulovanie textu", -about_notice: "Upozornenie: funkcia zvýrazňovania syntaxe je dostupná iba pre malý text", -toggle: "Prepnúť editor", -accesskey: "Accesskey", -tab: "Záložka", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "Spracúvam...", -fullscreen: "cel=a obrazovka", -syntax_selection: "--Vyber Syntax--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "Close file" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/langs/zh.js b/wp-content/plugins/comicpress-companion/edit_area/langs/zh.js deleted file mode 100644 index 48a6f9a61..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/langs/zh.js +++ /dev/null @@ -1,67 +0,0 @@ -editAreaLoader.lang["zh"]={ -new_document: "新建空白文档", -search_button: "查找与替换", -search_command: "查找下一个 / 打开查找框", -search: "查找", -replace: "替换", -replace_command: "替换 / 打开查找框", -find_next: "查找下一个", -replace_all: "全部替换", -reg_exp: "正则表达式", -match_case: "匹配大小写", -not_found: "未找到.", -occurrence_replaced: "处被替换.", -search_field_empty: "查找框没有内容", -restart_search_at_begin: "已到到文档末尾. 从头重新查找.", -move_popup: "移动查找对话框", -font_size: "--字体大小--", -go_to_line: "转到行", -go_to_line_prompt: "转到行:", -undo: "恢复", -redo: "重做", -change_smooth_selection: "启用/禁止一些显示特性(更好看但更耗费资源)", -highlight: "启用/禁止语法高亮", -reset_highlight: "重置语法高亮(当文本显示不同步时)", -word_wrap: "toggle word wrapping mode", -help: "关于", -save: "保存", -load: "加载", -line_abbr: "行", -char_abbr: "字符", -position: "位置", -total: "总计", -close_popup: "关闭对话框", -shortcuts: "快捷键", -add_tab: "添加制表符(Tab)", -remove_tab: "移除制表符(Tab)", -about_notice: "注意:语法高亮功能仅用于较少内容的文本(文件内容太大会导致浏览器反应慢)", -toggle: "切换编辑器", -accesskey: "快捷键", -tab: "Tab", -shift: "Shift", -ctrl: "Ctrl", -esc: "Esc", -processing: "正在处理中...", -fullscreen: "全屏编辑", -syntax_selection: "--语法--", -syntax_css: "CSS", -syntax_html: "HTML", -syntax_js: "Javascript", -syntax_php: "Php", -syntax_python: "Python", -syntax_vb: "Visual Basic", -syntax_xml: "Xml", -syntax_c: "C", -syntax_cpp: "CPP", -syntax_basic: "Basic", -syntax_pas: "Pascal", -syntax_brainfuck: "Brainfuck", -syntax_sql: "SQL", -syntax_ruby: "Ruby", -syntax_robotstxt: "Robots txt", -syntax_tsql: "T-SQL", -syntax_perl: "Perl", -syntax_coldfusion: "Coldfusion", -syntax_java: "Java", -close_tab: "关闭文件" -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/license_apache.txt b/wp-content/plugins/comicpress-companion/edit_area/license_apache.txt deleted file mode 100644 index c7ef5e6c6..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/license_apache.txt +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2008 Christophe Dolivet - -Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/license_bsd.txt b/wp-content/plugins/comicpress-companion/edit_area/license_bsd.txt deleted file mode 100644 index f36bbe4d0..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/license_bsd.txt +++ /dev/null @@ -1,10 +0,0 @@ -Copyright (c) 2008, Christophe Dolivet -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of EditArea nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/license_lgpl.txt b/wp-content/plugins/comicpress-companion/edit_area/license_lgpl.txt deleted file mode 100644 index 8c177f8be..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/license_lgpl.txt +++ /dev/null @@ -1,458 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS diff --git a/wp-content/plugins/comicpress-companion/edit_area/manage_area.js b/wp-content/plugins/comicpress-companion/edit_area/manage_area.js deleted file mode 100644 index e10c5e941..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/manage_area.js +++ /dev/null @@ -1,623 +0,0 @@ - EditArea.prototype.focus = function() { - this.textarea.focus(); - this.textareaFocused=true; - }; - - - EditArea.prototype.check_line_selection= function(timer_checkup){ - var changes, infos, new_top, new_width,i; - - var t1=t2=t2_1=t3=tLines=tend= new Date().getTime(); - // l'editeur n'existe plus => on quitte - if(!editAreas[this.id]) - return false; - - if(!this.smooth_selection && !this.do_highlight) - { - //do nothing - } - else if(this.textareaFocused && editAreas[this.id]["displayed"]==true && this.isResizing==false) - { - infos = this.get_selection_infos(); - changes = this.checkTextEvolution( typeof( this.last_selection['full_text'] ) == 'undefined' ? '' : this.last_selection['full_text'], infos['full_text'] ); - - t2= new Date().getTime(); - - // if selection change - if(this.last_selection["line_start"] != infos["line_start"] || this.last_selection["line_nb"] != infos["line_nb"] || infos["full_text"] != this.last_selection["full_text"] || this.reload_highlight || this.last_selection["selectionStart"] != infos["selectionStart"] || this.last_selection["selectionEnd"] != infos["selectionEnd"] || !timer_checkup ) - { - // move and adjust text selection elements - new_top = this.getLinePosTop( infos["line_start"] ); - new_width = Math.max(this.textarea.scrollWidth, this.container.clientWidth -50); - this.selection_field.style.top=this.selection_field_text.style.top=new_top+"px"; - if(!this.settings['word_wrap']){ - this.selection_field.style.width=this.selection_field_text.style.width=this.test_font_size.style.width=new_width+"px"; - } - - // usefull? => _$("cursor_pos").style.top=new_top+"px"; - - if(this.do_highlight==true) - { - // fill selection elements - var curr_text = infos["full_text"].split("\n"); - var content = ""; - //alert("length: "+curr_text.length+ " i: "+ Math.max(0,infos["line_start"]-1)+ " end: "+Math.min(curr_text.length, infos["line_start"]+infos["line_nb"]-1)+ " line: "+infos["line_start"]+" [0]: "+curr_text[0]+" [1]: "+curr_text[1]); - var start = Math.max(0,infos["line_start"]-1); - var end = Math.min(curr_text.length, infos["line_start"]+infos["line_nb"]-1); - - //curr_text[start]= curr_text[start].substr(0,infos["curr_pos"]-1) +"¤_overline_¤"+ curr_text[start].substr(infos["curr_pos"]-1); - for(i=start; i< end; i++){ - content+= curr_text[i]+"\n"; - } - - // add special chars arround selected characters - selLength = infos['selectionEnd'] - infos['selectionStart']; - content = content.substr( 0, infos["curr_pos"] - 1 ) + "\r\r" + content.substr( infos["curr_pos"] - 1, selLength ) + "\r\r" + content.substr( infos["curr_pos"] - 1 + selLength ); - content = '<span>'+ content.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace("\r\r", '</span><strong>').replace("\r\r", '</strong><span>') +'</span>'; - - if( this.isIE || ( this.isOpera && this.isOpera < 9.6 ) ) { - this.selection_field.innerHTML= "<pre>" + content.replace(/^\r?\n/, "<br>") + "</pre>"; - } else { - this.selection_field.innerHTML= content; - } - this.selection_field_text.innerHTML = this.selection_field.innerHTML; - t2_1 = new Date().getTime(); - // check if we need to update the highlighted background - if(this.reload_highlight || (infos["full_text"] != this.last_text_to_highlight && (this.last_selection["line_start"]!=infos["line_start"] || this.show_line_colors || this.settings['word_wrap'] || this.last_selection["line_nb"]!=infos["line_nb"] || this.last_selection["nb_line"]!=infos["nb_line"]) ) ) - { - this.maj_highlight(infos); - } - } - } - t3= new Date().getTime(); - - // manage line heights - if( this.settings['word_wrap'] && infos["full_text"] != this.last_selection["full_text"]) - { - // refresh only 1 line if text change concern only one line and that the total line number has not changed - if( changes.newText.split("\n").length == 1 && this.last_selection['nb_line'] && infos['nb_line'] == this.last_selection['nb_line'] ) - { - this.fixLinesHeight( infos['full_text'], changes.lineStart, changes.lineStart ); - } - else - { - this.fixLinesHeight( infos['full_text'], changes.lineStart, -1 ); - } - } - - tLines= new Date().getTime(); - // manage bracket finding - if( infos["line_start"] != this.last_selection["line_start"] || infos["curr_pos"] != this.last_selection["curr_pos"] || infos["full_text"].length!=this.last_selection["full_text"].length || this.reload_highlight || !timer_checkup ) - { - // move _cursor_pos - var selec_char= infos["curr_line"].charAt(infos["curr_pos"]-1); - var no_real_move=true; - if(infos["line_nb"]==1 && (this.assocBracket[selec_char] || this.revertAssocBracket[selec_char]) ){ - - no_real_move=false; - //findEndBracket(infos["line_start"], infos["curr_pos"], selec_char); - if(this.findEndBracket(infos, selec_char) === true){ - _$("end_bracket").style.visibility ="visible"; - _$("cursor_pos").style.visibility ="visible"; - _$("cursor_pos").innerHTML = selec_char; - _$("end_bracket").innerHTML = (this.assocBracket[selec_char] || this.revertAssocBracket[selec_char]); - }else{ - _$("end_bracket").style.visibility ="hidden"; - _$("cursor_pos").style.visibility ="hidden"; - } - }else{ - _$("cursor_pos").style.visibility ="hidden"; - _$("end_bracket").style.visibility ="hidden"; - } - //alert("move cursor"); - this.displayToCursorPosition("cursor_pos", infos["line_start"], infos["curr_pos"]-1, infos["curr_line"], no_real_move); - if(infos["line_nb"]==1 && infos["line_start"]!=this.last_selection["line_start"]) - this.scroll_to_view(); - } - this.last_selection=infos; - } - - tend= new Date().getTime(); - //if( (tend-t1) > 7 ) - // console.log( "tps total: "+ (tend-t1) + " tps get_infos: "+ (t2-t1)+ " tps selec: "+ (t2_1-t2)+ " tps highlight: "+ (t3-t2_1) +" tps lines: "+ (tLines-t3) +" tps cursor+lines: "+ (tend-tLines)+" \n" ); - - - if(timer_checkup){ - setTimeout("editArea.check_line_selection(true)", this.check_line_selection_timer); - } - }; - - - EditArea.prototype.get_selection_infos= function(){ - var sel={}, start, end, len, str; - - this.getIESelection(); - start = this.textarea.selectionStart; - end = this.textarea.selectionEnd; - - if( this.last_selection["selectionStart"] == start && this.last_selection["selectionEnd"] == end && this.last_selection["full_text"] == this.textarea.value ) - { - return this.last_selection; - } - - if(this.tabulation!="\t" && this.textarea.value.indexOf("\t")!=-1) - { // can append only after copy/paste - len = this.textarea.value.length; - this.textarea.value = this.replace_tab(this.textarea.value); - start = end = start+(this.textarea.value.length-len); - this.area_select( start, 0 ); - } - - sel["selectionStart"] = start; - sel["selectionEnd"] = end; - sel["full_text"] = this.textarea.value; - sel["line_start"] = 1; - sel["line_nb"] = 1; - sel["curr_pos"] = 0; - sel["curr_line"] = ""; - sel["indexOfCursor"] = 0; - sel["selec_direction"] = this.last_selection["selec_direction"]; - - //return sel; - var splitTab= sel["full_text"].split("\n"); - var nbLine = Math.max(0, splitTab.length); - var nbChar = Math.max(0, sel["full_text"].length - (nbLine - 1)); // (remove \n caracters from the count) - if( sel["full_text"].indexOf("\r") != -1 ) - nbChar = nbChar - ( nbLine - 1 ); // (remove \r caracters from the count) - sel["nb_line"] = nbLine; - sel["nb_char"] = nbChar; - - if(start>0){ - str = sel["full_text"].substr(0,start); - sel["curr_pos"] = start - str.lastIndexOf("\n"); - sel["line_start"] = Math.max(1, str.split("\n").length); - }else{ - sel["curr_pos"]=1; - } - if(end>start){ - sel["line_nb"]=sel["full_text"].substring(start,end).split("\n").length; - } - sel["indexOfCursor"]=start; - sel["curr_line"]=splitTab[Math.max(0,sel["line_start"]-1)]; - - // determine in which direction the selection grow - if(sel["selectionStart"] == this.last_selection["selectionStart"]){ - if(sel["selectionEnd"]>this.last_selection["selectionEnd"]) - sel["selec_direction"]= "down"; - else if(sel["selectionEnd"] == this.last_selection["selectionStart"]) - sel["selec_direction"]= this.last_selection["selec_direction"]; - }else if(sel["selectionStart"] == this.last_selection["selectionEnd"] && sel["selectionEnd"]>this.last_selection["selectionEnd"]){ - sel["selec_direction"]= "down"; - }else{ - sel["selec_direction"]= "up"; - } - - _$("nbLine").innerHTML = nbLine; - _$("nbChar").innerHTML = nbChar; - _$("linePos").innerHTML = sel["line_start"]; - _$("currPos").innerHTML = sel["curr_pos"]; - - return sel; - }; - - // set IE position in Firefox mode (textarea.selectionStart and textarea.selectionEnd) - EditArea.prototype.getIESelection= function(){ - var selectionStart, selectionEnd, range, stored_range; - - if( !this.isIE ) - return false; - - // make it work as nowrap mode (easier for range manipulation with lineHeight) - if( this.settings['word_wrap'] ) - this.textarea.wrap='off'; - - try{ - range = document.selection.createRange(); - stored_range = range.duplicate(); - stored_range.moveToElementText( this.textarea ); - stored_range.setEndPoint( 'EndToEnd', range ); - if( stored_range.parentElement() != this.textarea ) - throw "invalid focus"; - - // the range don't take care of empty lines in the end of the selection - var scrollTop = this.result.scrollTop + document.body.scrollTop; - var relative_top= range.offsetTop - parent.calculeOffsetTop(this.textarea) + scrollTop; - var line_start = Math.round((relative_top / this.lineHeight) +1); - var line_nb = Math.round( range.boundingHeight / this.lineHeight ); - - selectionStart = stored_range.text.length - range.text.length; - selectionStart += ( line_start - this.textarea.value.substr(0, selectionStart).split("\n").length)*2; // count missing empty \r to the selection - selectionStart -= ( line_start - this.textarea.value.substr(0, selectionStart).split("\n").length ) * 2; - - selectionEnd = selectionStart + range.text.length; - selectionEnd += (line_start + line_nb - 1 - this.textarea.value.substr(0, selectionEnd ).split("\n").length)*2; - - this.textarea.selectionStart = selectionStart; - this.textarea.selectionEnd = selectionEnd; - } - catch(e){} - - // restore wrap mode - if( this.settings['word_wrap'] ) - this.textarea.wrap='soft'; - }; - - // select the text for IE (and take care of \r caracters) - EditArea.prototype.setIESelection= function(){ - var a = this.textarea, nbLineStart, nbLineEnd, range; - - if( !this.isIE ) - return false; - - nbLineStart = a.value.substr(0, a.selectionStart).split("\n").length - 1; - nbLineEnd = a.value.substr(0, a.selectionEnd).split("\n").length - 1; - range = document.selection.createRange(); - range.moveToElementText( a ); - range.setEndPoint( 'EndToStart', range ); - - range.moveStart('character', a.selectionStart - nbLineStart); - range.moveEnd('character', a.selectionEnd - nbLineEnd - (a.selectionStart - nbLineStart) ); - range.select(); - }; - - - - EditArea.prototype.checkTextEvolution=function(lastText,newText){ - // ch will contain changes datas - var ch={},baseStep=200, cpt=0, end, step,tStart=new Date().getTime(); - - end = Math.min(newText.length, lastText.length); - step = baseStep; - // find how many chars are similar at the begin of the text - while( cpt<end && step>=1 ){ - if(lastText.substr(cpt, step) == newText.substr(cpt, step)){ - cpt+= step; - }else{ - step= Math.floor(step/2); - } - } - - ch.posStart = cpt; - ch.lineStart= newText.substr(0, ch.posStart).split("\n").length -1; - - cpt_last = lastText.length; - cpt = newText.length; - step = baseStep; - // find how many chars are similar at the end of the text - while( cpt>=0 && cpt_last>=0 && step>=1 ){ - if(lastText.substr(cpt_last-step, step) == newText.substr(cpt-step, step)){ - cpt-= step; - cpt_last-= step; - }else{ - step= Math.floor(step/2); - } - } - - ch.posNewEnd = cpt; - ch.posLastEnd = cpt_last; - if(ch.posNewEnd<=ch.posStart){ - if(lastText.length < newText.length){ - ch.posNewEnd= ch.posStart + newText.length - lastText.length; - ch.posLastEnd= ch.posStart; - }else{ - ch.posLastEnd= ch.posStart + lastText.length - newText.length; - ch.posNewEnd= ch.posStart; - } - } - ch.newText = newText.substring(ch.posStart, ch.posNewEnd); - ch.lastText = lastText.substring(ch.posStart, ch.posLastEnd); - - ch.lineNewEnd = newText.substr(0, ch.posNewEnd).split("\n").length -1; - ch.lineLastEnd = lastText.substr(0, ch.posLastEnd).split("\n").length -1; - - ch.newTextLine = newText.split("\n").slice(ch.lineStart, ch.lineNewEnd+1).join("\n"); - ch.lastTextLine = lastText.split("\n").slice(ch.lineStart, ch.lineLastEnd+1).join("\n"); - //console.log( ch ); - return ch; - }; - - EditArea.prototype.tab_selection= function(){ - if(this.is_tabbing) - return; - this.is_tabbing=true; - //infos=getSelectionInfos(); - //if( document.selection ){ - this.getIESelection(); - /* Insertion du code de formatage */ - var start = this.textarea.selectionStart; - var end = this.textarea.selectionEnd; - var insText = this.textarea.value.substring(start, end); - - /* Insert tabulation and ajust cursor position */ - var pos_start=start; - var pos_end=end; - if (insText.length == 0) { - // if only one line selected - this.textarea.value = this.textarea.value.substr(0, start) + this.tabulation + this.textarea.value.substr(end); - pos_start = start + this.tabulation.length; - pos_end=pos_start; - } else { - start= Math.max(0, this.textarea.value.substr(0, start).lastIndexOf("\n")+1); - endText=this.textarea.value.substr(end); - startText=this.textarea.value.substr(0, start); - tmp= this.textarea.value.substring(start, end).split("\n"); - insText= this.tabulation+tmp.join("\n"+this.tabulation); - this.textarea.value = startText + insText + endText; - pos_start = start; - pos_end= this.textarea.value.indexOf("\n", startText.length + insText.length); - if(pos_end==-1) - pos_end=this.textarea.value.length; - //pos = start + repdeb.length + insText.length + ; - } - this.textarea.selectionStart = pos_start; - this.textarea.selectionEnd = pos_end; - - //if( document.selection ){ - if(this.isIE) - { - this.setIESelection(); - setTimeout("editArea.is_tabbing=false;", 100); // IE can't accept to make 2 tabulation without a little break between both - } - else - { - this.is_tabbing=false; - } - - }; - - EditArea.prototype.invert_tab_selection= function(){ - var t=this, a=this.textarea; - if(t.is_tabbing) - return; - t.is_tabbing=true; - //infos=getSelectionInfos(); - //if( document.selection ){ - t.getIESelection(); - - var start = a.selectionStart; - var end = a.selectionEnd; - var insText = a.value.substring(start, end); - - /* Tab remove and cursor seleciton adjust */ - var pos_start=start; - var pos_end=end; - if (insText.length == 0) { - if(a.value.substring(start-t.tabulation.length, start)==t.tabulation) - { - a.value = a.value.substr(0, start-t.tabulation.length) + a.value.substr(end); - pos_start = Math.max(0, start-t.tabulation.length); - pos_end = pos_start; - } - /* - a.value = a.value.substr(0, start) + t.tabulation + insText + a.value.substr(end); - pos_start = start + t.tabulation.length; - pos_end=pos_start;*/ - } else { - start = a.value.substr(0, start).lastIndexOf("\n")+1; - endText = a.value.substr(end); - startText = a.value.substr(0, start); - tmp = a.value.substring(start, end).split("\n"); - insText = ""; - for(i=0; i<tmp.length; i++){ - for(j=0; j<t.tab_nb_char; j++){ - if(tmp[i].charAt(0)=="\t"){ - tmp[i]=tmp[i].substr(1); - j=t.tab_nb_char; - }else if(tmp[i].charAt(0)==" ") - tmp[i]=tmp[i].substr(1); - } - insText+=tmp[i]; - if(i<tmp.length-1) - insText+="\n"; - } - //insText+="_"; - a.value = startText + insText + endText; - pos_start = start; - pos_end = a.value.indexOf("\n", startText.length + insText.length); - if(pos_end==-1) - pos_end=a.value.length; - //pos = start + repdeb.length + insText.length + ; - } - a.selectionStart = pos_start; - a.selectionEnd = pos_end; - - //if( document.selection ){ - if(t.isIE){ - // select the text for IE - t.setIESelection(); - setTimeout("editArea.is_tabbing=false;", 100); // IE can accept to make 2 tabulation without a little break between both - }else - t.is_tabbing=false; - }; - - EditArea.prototype.press_enter= function(){ - if(!this.smooth_selection) - return false; - this.getIESelection(); - var scrollTop= this.result.scrollTop; - var scrollLeft= this.result.scrollLeft; - var start=this.textarea.selectionStart; - var end= this.textarea.selectionEnd; - var start_last_line= Math.max(0 , this.textarea.value.substring(0, start).lastIndexOf("\n") + 1 ); - var begin_line= this.textarea.value.substring(start_last_line, start).replace(/^([ \t]*).*/gm, "$1"); - var lineStart = this.textarea.value.substring(0, start).split("\n").length; - if(begin_line=="\n" || begin_line=="\r" || begin_line.length==0) - { - return false; - } - - if(this.isIE || ( this.isOpera && this.isOpera < 9.6 ) ){ - begin_line="\r\n"+ begin_line; - }else{ - begin_line="\n"+ begin_line; - } - //alert(start_last_line+" strat: "+start +"\n"+this.textarea.value.substring(start_last_line, start)+"\n_"+begin_line+"_") - this.textarea.value= this.textarea.value.substring(0, start) + begin_line + this.textarea.value.substring(end); - - this.area_select(start+ begin_line.length ,0); - // during this process IE scroll back to the top of the textarea - if(this.isIE){ - this.result.scrollTop = scrollTop; - this.result.scrollLeft = scrollLeft; - } - return true; - - }; - - EditArea.prototype.findEndBracket= function(infos, bracket){ - - var start=infos["indexOfCursor"]; - var normal_order=true; - //curr_text=infos["full_text"].split("\n"); - if(this.assocBracket[bracket]) - endBracket=this.assocBracket[bracket]; - else if(this.revertAssocBracket[bracket]){ - endBracket=this.revertAssocBracket[bracket]; - normal_order=false; - } - var end=-1; - var nbBracketOpen=0; - - for(var i=start; i<infos["full_text"].length && i>=0; ){ - if(infos["full_text"].charAt(i)==endBracket){ - nbBracketOpen--; - if(nbBracketOpen<=0){ - //i=infos["full_text"].length; - end=i; - break; - } - }else if(infos["full_text"].charAt(i)==bracket) - nbBracketOpen++; - if(normal_order) - i++; - else - i--; - } - - //end=infos["full_text"].indexOf("}", start); - if(end==-1) - return false; - var endLastLine=infos["full_text"].substr(0, end).lastIndexOf("\n"); - if(endLastLine==-1) - line=1; - else - line= infos["full_text"].substr(0, endLastLine).split("\n").length + 1; - - var curPos= end - endLastLine - 1; - var endLineLength = infos["full_text"].substring(end).split("\n")[0].length; - this.displayToCursorPosition("end_bracket", line, curPos, infos["full_text"].substring(endLastLine +1, end + endLineLength)); - return true; - }; - - EditArea.prototype.displayToCursorPosition= function(id, start_line, cur_pos, lineContent, no_real_move){ - var elem,dest,content,posLeft=0,posTop,fixPadding,topOffset,endElem; - - elem = this.test_font_size; - dest = _$(id); - content = "<span id='test_font_size_inner'>"+lineContent.substr(0, cur_pos).replace(/&/g,"&").replace(/</g,"<")+"</span><span id='endTestFont'>"+lineContent.substr(cur_pos).replace(/&/g,"&").replace(/</g,"<")+"</span>"; - if( this.isIE || ( this.isOpera && this.isOpera < 9.6 ) ) { - elem.innerHTML= "<pre>" + content.replace(/^\r?\n/, "<br>") + "</pre>"; - } else { - elem.innerHTML= content; - } - - - endElem = _$('endTestFont'); - topOffset = endElem.offsetTop; - fixPadding = parseInt( this.content_highlight.style.paddingLeft.replace("px", "") ); - posLeft = 45 + endElem.offsetLeft + ( !isNaN( fixPadding ) && topOffset > 0 ? fixPadding : 0 ); - posTop = this.getLinePosTop( start_line ) + topOffset;// + Math.floor( ( endElem.offsetHeight - 1 ) / this.lineHeight ) * this.lineHeight; - - // detect the case where the span start on a line but has no display on it - if( this.isIE && cur_pos > 0 && endElem.offsetLeft == 0 ) - { - posTop += this.lineHeight; - } - if(no_real_move!=true){ // when the cursor is hidden no need to move him - dest.style.top=posTop+"px"; - dest.style.left=posLeft+"px"; - } - // usefull for smarter scroll - dest.cursor_top=posTop; - dest.cursor_left=posLeft; - // _$(id).style.marginLeft=posLeft+"px"; - }; - - EditArea.prototype.getLinePosTop= function(start_line){ - var elem= _$('line_'+ start_line), posTop=0; - if( elem ) - posTop = elem.offsetTop; - else - posTop = this.lineHeight * (start_line-1); - return posTop; - }; - - - // return the dislpayed height of a text (take word-wrap into account) - EditArea.prototype.getTextHeight= function(text){ - var t=this,elem,height; - elem = t.test_font_size; - content = text.replace(/&/g,"&").replace(/</g,"<"); - if( t.isIE || ( this.isOpera && this.isOpera < 9.6 ) ) { - elem.innerHTML= "<pre>" + content.replace(/^\r?\n/, "<br>") + "</pre>"; - } else { - elem.innerHTML= content; - } - height = elem.offsetHeight; - height = Math.max( 1, Math.floor( elem.offsetHeight / this.lineHeight ) ) * this.lineHeight; - return height; - }; - - /** - * Fix line height for the given lines - * @param Integer linestart - * @param Integer lineEnd End line or -1 to cover all lines - */ - EditArea.prototype.fixLinesHeight= function( textValue, lineStart,lineEnd ){ - var aText = textValue.split("\n"); - if( lineEnd == -1 ) - lineEnd = aText.length-1; - for( var i = Math.max(0, lineStart); i <= lineEnd; i++ ) - { - if( elem = _$('line_'+ ( i+1 ) ) ) - { - elem.style.height= typeof( aText[i] ) != "undefined" ? this.getTextHeight( aText[i] )+"px" : this.lineHeight; - } - } - }; - - EditArea.prototype.area_select= function(start, length){ - this.textarea.focus(); - - start = Math.max(0, Math.min(this.textarea.value.length, start)); - end = Math.max(start, Math.min(this.textarea.value.length, start+length)); - - if(this.isIE) - { - this.textarea.selectionStart = start; - this.textarea.selectionEnd = end; - this.setIESelection(); - } - else - { - // Opera bug when moving selection start and selection end - if(this.isOpera && this.isOpera < 9.6 ) - { - this.textarea.setSelectionRange(0, 0); - } - this.textarea.setSelectionRange(start, end); - } - this.check_line_selection(); - }; - - - EditArea.prototype.area_get_selection= function(){ - var text=""; - if( document.selection ){ - var range = document.selection.createRange(); - text=range.text; - }else{ - text= this.textarea.value.substring(this.textarea.selectionStart, this.textarea.selectionEnd); - } - return text; - }; \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/charmap.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/charmap.js deleted file mode 100644 index df4282216..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/charmap.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Charmap plugin - * by Christophe Dolivet - * v0.1 (2006/09/22) - * - * - * This plugin allow to use a visual keyboard allowing to insert any UTF-8 characters in the text. - * - * - plugin name to add to the plugin list: "charmap" - * - plugin name to add to the toolbar list: "charmap" - * - possible parameters to add to EditAreaLoader.init(): - * "charmap_default": (String) define the name of the default character range displayed on popup display - * (default: "arrows") - * - * - */ - -var EditArea_charmap= { - /** - * Get called once this file is loaded (editArea still not initialized) - * - * @return nothing - */ - init: function(){ - this.default_language="Arrows"; - } - - /** - * Returns the HTML code for a specific control string or false if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the EditArea user interface. - * Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} ctrl_name: the name of the control to add - * @return HTML code for a specific control or false. - * @type string or boolean - */ - ,get_control_html: function(ctrl_name){ - switch(ctrl_name){ - case "charmap": - // Control id, button img, command - return parent.editAreaLoader.get_button_html('charmap_but', 'charmap.gif', 'charmap_press', false, this.baseURL); - } - return false; - } - /** - * Get called once EditArea is fully loaded and initialised - * - * @return nothing - */ - ,onload: function(){ - if(editArea.settings["charmap_default"] && editArea.settings["charmap_default"].length>0) - this.default_language= editArea.settings["charmap_default"]; - } - - /** - * Is called each time the user touch a keyboard key. - * - * @param (event) e: the keydown event - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,onkeydown: function(e){ - - } - - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} cmd: the name of the command being executed - * @param {unknown} param: the parameter of the command - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,execCommand: function(cmd, param){ - // Handle commands - switch(cmd){ - case "charmap_press": - win= window.open(this.baseURL+"popup.html", "charmap", "width=500,height=270,scrollbars=yes,resizable=yes"); - win.focus(); - return false; - } - // Pass to next handler in chain - return true; - } - -}; - -// Adds the plugin class to the list of available EditArea plugins -editArea.add_plugin("charmap", EditArea_charmap); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/css/charmap.css b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/css/charmap.css deleted file mode 100644 index fc8d66603..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/css/charmap.css +++ /dev/null @@ -1,64 +0,0 @@ -body{ - background-color: #F0F0EE; - font: 12px monospace, sans-serif; -} - -select{ - background-color: #F9F9F9; - border: solid 1px #888888; -} - -h1, h2, h3, h4, h5, h6{ - margin: 0; - padding: 0; - color: #2B6FB6; -} - -h1{ - font-size: 1.5em; -} - -div#char_list{ - height: 200px; - overflow: auto; - padding: 1px; - border: 1px solid #0A246A; - background-color: #F9F9F9; - clear: both; - margin-top: 5px; -} - -a.char{ - display: block; - float: left; - width: 20px; - height: 20px; - line-height: 20px; - margin: 1px; - border: solid 1px #888888; - text-align: center; - cursor: pointer; -} - -a.char:hover{ - background-color: #CCCCCC; -} - -.preview{ - border: solid 1px #888888; - width: 50px; - padding: 2px 5px; - height: 35px; - line-height: 35px; - text-align:center; - background-color: #CCCCCC; - font-size: 2em; - float: right; - font-weight: bold; - margin: 0 0 5px 5px; -} - -#preview_code{ - font-size: 1.1em; - width: 70px; -} diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/images/charmap.gif b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/images/charmap.gif deleted file mode 100644 index 3cdc4ac9134258a9a1a83b6afd5c7055bebbcbf9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 245 zcmZ?wbhEHb6k!lyxWdh#=C!J8+AXE(Ygxs+4(z)U(|tqF|4>ukIk{=?mTtY7lyvOo z-IwN$D{PA|Cd_zOwdS=-(kZu~<v~Rkrgfd#bMnc&{jbb?H(S&_uueL@Xz^*cpj~dW z-bJkVQa0;GUez@Q1_s5SEQ|~c@(el*3=9k)I~iDu9;o-FWX{W2weHQ%kgJCa{hd~B zELZUi$eGUE^(a8VYi^rjaZ!xg@}|UsDw7#%npa&8X818NY}+zHLTG7=LXl0N!lWR^ zOKz&KryTp%vOs5<GAl2OBtrs|7>}SbuY?#wn;LH?507%6m|(Z=oVoMnYbY{U0|1R^ BWg`Fp diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/jscripts/map.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/jscripts/map.js deleted file mode 100644 index 6c194a405..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/jscripts/map.js +++ /dev/null @@ -1,373 +0,0 @@ -var editArea; - - -/** - * UTF-8 list taken from http://www.utf8-chartable.de/unicode-utf8-table.pl?utf8=dec - */ - - -/* -var char_range_list={ -"Basic Latin":"0021,007F", -"Latin-1 Supplement":"0080,00FF", -"Latin Extended-A":"0100,017F", -"Latin Extended-B":"0180,024F", -"IPA Extensions":"0250,02AF", -"Spacing Modifier Letters":"02B0,02FF", - -"Combining Diacritical Marks":"0300,036F", -"Greek and Coptic":"0370,03FF", -"Cyrillic":"0400,04FF", -"Cyrillic Supplement":"0500,052F", -"Armenian":"0530,058F", -"Hebrew":"0590,05FF", -"Arabic":"0600,06FF", -"Syriac":"0700,074F", -"Arabic Supplement":"0750,077F", - -"Thaana":"0780,07BF", -"Devanagari":"0900,097F", -"Bengali":"0980,09FF", -"Gurmukhi":"0A00,0A7F", -"Gujarati":"0A80,0AFF", -"Oriya":"0B00,0B7F", -"Tamil":"0B80,0BFF", -"Telugu":"0C00,0C7F", -"Kannada":"0C80,0CFF", - -"Malayalam":"0D00,0D7F", -"Sinhala":"0D80,0DFF", -"Thai":"0E00,0E7F", -"Lao":"0E80,0EFF", -"Tibetan":"0F00,0FFF", -"Myanmar":"1000,109F", -"Georgian":"10A0,10FF", -"Hangul Jamo":"1100,11FF", -"Ethiopic":"1200,137F", - -"Ethiopic Supplement":"1380,139F", -"Cherokee":"13A0,13FF", -"Unified Canadian Aboriginal Syllabics":"1400,167F", -"Ogham":"1680,169F", -"Runic":"16A0,16FF", -"Tagalog":"1700,171F", -"Hanunoo":"1720,173F", -"Buhid":"1740,175F", -"Tagbanwa":"1760,177F", - -"Khmer":"1780,17FF", -"Mongolian":"1800,18AF", -"Limbu":"1900,194F", -"Tai Le":"1950,197F", -"New Tai Lue":"1980,19DF", -"Khmer Symbols":"19E0,19FF", -"Buginese":"1A00,1A1F", -"Phonetic Extensions":"1D00,1D7F", -"Phonetic Extensions Supplement":"1D80,1DBF", - -"Combining Diacritical Marks Supplement":"1DC0,1DFF", -"Latin Extended Additional":"1E00,1EFF", -"Greek Extended":"1F00,1FFF", -"General Punctuation":"2000,206F", -"Superscripts and Subscripts":"2070,209F", -"Currency Symbols":"20A0,20CF", -"Combining Diacritical Marks for Symbols":"20D0,20FF", -"Letterlike Symbols":"2100,214F", -"Number Forms":"2150,218F", - -"Arrows":"2190,21FF", -"Mathematical Operators":"2200,22FF", -"Miscellaneous Technical":"2300,23FF", -"Control Pictures":"2400,243F", -"Optical Character Recognition":"2440,245F", -"Enclosed Alphanumerics":"2460,24FF", -"Box Drawing":"2500,257F", -"Block Elements":"2580,259F", -"Geometric Shapes":"25A0,25FF", - -"Miscellaneous Symbols":"2600,26FF", -"Dingbats":"2700,27BF", -"Miscellaneous Mathematical Symbols-A":"27C0,27EF", -"Supplemental Arrows-A":"27F0,27FF", -"Braille Patterns":"2800,28FF", -"Supplemental Arrows-B":"2900,297F", -"Miscellaneous Mathematical Symbols-B":"2980,29FF", -"Supplemental Mathematical Operators":"2A00,2AFF", -"Miscellaneous Symbols and Arrows":"2B00,2BFF", - -"Glagolitic":"2C00,2C5F", -"Coptic":"2C80,2CFF", -"Georgian Supplement":"2D00,2D2F", -"Tifinagh":"2D30,2D7F", -"Ethiopic Extended":"2D80,2DDF", -"Supplemental Punctuation":"2E00,2E7F", -"CJK Radicals Supplement":"2E80,2EFF", -"Kangxi Radicals":"2F00,2FDF", -"Ideographic Description Characters":"2FF0,2FFF", - -"CJK Symbols and Punctuation":"3000,303F", -"Hiragana":"3040,309F", -"Katakana":"30A0,30FF", -"Bopomofo":"3100,312F", -"Hangul Compatibility Jamo":"3130,318F", -"Kanbun":"3190,319F", -"Bopomofo Extended":"31A0,31BF", -"CJK Strokes":"31C0,31EF", -"Katakana Phonetic Extensions":"31F0,31FF", - -"Enclosed CJK Letters and Months":"3200,32FF", -"CJK Compatibility":"3300,33FF", -"CJK Unified Ideographs Extension A":"3400,4DBF", -"Yijing Hexagram Symbols":"4DC0,4DFF", -"CJK Unified Ideographs":"4E00,9FFF", -"Yi Syllables":"A000,A48F", -"Yi Radicals":"A490,A4CF", -"Modifier Tone Letters":"A700,A71F", -"Syloti Nagri":"A800,A82F", - -"Hangul Syllables":"AC00,D7AF", -"High Surrogates":"D800,DB7F", -"High Private Use Surrogates":"DB80,DBFF", -"Low Surrogates":"DC00,DFFF", -"Private Use Area":"E000,F8FF", -"CJK Compatibility Ideographs":"F900,FAFF", -"Alphabetic Presentation Forms":"FB00,FB4F", -"Arabic Presentation Forms-A":"FB50,FDFF", -"Variation Selectors":"FE00,FE0F", - -"Vertical Forms":"FE10,FE1F", -"Combining Half Marks":"FE20,FE2F", -"CJK Compatibility Forms":"FE30,FE4F", -"Small Form Variants":"FE50,FE6F", -"Arabic Presentation Forms-B":"FE70,FEFF", -"Halfwidth and Fullwidth Forms":"FF00,FFEF", -"Specials":"FFF0,FFFF", -"Linear B Syllabary":"10000,1007F", -"Linear B Ideograms":"10080,100FF", - -"Aegean Numbers":"10100,1013F", -"Ancient Greek Numbers":"10140,1018F", -"Old Italic":"10300,1032F", -"Gothic":"10330,1034F", -"Ugaritic":"10380,1039F", -"Old Persian":"103A0,103DF", -"Deseret":"10400,1044F", -"Shavian":"10450,1047F", -"Osmanya":"10480,104AF", - -"Cypriot Syllabary":"10800,1083F", -"Kharoshthi":"10A00,10A5F", -"Byzantine Musical Symbols":"1D000,1D0FF", -"Musical Symbols":"1D100,1D1FF", -"Ancient Greek Musical Notation":"1D200,1D24F", -"Tai Xuan Jing Symbols":"1D300,1D35F", -"Mathematical Alphanumeric Symbols":"1D400,1D7FF", -"CJK Unified Ideographs Extension B":"20000,2A6DF", -"CJK Compatibility Ideographs Supplement":"2F800,2FA1F", -"Tags":"E0000,E007F", -"Variation Selectors Supplement":"E0100,E01EF" -}; -*/ -var char_range_list={ -"Aegean Numbers":"10100,1013F", -"Alphabetic Presentation Forms":"FB00,FB4F", -"Ancient Greek Musical Notation":"1D200,1D24F", -"Ancient Greek Numbers":"10140,1018F", -"Arabic":"0600,06FF", -"Arabic Presentation Forms-A":"FB50,FDFF", -"Arabic Presentation Forms-B":"FE70,FEFF", -"Arabic Supplement":"0750,077F", -"Armenian":"0530,058F", -"Arrows":"2190,21FF", -"Basic Latin":"0020,007F", -"Bengali":"0980,09FF", -"Block Elements":"2580,259F", -"Bopomofo Extended":"31A0,31BF", -"Bopomofo":"3100,312F", -"Box Drawing":"2500,257F", -"Braille Patterns":"2800,28FF", -"Buginese":"1A00,1A1F", -"Buhid":"1740,175F", -"Byzantine Musical Symbols":"1D000,1D0FF", -"CJK Compatibility Forms":"FE30,FE4F", -"CJK Compatibility Ideographs Supplement":"2F800,2FA1F", -"CJK Compatibility Ideographs":"F900,FAFF", -"CJK Compatibility":"3300,33FF", -"CJK Radicals Supplement":"2E80,2EFF", -"CJK Strokes":"31C0,31EF", -"CJK Symbols and Punctuation":"3000,303F", -"CJK Unified Ideographs Extension A":"3400,4DBF", -"CJK Unified Ideographs Extension B":"20000,2A6DF", -"CJK Unified Ideographs":"4E00,9FFF", -"Cherokee":"13A0,13FF", -"Combining Diacritical Marks Supplement":"1DC0,1DFF", -"Combining Diacritical Marks for Symbols":"20D0,20FF", -"Combining Diacritical Marks":"0300,036F", -"Combining Half Marks":"FE20,FE2F", -"Control Pictures":"2400,243F", -"Coptic":"2C80,2CFF", -"Currency Symbols":"20A0,20CF", -"Cypriot Syllabary":"10800,1083F", -"Cyrillic Supplement":"0500,052F", -"Cyrillic":"0400,04FF", -"Deseret":"10400,1044F", -"Devanagari":"0900,097F", -"Dingbats":"2700,27BF", -"Enclosed Alphanumerics":"2460,24FF", -"Enclosed CJK Letters and Months":"3200,32FF", -"Ethiopic Extended":"2D80,2DDF", -"Ethiopic Supplement":"1380,139F", -"Ethiopic":"1200,137F", -"General Punctuation":"2000,206F", -"Geometric Shapes":"25A0,25FF", -"Georgian Supplement":"2D00,2D2F", -"Georgian":"10A0,10FF", -"Glagolitic":"2C00,2C5F", -"Gothic":"10330,1034F", -"Greek Extended":"1F00,1FFF", -"Greek and Coptic":"0370,03FF", -"Gujarati":"0A80,0AFF", -"Gurmukhi":"0A00,0A7F", -"Halfwidth and Fullwidth Forms":"FF00,FFEF", -"Hangul Compatibility Jamo":"3130,318F", -"Hangul Jamo":"1100,11FF", -"Hangul Syllables":"AC00,D7AF", -"Hanunoo":"1720,173F", -"Hebrew":"0590,05FF", -"High Private Use Surrogates":"DB80,DBFF", -"High Surrogates":"D800,DB7F", -"Hiragana":"3040,309F", -"IPA Extensions":"0250,02AF", -"Ideographic Description Characters":"2FF0,2FFF", -"Kanbun":"3190,319F", -"Kangxi Radicals":"2F00,2FDF", -"Kannada":"0C80,0CFF", -"Katakana Phonetic Extensions":"31F0,31FF", -"Katakana":"30A0,30FF", -"Kharoshthi":"10A00,10A5F", -"Khmer Symbols":"19E0,19FF", -"Khmer":"1780,17FF", -"Lao":"0E80,0EFF", -"Latin Extended Additional":"1E00,1EFF", -"Latin Extended-A":"0100,017F", -"Latin Extended-B":"0180,024F", -"Latin-1 Supplement":"0080,00FF", -"Letterlike Symbols":"2100,214F", -"Limbu":"1900,194F", -"Linear B Ideograms":"10080,100FF", -"Linear B Syllabary":"10000,1007F", -"Low Surrogates":"DC00,DFFF", -"Malayalam":"0D00,0D7F", -"Mathematical Alphanumeric Symbols":"1D400,1D7FF", -"Mathematical Operators":"2200,22FF", -"Miscellaneous Mathematical Symbols-A":"27C0,27EF", -"Miscellaneous Mathematical Symbols-B":"2980,29FF", -"Miscellaneous Symbols and Arrows":"2B00,2BFF", -"Miscellaneous Symbols":"2600,26FF", -"Miscellaneous Technical":"2300,23FF", -"Modifier Tone Letters":"A700,A71F", -"Mongolian":"1800,18AF", -"Musical Symbols":"1D100,1D1FF", -"Myanmar":"1000,109F", -"New Tai Lue":"1980,19DF", -"Number Forms":"2150,218F", -"Ogham":"1680,169F", -"Old Italic":"10300,1032F", -"Old Persian":"103A0,103DF", -"Optical Character Recognition":"2440,245F", -"Oriya":"0B00,0B7F", -"Osmanya":"10480,104AF", -"Phonetic Extensions Supplement":"1D80,1DBF", -"Phonetic Extensions":"1D00,1D7F", -"Private Use Area":"E000,F8FF", -"Runic":"16A0,16FF", -"Shavian":"10450,1047F", -"Sinhala":"0D80,0DFF", -"Small Form Variants":"FE50,FE6F", -"Spacing Modifier Letters":"02B0,02FF", -"Specials":"FFF0,FFFF", -"Superscripts and Subscripts":"2070,209F", -"Supplemental Arrows-A":"27F0,27FF", -"Supplemental Arrows-B":"2900,297F", -"Supplemental Mathematical Operators":"2A00,2AFF", -"Supplemental Punctuation":"2E00,2E7F", -"Syloti Nagri":"A800,A82F", -"Syriac":"0700,074F", -"Tagalog":"1700,171F", -"Tagbanwa":"1760,177F", -"Tags":"E0000,E007F", -"Tai Le":"1950,197F", -"Tai Xuan Jing Symbols":"1D300,1D35F", -"Tamil":"0B80,0BFF", -"Telugu":"0C00,0C7F", -"Thaana":"0780,07BF", -"Thai":"0E00,0E7F", -"Tibetan":"0F00,0FFF", -"Tifinagh":"2D30,2D7F", -"Ugaritic":"10380,1039F", -"Unified Canadian Aboriginal Syllabics":"1400,167F", -"Variation Selectors Supplement":"E0100,E01EF", -"Variation Selectors":"FE00,FE0F", -"Vertical Forms":"FE10,FE1F", -"Yi Radicals":"A490,A4CF", -"Yi Syllables":"A000,A48F", -"Yijing Hexagram Symbols":"4DC0,4DFF" -}; - -var insert="charmap_insert"; - -function map_load(){ - editArea=opener.editArea; - // translate the document - insert= editArea.get_translation(insert, "word"); - //alert(document.title); - document.title= editArea.get_translation(document.title, "template"); - document.body.innerHTML= editArea.get_translation(document.body.innerHTML, "template"); - //document.title= editArea.get_translation(document.getElementBytitle, "template"); - - var selected_lang=opener.EditArea_charmap.default_language.toLowerCase(); - var selected=0; - - var select= document.getElementById("select_range") - for(var i in char_range_list){ - if(i.toLowerCase()==selected_lang) - selected=select.options.length; - select.options[select.options.length]=new Option(i, char_range_list[i]); - } - select.options[selected].selected=true; -/* start=0; - end=127; - content=""; - for(var i=start; i<end; i++){ - content+="&#"+i+"; "; - } - document.getElementById("char_list").innerHTML=content;*/ - renderCharMapHTML(); -} - - -function renderCharMapHTML() { - range= document.getElementById("select_range").value.split(","); - - start= parseInt(range[0],16); - end= parseInt(range[1],16); - var charsPerRow = 20, tdWidth=20, tdHeight=20; - html=""; - for (var i=start; i<end; i++) { - html+="<a class='char' onmouseover='previewChar(\""+ i + "\");' onclick='insertChar(\""+ i + "\");' title='"+ insert +"'>"+ String.fromCharCode(i) +"</a>"; - } - document.getElementById("char_list").innerHTML= html; - document.getElementById("preview_char").innerHTML=""; -} - -function previewChar(i){ - document.getElementById("preview_char").innerHTML= String.fromCharCode(i); - document.getElementById("preview_code").innerHTML= "&#"+ i +";"; -} - -function insertChar(i){ - opener.parent.editAreaLoader.setSelectedText(editArea.id, String.fromCharCode( i)); - range= opener.parent.editAreaLoader.getSelectionRange(editArea.id); - opener.parent.editAreaLoader.setSelectionRange(editArea.id, range["end"], range["end"]); - window.focus(); -} diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/bg.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/bg.js deleted file mode 100644 index eaba0f9df..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/bg.js +++ /dev/null @@ -1,12 +0,0 @@ -/* - * Bulgarian translation - * Author: Valentin Hristov - * Company: SOFTKIT Bulgarian - * Site: http://www.softkit-bg.com - */ -editArea.add_lang("bg",{ -charmap_but: "Виртуална клавиатура", -charmap_title: "Виртуална клавиатура", -charmap_choose_block: "избери езиков блок", -charmap_insert:"постави този символ" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/cs.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/cs.js deleted file mode 100644 index 6b1c9072e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/cs.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("cs",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/de.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/de.js deleted file mode 100644 index 6dfe69c0e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/de.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("de",{ -charmap_but: "Sonderzeichen", -charmap_title: "Sonderzeichen", -charmap_choose_block: "Bereich auswählen", -charmap_insert: "dieses Zeichen einfügen" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/dk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/dk.js deleted file mode 100644 index ebcde25ea..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/dk.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("dk",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/en.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/en.js deleted file mode 100644 index 335ec28fe..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/en.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("en",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/eo.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/eo.js deleted file mode 100644 index 9a308411f..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/eo.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("eo",{ -charmap_but: "Ekranklavaro", -charmap_title: "Ekranklavaro", -charmap_choose_block: "Elekto de lingvo", -charmap_insert:"enmeti tiun signaron" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/es.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/es.js deleted file mode 100644 index be04b4b5e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/es.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("es",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/fr.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/fr.js deleted file mode 100644 index 8131e300b..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/fr.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("fr",{ -charmap_but: "Clavier visuel", -charmap_title: "Clavier visuel", -charmap_choose_block: "choix du language", -charmap_insert:"insérer ce caractère" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/hr.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/hr.js deleted file mode 100644 index 4d743540a..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/hr.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("hr",{ -charmap_but: "Virtualna tipkovnica", -charmap_title: "Virtualna tipkovnica", -charmap_choose_block: "Odaberi blok s jezikom", -charmap_insert:"Ubaci taj znak" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/it.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/it.js deleted file mode 100644 index b05abb932..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/it.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("it",{ -charmap_but: "Tastiera visuale", -charmap_title: "Tastiera visuale", -charmap_choose_block: "seleziona blocco", -charmap_insert:"inserisci questo carattere" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ja.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ja.js deleted file mode 100644 index efe060e1c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ja.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("ja",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/mk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/mk.js deleted file mode 100644 index f5331167e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/mk.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("mkn",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/nl.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/nl.js deleted file mode 100644 index 70d796820..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/nl.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("nl",{ -charmap_but: "Visueel toetsenbord", -charmap_title: "Visueel toetsenbord", -charmap_choose_block: "Kies een taal blok", -charmap_insert:"Voeg dit symbool in" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pl.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pl.js deleted file mode 100644 index 9feabbb27..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pl.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("pl",{ -charmap_but: "Klawiatura ekranowa", -charmap_title: "Klawiatura ekranowa", -charmap_choose_block: "wybierz grupę znaków", -charmap_insert:"wstaw ten znak" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pt.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pt.js deleted file mode 100644 index 5d3eaa3a8..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/pt.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("pt",{ -charmap_but: "Visual keyboard", -charmap_title: "Visual keyboard", -charmap_choose_block: "select language block", -charmap_insert:"insert this character" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ru.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ru.js deleted file mode 100644 index 3163f365a..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/ru.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("ru",{ -charmap_but: "Визуальная клавиатура", -charmap_title: "Визуальная клавиатура", -charmap_choose_block: "выбрать языковой блок", -charmap_insert:"вставить этот символ" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/sk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/sk.js deleted file mode 100644 index 851364110..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/sk.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("sk",{ -charmap_but: "Vizuálna klávesnica", -charmap_title: "Vizuálna klávesnica", -charmap_choose_block: "vyber jazykový blok", -charmap_insert: "vlož tento znak" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/zh.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/zh.js deleted file mode 100644 index 2a2023353..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/langs/zh.js +++ /dev/null @@ -1,6 +0,0 @@ -editArea.add_lang("zh",{ -charmap_but: "软键盘", -charmap_title: "软键盘", -charmap_choose_block: "选择一个语言块", -charmap_insert:"插入此字符" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/popup.html b/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/popup.html deleted file mode 100644 index 4b549db8b..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/charmap/popup.html +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > -<head> -<title>{$charmap_title}</title> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<link rel="stylesheet" type="text/css" href="css/charmap.css" /> -<script language="Javascript" type="text/javascript" src="jscripts/map.js"> -</script> -</head> -<body onload='map_load()'> -<div id='preview_code' class='preview'></div> -<div id='preview_char' class='preview'></div> -<h1>{$charmap_title}:</h1> -<select id='select_range' onchange='renderCharMapHTML()' title='{$charmap_choose_block}'> -</select> -<div id='char_list'> - -</div> - - - -</body> -</html> diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/css/test.css b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/css/test.css deleted file mode 100644 index 01245eb4e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/css/test.css +++ /dev/null @@ -1,3 +0,0 @@ -select#test_select{ - background-color: #FF0000; -} diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/images/test.gif b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/images/test.gif deleted file mode 100644 index 1ab5da4461113d2af579898528246fdbe52ecd00..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 87 zcmZ?wbhEHb6k!lyn83)uz`(%B$f)>}g^_`QkwFK<2gxun>9zE)JoxrL&m8|t+3(Nn oYT8#T$5hxS*}3#ppvGsmk7wqYYTQp)^Kr(#k2^(Nk{B7R0lyF(Bme*a diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/bg.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/bg.js deleted file mode 100644 index 56e049e05..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/bg.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Bulgarian translation - * Author: Valentin Hristov - * Company: SOFTKIT Bulgarian - * Site: http://www.softkit-bg.com - */ -editArea.add_lang("bg",{ -test_select: "избери таг", -test_but: "тествай копието" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/cs.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/cs.js deleted file mode 100644 index 026ef04cb..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/cs.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("cs",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/de.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/de.js deleted file mode 100644 index bd0857ce5..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/de.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("de",{ -test_select: "Tag auswählen", -test_but: "Test Button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/dk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/dk.js deleted file mode 100644 index e765cf931..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/dk.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("dk",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/en.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/en.js deleted file mode 100644 index 7d5d157ca..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/en.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("en",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/eo.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/eo.js deleted file mode 100644 index 8b4914fda..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/eo.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("eo",{ -test_select:"elekto de marko", -test_but: "provo-butono" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/es.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/es.js deleted file mode 100644 index 73e30f1dd..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/es.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("es",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/fr.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/fr.js deleted file mode 100644 index ea08a93e6..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/fr.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("fr",{ -test_select:"choix balise", -test_but: "bouton de test" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/hr.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/hr.js deleted file mode 100644 index fbffd9859..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/hr.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("hr",{ -test_select: "Odaberi tag", -test_but: "Probna tipka" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/it.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/it.js deleted file mode 100644 index 90926feb1..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/it.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("it",{ -test_select: "seleziona tag", -test_but: "pulsante di test" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ja.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ja.js deleted file mode 100644 index 2eb856cdb..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ja.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("ja",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/mk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/mk.js deleted file mode 100644 index 058ad4b8d..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/mk.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("mk",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/nl.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/nl.js deleted file mode 100644 index 3217c352d..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/nl.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("nl",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pl.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pl.js deleted file mode 100644 index 5c737329f..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pl.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("pl",{ -test_select: "wybierz tag", -test_but: "test" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pt.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pt.js deleted file mode 100644 index 7f8517211..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/pt.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("pt",{ -test_select: "select tag", -test_but: "test button" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ru.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ru.js deleted file mode 100644 index 0aaf542af..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/ru.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("ru",{ -test_select: "выбрать тэг", -test_but: "тестировать кнопку" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/sk.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/sk.js deleted file mode 100644 index fe0a72708..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/sk.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("sk",{ -test_select: "vyber tag", -test_but: "testovacie tlačidlo" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/zh.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/zh.js deleted file mode 100644 index 798d1752c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/langs/zh.js +++ /dev/null @@ -1,4 +0,0 @@ -editArea.add_lang("zh",{ -test_select: "选择标签", -test_but: "测试按钮" -}); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test.js deleted file mode 100644 index 46e71efa0..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Plugin designed for test prupose. It add a button (that manage an alert) and a select (that allow to insert tags) in the toolbar. - * This plugin also disable the "f" key in the editarea, and load a CSS and a JS file - */ -var EditArea_test= { - /** - * Get called once this file is loaded (editArea still not initialized) - * - * @return nothing - */ - init: function(){ - // alert("test init: "+ this._someInternalFunction(2, 3)); - editArea.load_css(this.baseURL+"css/test.css"); - editArea.load_script(this.baseURL+"test2.js"); - } - /** - * Returns the HTML code for a specific control string or false if this plugin doesn't have that control. - * A control can be a button, select list or any other HTML item to present in the EditArea user interface. - * Language variables such as {$lang_somekey} will also be replaced with contents from - * the language packs. - * - * @param {string} ctrl_name: the name of the control to add - * @return HTML code for a specific control or false. - * @type string or boolean - */ - ,get_control_html: function(ctrl_name){ - switch(ctrl_name){ - case "test_but": - // Control id, button img, command - return parent.editAreaLoader.get_button_html('test_but', 'test.gif', 'test_cmd', false, this.baseURL); - case "test_select": - html= "<select id='test_select' onchange='javascript:editArea.execCommand(\"test_select_change\")' fileSpecific='no'>" - +" <option value='-1'>{$test_select}</option>" - +" <option value='h1'>h1</option>" - +" <option value='h2'>h2</option>" - +" <option value='h3'>h3</option>" - +" <option value='h4'>h4</option>" - +" <option value='h5'>h5</option>" - +" <option value='h6'>h6</option>" - +" </select>"; - return html; - } - return false; - } - /** - * Get called once EditArea is fully loaded and initialised - * - * @return nothing - */ - ,onload: function(){ - alert("test load"); - } - - /** - * Is called each time the user touch a keyboard key. - * - * @param (event) e: the keydown event - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,onkeydown: function(e){ - var str= String.fromCharCode(e.keyCode); - // desactivate the "f" character - if(str.toLowerCase()=="f"){ - return true; - } - return false; - } - - /** - * Executes a specific command, this function handles plugin commands. - * - * @param {string} cmd: the name of the command being executed - * @param {unknown} param: the parameter of the command - * @return true - pass to next handler in chain, false - stop chain execution - * @type boolean - */ - ,execCommand: function(cmd, param){ - // Handle commands - switch(cmd){ - case "test_select_change": - var val= document.getElementById("test_select").value; - if(val!=-1) - parent.editAreaLoader.insertTags(editArea.id, "<"+val+">", "</"+val+">"); - document.getElementById("test_select").options[0].selected=true; - return false; - case "test_cmd": - alert("user clicked on test_cmd"); - return false; - } - // Pass to next handler in chain - return true; - } - - /** - * This is just an internal plugin method, prefix all internal methods with a _ character. - * The prefix is needed so they doesn't collide with future EditArea callback functions. - * - * @param {string} a Some arg1. - * @param {string} b Some arg2. - * @return Some return. - * @type unknown - */ - ,_someInternalFunction : function(a, b) { - return a+b; - } -}; - -// Adds the plugin class to the list of available EditArea plugins -editArea.add_plugin("test", EditArea_test); diff --git a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test2.js b/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test2.js deleted file mode 100644 index 9a1ce5127..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/plugins/test/test2.js +++ /dev/null @@ -1 +0,0 @@ -alert("test2.js is loaded from test plugin"); diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax.js deleted file mode 100644 index 11518cc13..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax.js +++ /dev/null @@ -1,166 +0,0 @@ - EditAreaLoader.prototype.get_regexp= function(text_array){ - //res="( |=|\\n|\\r|\\[|\\(|µ|)("; - res="(\\b)("; - for(i=0; i<text_array.length; i++){ - if(i>0) - res+="|"; - //res+="("+ tab_text[i] +")"; - //res+=tab_text[i].replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\{|\})/g, "\\$1"); - res+=this.get_escaped_regexp(text_array[i]); - } - //res+=")( |\\.|:|\\{|\\(|\\)|\\[|\\]|\'|\"|\\r|\\n|\\t|$)"; - res+=")(\\b)"; - reg= new RegExp(res); - - return res; - }; - - - EditAreaLoader.prototype.get_escaped_regexp= function(str){ - return str.toString().replace(/(\.|\?|\*|\+|\\|\(|\)|\[|\]|\}|\{|\$|\^|\|)/g, "\\$1"); - }; - - EditAreaLoader.prototype.init_syntax_regexp= function(){ - var lang_style= {}; - for(var lang in this.load_syntax){ - if(!this.syntax[lang]) // init the regexp if not already initialized - { - this.syntax[lang]= {}; - this.syntax[lang]["keywords_reg_exp"]= {}; - this.keywords_reg_exp_nb=0; - - if(this.load_syntax[lang]['KEYWORDS']){ - param="g"; - if(this.load_syntax[lang]['KEYWORD_CASE_SENSITIVE']===false) - param+="i"; - for(var i in this.load_syntax[lang]['KEYWORDS']){ - if(typeof(this.load_syntax[lang]['KEYWORDS'][i])=="function") continue; - this.syntax[lang]["keywords_reg_exp"][i]= new RegExp(this.get_regexp( this.load_syntax[lang]['KEYWORDS'][i] ), param); - this.keywords_reg_exp_nb++; - } - } - - if(this.load_syntax[lang]['OPERATORS']){ - var str=""; - var nb=0; - for(var i in this.load_syntax[lang]['OPERATORS']){ - if(typeof(this.load_syntax[lang]['OPERATORS'][i])=="function") continue; - if(nb>0) - str+="|"; - str+=this.get_escaped_regexp(this.load_syntax[lang]['OPERATORS'][i]); - nb++; - } - if(str.length>0) - this.syntax[lang]["operators_reg_exp"]= new RegExp("("+str+")","g"); - } - - if(this.load_syntax[lang]['DELIMITERS']){ - var str=""; - var nb=0; - for(var i in this.load_syntax[lang]['DELIMITERS']){ - if(typeof(this.load_syntax[lang]['DELIMITERS'][i])=="function") continue; - if(nb>0) - str+="|"; - str+=this.get_escaped_regexp(this.load_syntax[lang]['DELIMITERS'][i]); - nb++; - } - if(str.length>0) - this.syntax[lang]["delimiters_reg_exp"]= new RegExp("("+str+")","g"); - } - - - // /(("(\\"|[^"])*"?)|('(\\'|[^'])*'?)|(//(.|\r|\t)*\n)|(/\*(.|\n|\r|\t)*\*/)|(<!--(.|\n|\r|\t)*-->))/gi - var syntax_trace=[]; - - // /("(?:[^"\\]*(\\\\)*(\\"?)?)*("|$))/g - - this.syntax[lang]["quotes"]={}; - var quote_tab= []; - if(this.load_syntax[lang]['QUOTEMARKS']){ - for(var i in this.load_syntax[lang]['QUOTEMARKS']){ - if(typeof(this.load_syntax[lang]['QUOTEMARKS'][i])=="function") continue; - var x=this.get_escaped_regexp(this.load_syntax[lang]['QUOTEMARKS'][i]); - this.syntax[lang]["quotes"][x]=x; - //quote_tab[quote_tab.length]="("+x+"(?:\\\\"+x+"|[^"+x+"])*("+x+"|$))"; - //previous working : quote_tab[quote_tab.length]="("+x+"(?:[^"+x+"\\\\]*(\\\\\\\\)*(\\\\"+x+"?)?)*("+x+"|$))"; - quote_tab[quote_tab.length]="("+ x +"(\\\\.|[^"+ x +"])*(?:"+ x +"|$))"; - - syntax_trace.push(x); - } - } - - this.syntax[lang]["comments"]={}; - if(this.load_syntax[lang]['COMMENT_SINGLE']){ - for(var i in this.load_syntax[lang]['COMMENT_SINGLE']){ - if(typeof(this.load_syntax[lang]['COMMENT_SINGLE'][i])=="function") continue; - var x=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_SINGLE'][i]); - quote_tab[quote_tab.length]="("+x+"(.|\\r|\\t)*(\\n|$))"; - syntax_trace.push(x); - this.syntax[lang]["comments"][x]="\n"; - } - } - // (/\*(.|[\r\n])*?\*/) - if(this.load_syntax[lang]['COMMENT_MULTI']){ - for(var i in this.load_syntax[lang]['COMMENT_MULTI']){ - if(typeof(this.load_syntax[lang]['COMMENT_MULTI'][i])=="function") continue; - var start=this.get_escaped_regexp(i); - var end=this.get_escaped_regexp(this.load_syntax[lang]['COMMENT_MULTI'][i]); - quote_tab[quote_tab.length]="("+start+"(.|\\n|\\r)*?("+end+"|$))"; - syntax_trace.push(start); - syntax_trace.push(end); - this.syntax[lang]["comments"][i]=this.load_syntax[lang]['COMMENT_MULTI'][i]; - } - } - if(quote_tab.length>0) - this.syntax[lang]["comment_or_quote_reg_exp"]= new RegExp("("+quote_tab.join("|")+")","gi"); - - if(syntax_trace.length>0) // /((.|\n)*?)(\\*("|'|\/\*|\*\/|\/\/|$))/g - this.syntax[lang]["syntax_trace_regexp"]= new RegExp("((.|\n)*?)(\\\\*("+ syntax_trace.join("|") +"|$))", "gmi"); - - if(this.load_syntax[lang]['SCRIPT_DELIMITERS']){ - this.syntax[lang]["script_delimiters"]= {}; - for(var i in this.load_syntax[lang]['SCRIPT_DELIMITERS']){ - if(typeof(this.load_syntax[lang]['SCRIPT_DELIMITERS'][i])=="function") continue; - this.syntax[lang]["script_delimiters"][i]= this.load_syntax[lang]['SCRIPT_DELIMITERS']; - } - } - - this.syntax[lang]["custom_regexp"]= {}; - if(this.load_syntax[lang]['REGEXPS']){ - for(var i in this.load_syntax[lang]['REGEXPS']){ - if(typeof(this.load_syntax[lang]['REGEXPS'][i])=="function") continue; - var val= this.load_syntax[lang]['REGEXPS'][i]; - if(!this.syntax[lang]["custom_regexp"][val['execute']]) - this.syntax[lang]["custom_regexp"][val['execute']]= {}; - this.syntax[lang]["custom_regexp"][val['execute']][i]={'regexp' : new RegExp(val['search'], val['modifiers']) - , 'class' : val['class']}; - } - } - - if(this.load_syntax[lang]['STYLES']){ - lang_style[lang]= {}; - for(var i in this.load_syntax[lang]['STYLES']){ - if(typeof(this.load_syntax[lang]['STYLES'][i])=="function") continue; - if(typeof(this.load_syntax[lang]['STYLES'][i]) != "string"){ - for(var j in this.load_syntax[lang]['STYLES'][i]){ - lang_style[lang][j]= this.load_syntax[lang]['STYLES'][i][j]; - } - }else{ - lang_style[lang][i]= this.load_syntax[lang]['STYLES'][i]; - } - } - } - // build style string - var style=""; - for(var i in lang_style[lang]){ - if(lang_style[lang][i].length>0){ - style+= "."+ lang +" ."+ i.toLowerCase() +" span{"+lang_style[lang][i]+"}\n"; - style+= "."+ lang +" ."+ i.toLowerCase() +"{"+lang_style[lang][i]+"}\n"; - } - } - this.syntax[lang]["styles"]=style; - } - } - }; - - editAreaLoader.waiting_loading["reg_syntax.js"]= "loaded"; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/basic.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/basic.js deleted file mode 100644 index 93b578dbf..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/basic.js +++ /dev/null @@ -1,69 +0,0 @@ -editAreaLoader.load_syntax["basic"] = { - 'COMMENT_SINGLE' : {1 : "'", 2 : 'rem'} - ,'COMMENT_MULTI' : { } - ,'QUOTEMARKS' : {1: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'if','then','for','wend','while', - 'else','elseif','select','case','end select', - 'until','next','step','to','end if', 'call' - ] - ,'keywords' : [ - 'sub', 'end sub', 'function', 'end function', 'exit', - 'exit function', 'dim', 'redim', 'shared', 'const', - 'is', 'absolute', 'access', 'any', 'append', 'as', - 'base', 'beep', 'binary', 'bload', 'bsave', 'chain', - 'chdir', 'circle', 'clear', 'close', 'cls', 'color', - 'com', 'common', 'data', 'date', 'declare', 'def', - 'defdbl', 'defint', 'deflng', 'defsng', 'defstr', - 'double', 'draw', 'environ', 'erase', 'error', 'field', - 'files', 'fn', 'get', 'gosub', 'goto', 'integer', 'key', - 'kill', 'let', 'line', 'list', 'locate', 'lock', 'long', - 'lprint', 'lset', 'mkdir', 'name', 'off', 'on', 'open', - 'option', 'out', 'output', 'paint', 'palette', 'pcopy', - 'poke', 'preset', 'print', 'pset', 'put', 'random', - 'randomize', 'read', 'reset', 'restore', 'resume', - 'return', 'rmdir', 'rset', 'run', 'screen', 'seg', - 'shell', 'single', 'sleep', 'sound', 'static', 'stop', - 'strig', 'string', 'swap', 'system', 'time', 'timer', - 'troff', 'tron', 'type', 'unlock', 'using', 'view', - 'wait', 'width', 'window', 'write' - ] - ,'functions' : [ - 'abs', 'asc', 'atn', 'cdbl', 'chr', 'cint', 'clng', - 'cos', 'csng', 'csrlin', 'cvd', 'cvdmbf', 'cvi', 'cvl', - 'cvs', 'cvsmbf', 'eof', 'erdev', 'erl', 'err', 'exp', - 'fileattr', 'fix', 'fre', 'freefile', 'hex', 'inkey', - 'inp', 'input', 'instr', 'int', 'ioctl', 'lbound', - 'lcase', 'left', 'len', 'loc', 'lof', 'log', 'lpos', - 'ltrim', 'mid', 'mkd', 'mkdmbf', 'mki', 'mkl', 'mks', - 'mksmbf', 'oct', 'peek', 'pen', 'play', 'pmap', 'point', - 'pos', 'right', 'rnd', 'rtrim', 'seek', 'sgn', 'sin', - 'space', 'spc', 'sqr', 'stick', 'str', 'tab', 'tan', - 'ubound', 'ucase', 'val', 'varptr', 'varseg' - ] - ,'operators' : [ - 'and', 'eqv', 'imp', 'mod', 'not', 'or', 'xor' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '!', '&' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #99CC00;' - ,'QUOTESMARKS': 'color: #333399;' - ,'KEYWORDS' : { - 'keywords' : 'color: #3366FF;' - ,'functions' : 'color: #0000FF;' - ,'statements' : 'color: #3366FF;' - ,'operators' : 'color: #FF0000;' - } - ,'OPERATORS' : 'color: #FF0000;' - ,'DELIMITERS' : 'color: #0000FF;' - - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/brainfuck.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/brainfuck.js deleted file mode 100644 index 810c3d631..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/brainfuck.js +++ /dev/null @@ -1,44 +0,0 @@ -editAreaLoader.load_syntax["brainfuck"] = { - 'COMMENT_SINGLE' : {} - ,'COMMENT_MULTI' : {} - ,'QUOTEMARKS' : {} - ,'KEYWORD_CASE_SENSITIVE' : true - ,'OPERATORS' :[ - '+', '-' - ] - ,'DELIMITERS' :[ - '[', ']' - ] - ,'REGEXPS' : { - 'bfispis' : { - 'search' : '()(\\.)()' - ,'class' : 'bfispis' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - ,'bfupis' : { - 'search' : '()(\\,)()' - ,'class' : 'bfupis' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - ,'bfmemory' : { - 'search' : '()([<>])()' - ,'class' : 'bfmemory' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'OPERATORS' : 'color: #88AA00;' - ,'DELIMITERS' : 'color: #00C138;' - ,'REGEXPS' : { - 'bfispis' : 'color: #EE0000;' - ,'bfupis' : 'color: #4455ee;' - ,'bfmemory' : 'color: #DD00DD;' - } - } -}; - diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/c.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/c.js deleted file mode 100644 index 31667a0ea..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/c.js +++ /dev/null @@ -1,62 +0,0 @@ -editAreaLoader.load_syntax["c"] = { - 'COMMENT_SINGLE' : {1 : '//'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : true - ,'KEYWORDS' : { - 'constants' : [ - 'NULL', 'false', 'stdin', 'stdout', 'stderr', 'true' - ] - ,'types' : [ - 'FILE', 'auto', 'char', 'const', 'double', - 'extern', 'float', 'inline', 'int', 'long', 'register', - 'short', 'signed', 'size_t', 'static', 'struct', - 'time_t', 'typedef', 'union', 'unsigned', 'void', - 'volatile' - ] - ,'statements' : [ - 'do', 'else', 'enum', 'for', 'goto', 'if', 'sizeof', - 'switch', 'while' - ] - ,'keywords' : [ - 'break', 'case', 'continue', 'default', 'delete', - 'return' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - 'precompiler' : { - 'search' : '()(#[^\r\n]*)()' - ,'class' : 'precompiler' - ,'modifiers' : 'g' - ,'execute' : 'before' - } -/* ,'precompilerstring' : { - 'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])' - ,'class' : 'precompilerstring' - ,'modifiers' : 'g' - ,'execute' : 'before' - }*/ - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'constants' : 'color: #EE0000;' - ,'types' : 'color: #0000EE;' - ,'statements' : 'color: #60CA00;' - ,'keywords' : 'color: #48BDDF;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #0038E1;' - ,'REGEXPS' : { - 'precompiler' : 'color: #009900;' - ,'precompilerstring' : 'color: #994400;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/coldfusion.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/coldfusion.js deleted file mode 100644 index 673e8745e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/coldfusion.js +++ /dev/null @@ -1,119 +0,0 @@ -editAreaLoader.load_syntax["coldfusion"] = { - 'COMMENT_SINGLE' : {1 : '//', 2 : '#'} - ,'COMMENT_MULTI' : {'<!--' : '-->'} - ,'COMMENT_MULTI2' : {'<!---' : '--->'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'include', 'require', 'include_once', 'require_once', - 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', - 'endif', 'switch', 'case', 'endswitch', - 'return', 'break', 'continue' - ] - ,'reserved' : [ - 'AND', 'break', 'case', 'CONTAIN', 'CONTAINS', 'continue', 'default', 'do', - 'DOES', 'else', 'EQ', 'EQUAL', 'EQUALTO', 'EQV', 'FALSE', 'for', 'GE', - 'GREATER', 'GT', 'GTE', 'if', 'IMP', 'in', 'IS', 'LE', 'LESS', 'LT', 'LTE', - 'MOD', 'NEQ', 'NOT', 'OR', 'return', 'switch', 'THAN', 'TO', 'TRUE', 'var', - 'while', 'XOR' - ] - ,'functions' : [ - 'Abs', 'ACos', 'ArrayAppend', 'ArrayAvg', 'ArrayClear', 'ArrayDeleteAt', 'ArrayInsertAt', - 'ArrayIsEmpty', 'ArrayLen', 'ArrayMax', 'ArrayMin', 'ArrayNew', 'ArrayPrepend', 'ArrayResize', - 'ArraySet', 'ArraySort', 'ArraySum', 'ArraySwap', 'ArrayToList', 'Asc', 'ASin', 'Atn', 'AuthenticatedContext', - 'AuthenticatedUser', 'BitAnd', 'BitMaskClear', 'BitMaskRead', 'BitMaskSet', 'BitNot', 'BitOr', - 'BitSHLN', 'BitSHRN', 'BitXor', 'Ceiling', 'Chr', 'CJustify', 'Compare', 'CompareNoCase', 'Cos', - 'CreateDate', 'CreateDateTime', 'CreateODBCDate', 'CreateODBCDateTime', 'CreateODBCTime', - 'CreateTime', 'CreateTimeSpan', 'DateAdd', 'DateCompare', 'DateConvert', 'DateDiff', - 'DateFormat', 'DatePart', 'Day', 'DayOfWeek', 'DayOfWeekAsString', 'DayOfYear', 'DaysInMonth', - 'DaysInYear', 'DE', 'DecimalFormat', 'DecrementValue', 'Decrypt', 'DeleteClientVariable', - 'DirectoryExists', 'DollarFormat', 'Duplicate', 'Encrypt', 'Evaluate', 'Exp', 'ExpandPath', - 'FileExists', 'Find', 'FindNoCase', 'FindOneOf', 'FirstDayOfMonth', 'Fix', 'FormatBaseN', - 'GetBaseTagData', 'GetBaseTagList', 'GetBaseTemplatePath', 'GetClientVariablesList', - 'GetCurrentTemplatePath', 'GetDirectoryFromPath', 'GetException', 'GetFileFromPath', - 'GetFunctionList', 'GetHttpTimeString', 'GetHttpRequestData', 'GetLocale', 'GetMetricData', - 'GetProfileString', 'GetTempDirectory', 'GetTempFile', 'GetTemplatePath', 'GetTickCount', - 'GetTimeZoneInfo', 'GetToken', 'Hash', 'Hour', 'HTMLCodeFormat', 'HTMLEditFormat', 'IIf', - 'IncrementValue', 'InputBaseN', 'Insert', 'Int', 'IsArray', 'IsAuthenticated', 'IsAuthorized', - 'IsBoolean', 'IsBinary', 'IsCustomFunction', 'IsDate', 'IsDebugMode', 'IsDefined', 'IsLeapYear', - 'IsNumeric', 'IsNumericDate', 'IsProtected', 'IsQuery', 'IsSimpleValue', 'IsStruct', 'IsWDDX', - 'JavaCast', 'JSStringFormat', 'LCase', 'Left', 'Len', 'ListAppend', 'ListChangeDelims', - 'ListContains', 'ListContainsNoCase', 'ListDeleteAt', 'ListFind', 'ListFindNoCase', 'ListFirst', - 'ListGetAt', 'ListInsertAt', 'ListLast', 'ListLen', 'ListPrepend', 'ListQualify', 'ListRest', - 'ListSetAt', 'ListSort', 'ListToArray', 'ListValueCount', 'ListValueCountNoCase', 'LJustify', - 'Log', 'Log10', 'LSCurrencyFormat', 'LSDateFormat', 'LSEuroCurrencyFormat', 'LSIsCurrency', - 'LSIsDate', 'LSIsNumeric', 'LSNumberFormat', 'LSParseCurrency', 'LSParseDateTime', 'LSParseNumber', - 'LSTimeFormat', 'LTrim', 'Max', 'Mid', 'Min', 'Minute', 'Month', 'MonthAsString', 'Now', 'NumberFormat', - 'ParagraphFormat', 'ParameterExists', 'ParseDateTime', 'Pi', 'PreserveSingleQuotes', 'Quarter', - 'QueryAddRow', 'QueryNew', 'QuerySetCell', 'QuotedValueList', 'Rand', 'Randomize', 'RandRange', - 'REFind', 'REFindNoCase', 'RemoveChars', 'RepeatString', 'Replace', 'ReplaceList', 'ReplaceNoCase', - 'REReplace', 'REReplaceNoCase', 'Reverse', 'Right', 'RJustify', 'Round', 'RTrim', 'Second', 'SetLocale', - 'SetProfileString', 'SetVariable', 'Sgn', 'Sin', 'SpanExcluding', 'SpanIncluding', 'Sqr', 'StripCR', - 'StructAppend', 'StructClear', 'StructCopy', 'StructCount', 'StructDelete', 'StructFind', 'StructFindKey', - 'StructFindValue', 'StructGet', 'StructInsert', 'StructIsEmpty', 'StructKeyArray', 'StructKeyExists', - 'StructKeyList', 'StructNew', 'StructSort', 'StructUpdate', 'Tan', 'TimeFormat', 'ToBase64', 'ToBinary', - 'ToString', 'Trim', 'UCase', 'URLDecode', 'URLEncodedFormat', 'Val', 'ValueList', 'Week', 'WriteOutput', - 'XMLFormat', 'Year', 'YesNoFormat' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '%', '!', '&&', '||' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - 'doctype' : { - 'search' : '()(<!DOCTYPE[^>]*>)()' - ,'class' : 'doctype' - ,'modifiers' : '' - ,'execute' : 'before' // before or after - } - ,'cftags' : { - 'search' : '(<)(/cf[a-z][^ \r\n\t>]*)([^>]*>)' - ,'class' : 'cftags' - ,'modifiers' : 'gi' - ,'execute' : 'before' // before or after - } - ,'cftags2' : { - 'search' : '(<)(cf[a-z][^ \r\n\t>]*)([^>]*>)' - ,'class' : 'cftags2' - ,'modifiers' : 'gi' - ,'execute' : 'before' // before or after - } - ,'tags' : { - 'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)' - ,'class' : 'tags' - ,'modifiers' : 'gi' - ,'execute' : 'before' // before or after - } - ,'attributes' : { - 'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)' - ,'class' : 'attributes' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'reserved' : 'color: #48BDDF;' - ,'functions' : 'color: #0000FF;' - ,'statements' : 'color: #60CA00;' - } - ,'OPERATORS' : 'color: #E775F0;' - ,'DELIMITERS' : '' - ,'REGEXPS' : { - 'attributes': 'color: #990033;' - ,'cftags': 'color: #990033;' - ,'cftags2': 'color: #990033;' - ,'tags': 'color: #000099;' - ,'doctype': 'color: #8DCFB5;' - ,'test': 'color: #00FF00;' - } - } -}; - - diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/cpp.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/cpp.js deleted file mode 100644 index 74826d327..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/cpp.js +++ /dev/null @@ -1,65 +0,0 @@ -editAreaLoader.load_syntax["cpp"] = { - 'COMMENT_SINGLE' : {1 : '//'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : true - ,'KEYWORDS' : { - 'constants' : [ - 'NULL', 'false', 'std', 'stdin', 'stdout', 'stderr', - 'true' - ] - ,'types' : [ - 'FILE', 'auto', 'char', 'class', 'const', 'double', - 'extern', 'float', 'friend', 'inline', 'int', - 'iterator', 'long', 'map', 'operator', 'queue', - 'register', 'short', 'signed', 'size_t', 'stack', - 'static', 'string', 'struct', 'time_t', 'typedef', - 'union', 'unsigned', 'vector', 'void', 'volatile' - ] - ,'statements' : [ - 'catch', 'do', 'else', 'enum', 'for', 'goto', 'if', - 'sizeof', 'switch', 'this', 'throw', 'try', 'while' - ] - ,'keywords' : [ - 'break', 'case', 'continue', 'default', 'delete', - 'namespace', 'new', 'private', 'protected', 'public', - 'return', 'using' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - 'precompiler' : { - 'search' : '()(#[^\r\n]*)()' - ,'class' : 'precompiler' - ,'modifiers' : 'g' - ,'execute' : 'before' - } -/* ,'precompilerstring' : { - 'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])' - ,'class' : 'precompilerstring' - ,'modifiers' : 'g' - ,'execute' : 'before' - }*/ - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'constants' : 'color: #EE0000;' - ,'types' : 'color: #0000EE;' - ,'statements' : 'color: #60CA00;' - ,'keywords' : 'color: #48BDDF;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #0038E1;' - ,'REGEXPS' : { - 'precompiler' : 'color: #009900;' - ,'precompilerstring' : 'color: #994400;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/css.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/css.js deleted file mode 100644 index 8dded1b06..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/css.js +++ /dev/null @@ -1,84 +0,0 @@ -editAreaLoader.load_syntax["css"] = { - 'COMMENT_SINGLE' : {1 : '@'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : ['"', "'"] - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'attributes' : [ - 'aqua', 'azimuth', 'background-attachment', 'background-color', - 'background-image', 'background-position', 'background-repeat', - 'background', 'border-bottom-color', 'border-bottom-style', - 'border-bottom-width', 'border-left-color', 'border-left-style', - 'border-left-width', 'border-right', 'border-right-color', - 'border-right-style', 'border-right-width', 'border-top-color', - 'border-top-style', 'border-top-width','border-bottom', 'border-collapse', - 'border-left', 'border-width', 'border-color', 'border-spacing', - 'border-style', 'border-top', 'border', 'caption-side', - 'clear', 'clip', 'color', 'content', 'counter-increment', 'counter-reset', - 'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display', - 'elevation', 'empty-cells', 'float', 'font-family', 'font-size', - 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', - 'font-weight', 'font', 'height', 'letter-spacing', 'line-height', - 'list-style', 'list-style-image', 'list-style-position', 'list-style-type', - 'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'margin', - 'marker-offset', 'marks', 'max-height', 'max-width', 'min-height', - 'min-width', 'opacity', 'orphans', 'outline', 'outline-color', 'outline-style', - 'outline-width', 'overflow', 'padding-bottom', 'padding-left', - 'padding-right', 'padding-top', 'padding', 'page', 'page-break-after', - 'page-break-before', 'page-break-inside', 'pause-after', 'pause-before', - 'pause', 'pitch', 'pitch-range', 'play-during', 'position', 'quotes', - 'richness', 'right', 'size', 'speak-header', 'speak-numeral', 'speak-punctuation', - 'speak', 'speech-rate', 'stress', 'table-layout', 'text-align', 'text-decoration', - 'text-indent', 'text-shadow', 'text-transform', 'top', 'unicode-bidi', - 'vertical-align', 'visibility', 'voice-family', 'volume', 'white-space', 'widows', - 'width', 'word-spacing', 'z-index', 'bottom', 'left' - ] - ,'values' : [ - 'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 'avoid', - 'baseline', 'behind', 'below', 'bidi-override', 'black', 'blue', 'blink', 'block', 'bold', 'bolder', 'both', - 'capitalize', 'center-left', 'center-right', 'center', 'circle', 'cjk-ideographic', - 'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 'crosshair', 'cross', 'cursive', - 'dashed', 'decimal-leading-zero', 'decimal', 'default', 'digits', 'disc', 'dotted', 'double', - 'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 'expanded', - 'fantasy', 'far-left', 'far-right', 'faster', 'fast', 'fixed', 'fuchsia', - 'georgian', 'gray', 'green', 'groove', 'hebrew', 'help', 'hidden', 'hide', 'higher', - 'high', 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 'inline', - 'inset', 'inside', 'invert', 'italic', 'justify', 'katakana-iroha', 'katakana', - 'landscape', 'larger', 'large', 'left-side', 'leftwards', 'level', 'lighter', 'lime', 'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', 'lower-roman', 'lowercase', 'ltr', 'lower', 'low', - 'maroon', 'medium', 'message-box', 'middle', 'mix', 'monospace', - 'n-resize', 'narrower', 'navy', 'ne-resize', 'no-close-quote', 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 'nw-resize', - 'oblique', 'olive', 'once', 'open-quote', 'outset', 'outside', 'overline', - 'pointer', 'portrait', 'purple', 'px', - 'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 'ridge', 'right-side', 'rightwards', - 's-resize', 'sans-serif', 'scroll', 'se-resize', 'semi-condensed', 'semi-expanded', 'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower', 'small-caps', 'small-caption', 'smaller', 'soft', 'solid', 'spell-out', 'square', - 'static', 'status-bar', 'super', 'sw-resize', - 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row', 'table-row-group', 'teal', 'text', 'text-bottom', 'text-top', 'thick', 'thin', 'transparent', - 'ultra-condensed', 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 'upper-roman', 'uppercase', 'url', - 'visible', - 'w-resize', 'wait', 'white', 'wider', - 'x-fast', 'x-high', 'x-large', 'x-loud', 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', - 'yellow', 'yes' - ] - ,'specials' : [ - 'important' - ] - } - ,'OPERATORS' :[ - ':', ';', '!', '.', '#' - ] - ,'DELIMITERS' :[ - '{', '}' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'attributes' : 'color: #48BDDF;' - ,'values' : 'color: #2B60FF;' - ,'specials' : 'color: #FF0000;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #60CA00;' - - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/html.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/html.js deleted file mode 100644 index d508364a7..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/html.js +++ /dev/null @@ -1,50 +0,0 @@ -/* -* last update: 2006-08-24 -*/ - -editAreaLoader.load_syntax["html"] = { - 'COMMENT_SINGLE' : {} - ,'COMMENT_MULTI' : {'<!--' : '-->'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - } - ,'OPERATORS' :[ - ] - ,'DELIMITERS' :[ - ] - ,'REGEXPS' : { - 'doctype' : { - 'search' : '()(<!DOCTYPE[^>]*>)()' - ,'class' : 'doctype' - ,'modifiers' : '' - ,'execute' : 'before' // before or after - } - ,'tags' : { - 'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)' - ,'class' : 'tags' - ,'modifiers' : 'gi' - ,'execute' : 'before' // before or after - } - ,'attributes' : { - 'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)' - ,'class' : 'attributes' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - } - ,'OPERATORS' : 'color: #E775F0;' - ,'DELIMITERS' : '' - ,'REGEXPS' : { - 'attributes': 'color: #B1AC41;' - ,'tags': 'color: #E62253;' - ,'doctype': 'color: #8DCFB5;' - ,'test': 'color: #00FF00;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/java.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/java.js deleted file mode 100644 index bf48b5334..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/java.js +++ /dev/null @@ -1,56 +0,0 @@ -editAreaLoader.load_syntax["java"] = { -'COMMENT_SINGLE': { 1: '//', 2: '@' } - , 'COMMENT_MULTI': { '/*': '*/' } - , 'QUOTEMARKS': { 1: "'", 2: '"' } - , 'KEYWORD_CASE_SENSITIVE': true - , 'KEYWORDS': { - 'constants': [ - 'null', 'false', 'true' - ] - , 'types': [ - 'String', 'int', 'short', 'long', 'char', 'double', 'byte', - 'float', 'static', 'void', 'private', 'boolean', 'protected', - 'public', 'const', 'class', 'final', 'abstract', 'volatile', - 'enum', 'transient', 'interface' - ] - , 'statements': [ - 'this', 'extends', 'if', 'do', 'while', 'try', 'catch', 'finally', - 'throw', 'throws', 'else', 'for', 'switch', 'continue', 'implements', - 'break', 'case', 'default', 'goto' - ] - , 'keywords': [ - 'new', 'return', 'import', 'native', 'super', 'package', 'assert', 'synchronized', - 'instanceof', 'strictfp' - ] - } - , 'OPERATORS': [ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&' - ] - , 'DELIMITERS': [ - '(', ')', '[', ']', '{', '}' - ] - , 'REGEXPS': { - 'precompiler': { - 'search': '()(#[^\r\n]*)()' - , 'class': 'precompiler' - , 'modifiers': 'g' - , 'execute': 'before' - } - } - , 'STYLES': { - 'COMMENTS': 'color: #AAAAAA;' - , 'QUOTESMARKS': 'color: #6381F8;' - , 'KEYWORDS': { - 'constants': 'color: #EE0000;' - , 'types': 'color: #0000EE;' - , 'statements': 'color: #60CA00;' - , 'keywords': 'color: #48BDDF;' - } - , 'OPERATORS': 'color: #FF00FF;' - , 'DELIMITERS': 'color: #0038E1;' - , 'REGEXPS': { - 'precompiler': 'color: #009900;' - , 'precompilerstring': 'color: #994400;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/js.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/js.js deleted file mode 100644 index 2799b703e..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/js.js +++ /dev/null @@ -1,93 +0,0 @@ -editAreaLoader.load_syntax["js"] = { - 'COMMENT_SINGLE' : {1 : '//'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'as', 'break', 'case', 'catch', 'continue', 'decodeURI', 'delete', 'do', - 'else', 'encodeURI', 'eval', 'finally', 'for', 'if', 'in', 'is', 'item', - 'instanceof', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'void', - 'while', 'write', 'with' - ] - ,'keywords' : [ - 'class', 'const', 'default', 'debugger', 'export', 'extends', 'false', - 'function', 'import', 'namespace', 'new', 'null', 'package', 'private', - 'protected', 'public', 'super', 'true', 'use', 'var', 'window', 'document', - // the list below must be sorted and checked (if it is a keywords or a function and if it is not present twice - 'Link ', 'outerHeight ', 'Anchor', 'FileUpload', - 'location', 'outerWidth', 'Select', 'Area', 'find', 'Location', 'Packages', 'self', - 'arguments', 'locationbar', 'pageXoffset', 'Form', - 'Math', 'pageYoffset', 'setTimeout', 'assign', 'Frame', 'menubar', 'parent', 'status', - 'blur', 'frames', 'MimeType', 'parseFloat', 'statusbar', 'Boolean', 'Function', 'moveBy', - 'parseInt', 'stop', 'Button', 'getClass', 'moveTo', 'Password', 'String', 'callee', 'Hidden', - 'name', 'personalbar', 'Submit', 'caller', 'history', 'NaN', 'Plugin', 'sun', 'captureEvents', - 'History', 'navigate', 'print', 'taint', 'Checkbox', 'home', 'navigator', 'prompt', 'Text', - 'Image', 'Navigator', 'prototype', 'Textarea', 'clearTimeout', 'Infinity', - 'netscape', 'Radio', 'toolbar', 'close', 'innerHeight', 'Number', 'ref', 'top', 'closed', - 'innerWidth', 'Object', 'RegExp', 'toString', 'confirm', 'isFinite', 'onBlur', 'releaseEvents', - 'unescape', 'constructor', 'isNan', 'onError', 'Reset', 'untaint', 'Date', 'java', 'onFocus', - 'resizeBy', 'unwatch', 'defaultStatus', 'JavaArray', 'onLoad', 'resizeTo', 'valueOf', 'document', - 'JavaClass', 'onUnload', 'routeEvent', 'watch', 'Document', 'JavaObject', 'open', 'scroll', 'window', - 'Element', 'JavaPackage', 'opener', 'scrollbars', 'Window', 'escape', 'length', 'Option', 'scrollBy' - ] - ,'functions' : [ - // common functions for Window object - 'alert', 'Array', 'back', 'blur', 'clearInterval', 'close', 'confirm', 'eval ', 'focus', 'forward', 'home', - 'name', 'navigate', 'onblur', 'onerror', 'onfocus', 'onload', 'onmove', - 'onresize', 'onunload', 'open', 'print', 'prompt', 'scroll', 'scrollTo', 'setInterval', 'status', - 'stop' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'statements' : 'color: #60CA00;' - ,'keywords' : 'color: #48BDDF;' - ,'functions' : 'color: #2B60FF;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #0038E1;' - - } - ,'AUTO_COMPLETION' : { - "default": { // the name of this definition group. It's posisble to have different rules inside the same definition file - "REGEXP": { "before_word": "[^a-zA-Z0-9_]|^" // \\s|\\.| - ,"possible_words_letters": "[a-zA-Z0-9_]+" - ,"letter_after_word_must_match": "[^a-zA-Z0-9_]|$" - ,"prefix_separator": "\\." - } - ,"CASE_SENSITIVE": true - ,"MAX_TEXT_LENGTH": 100 // the maximum length of the text being analyzed before the cursor position - ,"KEYWORDS": { - '': [ // the prefix of thoses items - /** - * 0 : the keyword the user is typing - * 1 : (optionnal) the string inserted in code ("{@}" being the new position of the cursor, "§" beeing the equivalent to the value the typed string indicated if the previous ) - * If empty the keyword will be displayed - * 2 : (optionnal) the text that appear in the suggestion box (if empty, the string to insert will be displayed) - */ - ['Array', '§()', ''] - ,['alert', '§({@})', 'alert(String message)'] - ,['document'] - ,['window'] - ] - ,'window' : [ - ['location'] - ,['document'] - ,['scrollTo', 'scrollTo({@})', 'scrollTo(Int x,Int y)'] - ] - ,'location' : [ - ['href'] - ] - } - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/pas.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/pas.js deleted file mode 100644 index 7c1bc3c17..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/pas.js +++ /dev/null @@ -1,82 +0,0 @@ -editAreaLoader.load_syntax["pas"] = { - 'COMMENT_SINGLE' : {} - ,'COMMENT_MULTI' : {'{' : '}', '(*':'*)'} - ,'QUOTEMARKS' : {1: '"', 2: "'"} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'constants' : [ - 'Blink', 'Black', 'Blue', 'Green', 'Cyan', 'Red', - 'Magenta', 'Brown', 'LightGray', 'DarkGray', - 'LightBlue', 'LightGreen', 'LightCyan', 'LightRed', - 'LightMagenta', 'Yellow', 'White', 'MaxSIntValue', - 'MaxUIntValue', 'maxint', 'maxLongint', 'maxSmallint', - 'erroraddr', 'errorcode', 'LineEnding' - ] - ,'keywords' : [ - 'in', 'or', 'div', 'mod', 'and', 'shl', 'shr', 'xor', - 'pow', 'is', 'not','Absolute', 'And_then', 'Array', - 'Begin', 'Bindable', 'Case', 'Const', 'Do', 'Downto', - 'Else', 'End', 'Export', 'File', 'For', 'Function', - 'Goto', 'If', 'Import', 'Implementation', 'Inherited', - 'Inline', 'Interface', 'Label', 'Module', 'Nil', - 'Object', 'Of', 'Only', 'Operator', 'Or_else', - 'Otherwise', 'Packed', 'Procedure', 'Program', - 'Protected', 'Qualified', 'Record', 'Repeat', - 'Restricted', 'Set', 'Then', 'To', 'Type', 'Unit', - 'Until', 'Uses', 'Value', 'Var', 'Virtual', 'While', - 'With' - ] - ,'functions' : [ - 'Abs', 'Addr', 'Append', 'Arctan', 'Assert', 'Assign', - 'Assigned', 'BinStr', 'Blockread', 'Blockwrite', - 'Break', 'Chdir', 'Chr', 'Close', 'CompareByte', - 'CompareChar', 'CompareDWord', 'CompareWord', 'Concat', - 'Continue', 'Copy', 'Cos', 'CSeg', 'Dec', 'Delete', - 'Dispose', 'DSeg', 'Eof', 'Eoln', 'Erase', 'Exclude', - 'Exit', 'Exp', 'Filepos', 'Filesize', 'FillByte', - 'Fillchar', 'FillDWord', 'Fillword', 'Flush', 'Frac', - 'Freemem', 'Getdir', 'Getmem', 'GetMemoryManager', - 'Halt', 'HexStr', 'Hi', 'High', 'Inc', 'Include', - 'IndexByte', 'IndexChar', 'IndexDWord', 'IndexWord', - 'Insert', 'IsMemoryManagerSet', 'Int', 'IOresult', - 'Length', 'Ln', 'Lo', 'LongJmp', 'Low', 'Lowercase', - 'Mark', 'Maxavail', 'Memavail', 'Mkdir', 'Move', - 'MoveChar0', 'New', 'Odd', 'OctStr', 'Ofs', 'Ord', - 'Paramcount', 'Paramstr', 'Pi', 'Pos', 'Power', 'Pred', - 'Ptr', 'Random', 'Randomize', 'Read', 'Readln', - 'Real2Double', 'Release', 'Rename', 'Reset', 'Rewrite', - 'Rmdir', 'Round', 'Runerror', 'Seek', 'SeekEof', - 'SeekEoln', 'Seg', 'SetMemoryManager', 'SetJmp', - 'SetLength', 'SetString', 'SetTextBuf', 'Sin', 'SizeOf', - 'Sptr', 'Sqr', 'Sqrt', 'SSeg', 'Str', 'StringOfChar', - 'Succ', 'Swap', 'Trunc', 'Truncate', 'Upcase', 'Val', - 'Write', 'WriteLn' - ] - ,'types' : [ - 'Integer', 'Shortint', 'SmallInt', 'Longint', - 'Longword', 'Int64', 'Byte', 'Word', 'Cardinal', - 'QWord', 'Boolean', 'ByteBool', 'LongBool', 'Char', - 'Real', 'Single', 'Double', 'Extended', 'Comp', - 'String', 'ShortString', 'AnsiString', 'PChar' - ] - } - ,'OPERATORS' :[ - '@', '*', '+', '-', '/', '^', ':=', '<', '=', '>' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - 'specials' : 'color: #EE0000;' - ,'constants' : 'color: #654321;' - ,'keywords' : 'color: #48BDDF;' - ,'functions' : 'color: #449922;' - ,'types' : 'color: #2B60FF;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #60CA00;' - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/perl.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/perl.js deleted file mode 100644 index b63e951cd..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/perl.js +++ /dev/null @@ -1,88 +0,0 @@ -/*************************************************************************** - * (c) 2008 - file created by Christoph Pinkel, MTC Infomedia OHG. - * - * You may choose any license of the current release or any future release - * of editarea to use, modify and/or redistribute this file. - * - * This language specification file supports for syntax checking on - * a large subset of Perl 5.x. - * The basic common syntax of Perl is fully supported, but as for - * the highlighting of built-in operations, it's mainly designed - * to support for hightlighting Perl code in a Safe environment (compartment) - * as used by CoMaNet for evaluation of administrative scripts. This Safe - * compartment basically allows for all of Opcode's :default operations, - * but little others. See http://perldoc.perl.org/Opcode.html to learn - * more. - ***************************************************************************/ - -editAreaLoader.load_syntax["perl"] = { - - 'COMMENT_SINGLE' : {1 : '#'}, - 'QUOTEMARKS' : {1: "'", 2: '"'}, - 'KEYWORD_CASE_SENSITIVE' : true, - 'KEYWORDS' : - { - 'core' : - [ "if", "else", "elsif", "while", "for", "each", "foreach", - "next", "last", "goto", "exists", "delete", "undef", - "my", "our", "local", "use", "require", "package", "keys", "values", - "sub", "bless", "ref", "return" ], - 'functions' : - [ - //from :base_core - "int", "hex", "oct", "abs", "substr", "vec", "study", "pos", - "length", "index", "rindex", "ord", "chr", "ucfirst", "lcfirst", - "uc", "lc", "quotemeta", "chop", "chomp", "split", "list", "splice", - "push", "pop", "shift", "unshift", "reverse", "and", "or", "dor", - "xor", "warn", "die", "prototype", - //from :base_mem - "concat", "repeat", "join", "range", - //none from :base_loop, as we'll see them as basic statements... - //from :base_orig - "sprintf", "crypt", "tie", "untie", "select", "localtime", "gmtime", - //others - "print", "open", "close" - ] - }, - 'OPERATORS' : - [ '+', '-', '/', '*', '=', '<', '>', '!', '||', '.', '&&', - ' eq ', ' ne ', '=~' ], - 'DELIMITERS' : - [ '(', ')', '[', ']', '{', '}' ], - 'REGEXPS' : - { - 'packagedecl' : { 'search': '(package )([^ \r\n\t#;]*)()', - 'class' : 'scopingnames', - 'modifiers' : 'g', 'execute' : 'before' }, - 'subdecl' : { 'search': '(sub )([^ \r\n\t#]*)()', - 'class' : 'scopingnames', - 'modifiers' : 'g', 'execute' : 'before' }, - 'scalars' : { 'search': '()(\\\$[a-zA-Z0-9_:]*)()', - 'class' : 'vars', - 'modifiers' : 'g', 'execute' : 'after' }, - 'arrays' : { 'search': '()(@[a-zA-Z0-9_:]*)()', - 'class' : 'vars', - 'modifiers' : 'g', 'execute' : 'after' }, - 'hashs' : { 'search': '()(%[a-zA-Z0-9_:]*)()', - 'class' : 'vars', - 'modifiers' : 'g', 'execute' : 'after' }, - }, - - 'STYLES' : - { - 'COMMENTS': 'color: #AAAAAA;', - 'QUOTESMARKS': 'color: #DC0000;', - 'KEYWORDS' : - { - 'core' : 'color: #8aca00;', - 'functions' : 'color: #2B60FF;' - }, - 'OPERATORS' : 'color: #8aca00;', - 'DELIMITERS' : 'color: #0038E1;', - 'REGEXPS': - { - 'scopingnames' : 'color: #ff0000;', - 'vars' : 'color: #00aaaa;', - } - } //'STYLES' -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/php.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/php.js deleted file mode 100644 index 5a5cff97c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/php.js +++ /dev/null @@ -1,156 +0,0 @@ -editAreaLoader.load_syntax["php"] = { - 'COMMENT_SINGLE' : {1 : '//', 2 : '#'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'include', 'require', 'include_once', 'require_once', - 'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile', - 'endif', 'switch', 'case', 'endswitch', - 'return', 'break', 'continue' - ] - ,'reserved' : [ - '_GET', '_POST', '_SESSION', '_SERVER', '_FILES', '_ENV', '_COOKIE', '_REQUEST', - 'null', '__LINE__', '__FILE__', - 'false', '<?php', '?>', '<?', - '<script language', '</script>', - 'true', 'var', 'default', - 'function', 'class', 'new', '&new', 'this', - '__FUNCTION__', '__CLASS__', '__METHOD__', 'PHP_VERSION', - 'PHP_OS', 'DEFAULT_INCLUDE_PATH', 'PEAR_INSTALL_DIR', 'PEAR_EXTENSION_DIR', - 'PHP_EXTENSION_DIR', 'PHP_BINDIR', 'PHP_LIBDIR', 'PHP_DATADIR', 'PHP_SYSCONFDIR', - 'PHP_LOCALSTATEDIR', 'PHP_CONFIG_FILE_PATH', 'PHP_OUTPUT_HANDLER_START', 'PHP_OUTPUT_HANDLER_CONT', - 'PHP_OUTPUT_HANDLER_END', 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', - 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', - 'E_USER_WARNING', 'E_USER_NOTICE', 'E_ALL' - - ] - ,'functions' : [ - 'func_num_args', 'func_get_arg', 'func_get_args', 'strlen', 'strcmp', 'strncmp', 'strcasecmp', 'strncasecmp', 'each', 'error_reporting', 'define', 'defined', - 'trigger_error', 'user_error', 'set_error_handler', 'restore_error_handler', 'get_declared_classes', 'get_loaded_extensions', - 'extension_loaded', 'get_extension_funcs', 'debug_backtrace', - 'constant', 'bin2hex', 'sleep', 'usleep', 'time', 'mktime', 'gmmktime', 'strftime', 'gmstrftime', 'strtotime', 'date', 'gmdate', 'getdate', 'localtime', 'checkdate', 'flush', 'wordwrap', 'htmlspecialchars', 'htmlentities', 'html_entity_decode', 'md5', 'md5_file', 'crc32', 'getimagesize', 'image_type_to_mime_type', 'phpinfo', 'phpversion', 'phpcredits', 'strnatcmp', 'strnatcasecmp', 'substr_count', 'strspn', 'strcspn', 'strtok', 'strtoupper', 'strtolower', 'strpos', 'strrpos', 'strrev', 'hebrev', 'hebrevc', 'nl2br', 'basename', 'dirname', 'pathinfo', 'stripslashes', 'stripcslashes', 'strstr', 'stristr', 'strrchr', 'str_shuffle', 'str_word_count', 'strcoll', 'substr', 'substr_replace', 'quotemeta', 'ucfirst', 'ucwords', 'strtr', 'addslashes', 'addcslashes', 'rtrim', 'str_replace', 'str_repeat', 'count_chars', 'chunk_split', 'trim', 'ltrim', 'strip_tags', 'similar_text', 'explode', 'implode', 'setlocale', 'localeconv', - 'parse_str', 'str_pad', 'chop', 'strchr', 'sprintf', 'printf', 'vprintf', 'vsprintf', 'sscanf', 'fscanf', 'parse_url', 'urlencode', 'urldecode', 'rawurlencode', 'rawurldecode', 'readlink', 'linkinfo', 'link', 'unlink', 'exec', 'system', 'escapeshellcmd', 'escapeshellarg', 'passthru', 'shell_exec', 'proc_open', 'proc_close', 'rand', 'srand', 'getrandmax', 'mt_rand', 'mt_srand', 'mt_getrandmax', 'base64_decode', 'base64_encode', 'abs', 'ceil', 'floor', 'round', 'is_finite', 'is_nan', 'is_infinite', 'bindec', 'hexdec', 'octdec', 'decbin', 'decoct', 'dechex', 'base_convert', 'number_format', 'fmod', 'ip2long', 'long2ip', 'getenv', 'putenv', 'getopt', 'microtime', 'gettimeofday', 'getrusage', 'uniqid', 'quoted_printable_decode', 'set_time_limit', 'get_cfg_var', 'magic_quotes_runtime', 'set_magic_quotes_runtime', 'get_magic_quotes_gpc', 'get_magic_quotes_runtime', - 'import_request_variables', 'error_log', 'serialize', 'unserialize', 'memory_get_usage', 'var_dump', 'var_export', 'debug_zval_dump', 'print_r','highlight_file', 'show_source', 'highlight_string', 'ini_get', 'ini_get_all', 'ini_set', 'ini_alter', 'ini_restore', 'get_include_path', 'set_include_path', 'restore_include_path', 'setcookie', 'header', 'headers_sent', 'connection_aborted', 'connection_status', 'ignore_user_abort', 'parse_ini_file', 'is_uploaded_file', 'move_uploaded_file', 'intval', 'floatval', 'doubleval', 'strval', 'gettype', 'settype', 'is_null', 'is_resource', 'is_bool', 'is_long', 'is_float', 'is_int', 'is_integer', 'is_double', 'is_real', 'is_numeric', 'is_string', 'is_array', 'is_object', 'is_scalar', - 'ereg', 'ereg_replace', 'eregi', 'eregi_replace', 'split', 'spliti', 'join', 'sql_regcase', 'dl', 'pclose', 'popen', 'readfile', 'rewind', 'rmdir', 'umask', 'fclose', 'feof', 'fgetc', 'fgets', 'fgetss', 'fread', 'fopen', 'fpassthru', 'ftruncate', 'fstat', 'fseek', 'ftell', 'fflush', 'fwrite', 'fputs', 'mkdir', 'rename', 'copy', 'tempnam', 'tmpfile', 'file', 'file_get_contents', 'stream_select', 'stream_context_create', 'stream_context_set_params', 'stream_context_set_option', 'stream_context_get_options', 'stream_filter_prepend', 'stream_filter_append', 'fgetcsv', 'flock', 'get_meta_tags', 'stream_set_write_buffer', 'set_file_buffer', 'set_socket_blocking', 'stream_set_blocking', 'socket_set_blocking', 'stream_get_meta_data', 'stream_register_wrapper', 'stream_wrapper_register', 'stream_set_timeout', 'socket_set_timeout', 'socket_get_status', 'realpath', 'fnmatch', 'fsockopen', 'pfsockopen', 'pack', 'unpack', 'get_browser', 'crypt', 'opendir', 'closedir', 'chdir', 'getcwd', 'rewinddir', 'readdir', 'dir', 'glob', 'fileatime', 'filectime', 'filegroup', 'fileinode', 'filemtime', 'fileowner', 'fileperms', 'filesize', 'filetype', 'file_exists', 'is_writable', 'is_writeable', 'is_readable', 'is_executable', 'is_file', 'is_dir', 'is_link', 'stat', 'lstat', 'chown', - 'touch', 'clearstatcache', 'mail', 'ob_start', 'ob_flush', 'ob_clean', 'ob_end_flush', 'ob_end_clean', 'ob_get_flush', 'ob_get_clean', 'ob_get_length', 'ob_get_level', 'ob_get_status', 'ob_get_contents', 'ob_implicit_flush', 'ob_list_handlers', 'ksort', 'krsort', 'natsort', 'natcasesort', 'asort', 'arsort', 'sort', 'rsort', 'usort', 'uasort', 'uksort', 'shuffle', 'array_walk', 'count', 'end', 'prev', 'next', 'reset', 'current', 'key', 'min', 'max', 'in_array', 'array_search', 'extract', 'compact', 'array_fill', 'range', 'array_multisort', 'array_push', 'array_pop', 'array_shift', 'array_unshift', 'array_splice', 'array_slice', 'array_merge', 'array_merge_recursive', 'array_keys', 'array_values', 'array_count_values', 'array_reverse', 'array_reduce', 'array_pad', 'array_flip', 'array_change_key_case', 'array_rand', 'array_unique', 'array_intersect', 'array_intersect_assoc', 'array_diff', 'array_diff_assoc', 'array_sum', 'array_filter', 'array_map', 'array_chunk', 'array_key_exists', 'pos', 'sizeof', 'key_exists', 'assert', 'assert_options', 'version_compare', 'ftok', 'str_rot13', 'aggregate', - 'session_name', 'session_module_name', 'session_save_path', 'session_id', 'session_regenerate_id', 'session_decode', 'session_register', 'session_unregister', 'session_is_registered', 'session_encode', - 'session_start', 'session_destroy', 'session_unset', 'session_set_save_handler', 'session_cache_limiter', 'session_cache_expire', 'session_set_cookie_params', 'session_get_cookie_params', 'session_write_close', 'preg_match', 'preg_match_all', 'preg_replace', 'preg_replace_callback', 'preg_split', 'preg_quote', 'preg_grep', 'overload', 'ctype_alnum', 'ctype_alpha', 'ctype_cntrl', 'ctype_digit', 'ctype_lower', 'ctype_graph', 'ctype_print', 'ctype_punct', 'ctype_space', 'ctype_upper', 'ctype_xdigit', 'virtual', 'apache_request_headers', 'apache_note', 'apache_lookup_uri', 'apache_child_terminate', 'apache_setenv', 'apache_response_headers', 'apache_get_version', 'getallheaders', 'mysql_connect', 'mysql_pconnect', 'mysql_close', 'mysql_select_db', 'mysql_create_db', 'mysql_drop_db', 'mysql_query', 'mysql_unbuffered_query', 'mysql_db_query', 'mysql_list_dbs', 'mysql_list_tables', 'mysql_list_fields', 'mysql_list_processes', 'mysql_error', 'mysql_errno', 'mysql_affected_rows', 'mysql_insert_id', 'mysql_result', 'mysql_num_rows', 'mysql_num_fields', 'mysql_fetch_row', 'mysql_fetch_array', 'mysql_fetch_assoc', 'mysql_fetch_object', 'mysql_data_seek', 'mysql_fetch_lengths', 'mysql_fetch_field', 'mysql_field_seek', 'mysql_free_result', 'mysql_field_name', 'mysql_field_table', 'mysql_field_len', 'mysql_field_type', 'mysql_field_flags', 'mysql_escape_string', 'mysql_real_escape_string', 'mysql_stat', - 'mysql_thread_id', 'mysql_client_encoding', 'mysql_get_client_info', 'mysql_get_host_info', 'mysql_get_proto_info', 'mysql_get_server_info', 'mysql_info', 'mysql', 'mysql_fieldname', 'mysql_fieldtable', 'mysql_fieldlen', 'mysql_fieldtype', 'mysql_fieldflags', 'mysql_selectdb', 'mysql_createdb', 'mysql_dropdb', 'mysql_freeresult', 'mysql_numfields', 'mysql_numrows', 'mysql_listdbs', 'mysql_listtables', 'mysql_listfields', 'mysql_db_name', 'mysql_dbname', 'mysql_tablename', 'mysql_table_name', 'pg_connect', 'pg_pconnect', 'pg_close', 'pg_connection_status', 'pg_connection_busy', 'pg_connection_reset', 'pg_host', 'pg_dbname', 'pg_port', 'pg_tty', 'pg_options', 'pg_ping', 'pg_query', 'pg_send_query', 'pg_cancel_query', 'pg_fetch_result', 'pg_fetch_row', 'pg_fetch_assoc', 'pg_fetch_array', 'pg_fetch_object', 'pg_fetch_all', 'pg_affected_rows', 'pg_get_result', 'pg_result_seek', 'pg_result_status', 'pg_free_result', 'pg_last_oid', 'pg_num_rows', 'pg_num_fields', 'pg_field_name', 'pg_field_num', 'pg_field_size', 'pg_field_type', 'pg_field_prtlen', 'pg_field_is_null', 'pg_get_notify', 'pg_get_pid', 'pg_result_error', 'pg_last_error', 'pg_last_notice', 'pg_put_line', 'pg_end_copy', 'pg_copy_to', 'pg_copy_from', - 'pg_trace', 'pg_untrace', 'pg_lo_create', 'pg_lo_unlink', 'pg_lo_open', 'pg_lo_close', 'pg_lo_read', 'pg_lo_write', 'pg_lo_read_all', 'pg_lo_import', 'pg_lo_export', 'pg_lo_seek', 'pg_lo_tell', 'pg_escape_string', 'pg_escape_bytea', 'pg_unescape_bytea', 'pg_client_encoding', 'pg_set_client_encoding', 'pg_meta_data', 'pg_convert', 'pg_insert', 'pg_update', 'pg_delete', 'pg_select', 'pg_exec', 'pg_getlastoid', 'pg_cmdtuples', 'pg_errormessage', 'pg_numrows', 'pg_numfields', 'pg_fieldname', 'pg_fieldsize', 'pg_fieldtype', 'pg_fieldnum', 'pg_fieldprtlen', 'pg_fieldisnull', 'pg_freeresult', 'pg_result', 'pg_loreadall', 'pg_locreate', 'pg_lounlink', 'pg_loopen', 'pg_loclose', 'pg_loread', 'pg_lowrite', 'pg_loimport', 'pg_loexport', - 'echo', 'print', 'global', 'static', 'exit', 'array', 'empty', 'eval', 'isset', 'unset', 'die' - - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '&&', '||' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - // highlight all variables ($...) - 'variables' : { - 'search' : '()(\\$\\w+)()' - ,'class' : 'variables' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #879EFA;' - ,'KEYWORDS' : { - 'reserved' : 'color: #48BDDF;' - ,'functions' : 'color: #0040FD;' - ,'statements' : 'color: #60CA00;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #2B60FF;' - ,'REGEXPS' : { - 'variables' : 'color: #E0BD54;' - } - } - ,'AUTO_COMPLETION' : { - "default": { // the name of this definition group. It's posisble to have different rules inside the same definition file - "REGEXP": { "before_word": "[^a-zA-Z0-9_]|^" // \\s|\\.| - ,"possible_words_letters": "[a-zA-Z0-9_\$]+" - ,"letter_after_word_must_match": "[^a-zA-Z0-9_]|$" - ,"prefix_separator": "\\-\\>|\\:\\:" - } - ,"CASE_SENSITIVE": true - ,"MAX_TEXT_LENGTH": 100 // the maximum length of the text being analyzed before the cursor position - ,"KEYWORDS": { - '': [ // the prefix of thoses items - /** - * 0 : the keyword the user is typing - * 1 : (optionnal) the string inserted in code ("{@}" being the new position of the cursor, "§" beeing the equivalent to the value the typed string indicated if the previous ) - * If empty the keyword will be displayed - * 2 : (optionnal) the text that appear in the suggestion box (if empty, the string to insert will be displayed) - */ - ['$_POST'] - ,['$_GET'] - ,['$_SESSION'] - ,['$_SERVER'] - ,['$_FILES'] - ,['$_ENV'] - ,['$_COOKIE'] - ,['$_REQUEST'] - // magic methods - ,['__construct', '§( {@} )'] - ,['__destruct', '§( {@} )'] - ,['__sleep', '§( {@} )'] - ,['__wakeup', '§( {@} )'] - ,['__toString', '§( {@} )'] - // include - ,['include', '§ "{@}";'] - ,['include_once', '§ "{@}";'] - ,['require', '§ "{@}";'] - ,['require_once', '§ "{@}";'] - // statements - ,['for', '§( {@} )'] - ,['foreach', '§( {@} )'] - ,['if', '§( {@} )'] - ,['elseif', '§( {@} )'] - ,['while', '§( {@} )'] - ,['switch', '§( {@} )'] - ,['break'] - ,['case'] - ,['continue'] - ,['do'] - ,['else'] - ,['endif'] - ,['endswitch'] - ,['endwhile'] - ,['return'] - // function - ,['unset', '§( {@} )'] - ] - } - } - ,"live": { - - // class NAME: /class\W+([a-z]+)\W+/gi - // method: /^(public|private|protected)?\s*function\s+([a-z][a-z0-9\_]*)\s*(\([^\{]*\))/gmi - // static: /^(public|private|protected)?\s+static\s+(public|private|protected)?\s*function\s+([a-z][a-z0-9\_]*)\s*(\([^\{]*\))/gmi - // attributes: /(\$this\-\>|(?:var|public|protected|private)\W+\$)([a-z0-9\_]+)(?!\()\b/gi - // v1 : /(\$this\-\>|var\W+|public\W+|protected\W+|private\W+)([a-z0-9\_]+)\W*(=|;)/gi - // var type: /(\$(this\-\>)?[a-z0-9\_]+)\s*\=\s*new\s+([a-z0-9\_])+/gi - - - "REGEXP": { "before_word": "[^a-zA-Z0-9_]|^" // \\s|\\.| - ,"possible_words_letters": "[a-zA-Z0-9_\$]+" - ,"letter_after_word_must_match": "[^a-zA-Z0-9_]|$" - ,"prefix_separator": "\\-\\>" - } - ,"CASE_SENSITIVE": true - ,"MAX_TEXT_LENGTH": 100 // the maximum length of the text being analyzed before the cursor position - ,"KEYWORDS": { - '$this': [ // the prefix of thoses items - ['test'] - ] - } - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/python.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/python.js deleted file mode 100644 index 4b0acf2ef..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/python.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Python syntax v 1.1 - * - * v1.1 by Andre Roberge (2006/12/27) - * -**/ -editAreaLoader.load_syntax["python"] = { - 'COMMENT_SINGLE' : {1 : '#'} - ,'COMMENT_MULTI' : {} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : true - ,'KEYWORDS' : { - /* - ** Set 1: reserved words - ** http://python.org/doc/current/ref/keywords.html - ** Note: 'as' and 'with' have been added starting with Python 2.5 - */ - 'reserved' : [ - 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', - 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', - 'import', 'is', 'in', 'lambda', 'not', 'or', 'pass', 'print', 'raise', - 'return', 'try', 'while', 'with', 'yield' - //the following are *almost* reserved; we'll treat them as such - , 'False', 'True', 'None' - ] - /* - ** Set 2: builtins - ** http://python.org/doc/current/lib/built-in-funcs.html - */ - ,'builtins' : [ - '__import__', 'abs', 'basestring', 'bool', 'callable', 'chr', 'classmethod', 'cmp', - 'compile', 'complex', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', - 'file', 'filter', 'float', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', - 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'list', 'locals', - 'long', 'map', 'max', 'min', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'range', - 'raw_input', 'reduce', 'reload', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', - 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', - 'vars', 'xrange', 'zip', - // Built-in constants: http://www.python.org/doc/2.4.1/lib/node35.html - //'False', 'True', 'None' have been included in 'reserved' - 'NotImplemented', 'Ellipsis', - // Built-in Exceptions: http://python.org/doc/current/lib/module-exceptions.html - 'Exception', 'StandardError', 'ArithmeticError', 'LookupError', 'EnvironmentError', - 'AssertionError', 'AttributeError', 'EOFError', 'FloatingPointError', 'IOError', - 'ImportError', 'IndexError', 'KeyError', 'KeyboardInterrupt', 'MemoryError', 'NameError', - 'NotImplementedError', 'OSError', 'OverflowError', 'ReferenceError', 'RuntimeError', - 'StopIteration', 'SyntaxError', 'SystemError', 'SystemExit', 'TypeError', - 'UnboundlocalError', 'UnicodeError', 'UnicodeEncodeError', 'UnicodeDecodeError', - 'UnicodeTranslateError', 'ValueError', 'WindowsError', 'ZeroDivisionError', 'Warning', - 'UserWarning', 'DeprecationWarning', 'PendingDeprecationWarning', 'SyntaxWarning', - 'RuntimeWarning', 'FutureWarning', - // we will include the string methods as well - // http://python.org/doc/current/lib/string-methods.html - 'capitalize', 'center', 'count', 'decode', 'encode', 'endswith', 'expandtabs', - 'find', 'index', 'isalnum', 'isaplpha', 'isdigit', 'islower', 'isspace', 'istitle', - 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust', - 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', - 'translate', 'upper', 'zfill' - ] - /* - ** Set 3: standard library - ** http://python.org/doc/current/lib/modindex.html - */ - ,'stdlib' : [ - '__builtin__', '__future__', '__main__', '_winreg', 'aifc', 'AL', 'al', 'anydbm', - 'array', 'asynchat', 'asyncore', 'atexit', 'audioop', 'base64', 'BaseHTTPServer', - 'Bastion', 'binascii', 'binhex', 'bisect', 'bsddb', 'bz2', 'calendar', 'cd', 'cgi', - 'CGIHTTPServer', 'cgitb', 'chunk', 'cmath', 'cmd', 'code', 'codecs', 'codeop', - 'collections', 'colorsys', 'commands', 'compileall', 'compiler', 'compiler', - 'ConfigParser', 'Cookie', 'cookielib', 'copy', 'copy_reg', 'cPickle', 'crypt', - 'cStringIO', 'csv', 'curses', 'datetime', 'dbhash', 'dbm', 'decimal', 'DEVICE', - 'difflib', 'dircache', 'dis', 'distutils', 'dl', 'doctest', 'DocXMLRPCServer', 'dumbdbm', - 'dummy_thread', 'dummy_threading', 'email', 'encodings', 'errno', 'exceptions', 'fcntl', - 'filecmp', 'fileinput', 'FL', 'fl', 'flp', 'fm', 'fnmatch', 'formatter', 'fpectl', - 'fpformat', 'ftplib', 'gc', 'gdbm', 'getopt', 'getpass', 'gettext', 'GL', 'gl', 'glob', - 'gopherlib', 'grp', 'gzip', 'heapq', 'hmac', 'hotshot', 'htmlentitydefs', 'htmllib', - 'HTMLParser', 'httplib', 'imageop', 'imaplib', 'imgfile', 'imghdr', 'imp', 'inspect', - 'itertools', 'jpeg', 'keyword', 'linecache', 'locale', 'logging', 'mailbox', 'mailcap', - 'marshal', 'math', 'md5', 'mhlib', 'mimetools', 'mimetypes', 'MimeWriter', 'mimify', - 'mmap', 'msvcrt', 'multifile', 'mutex', 'netrc', 'new', 'nis', 'nntplib', 'operator', - 'optparse', 'os', 'ossaudiodev', 'parser', 'pdb', 'pickle', 'pickletools', 'pipes', - 'pkgutil', 'platform', 'popen2', 'poplib', 'posix', 'posixfile', 'pprint', 'profile', - 'pstats', 'pty', 'pwd', 'py_compile', 'pyclbr', 'pydoc', 'Queue', 'quopri', 'random', - 're', 'readline', 'repr', 'resource', 'rexec', 'rfc822', 'rgbimg', 'rlcompleter', - 'robotparser', 'sched', 'ScrolledText', 'select', 'sets', 'sgmllib', 'sha', 'shelve', - 'shlex', 'shutil', 'signal', 'SimpleHTTPServer', 'SimpleXMLRPCServer', 'site', 'smtpd', - 'smtplib', 'sndhdr', 'socket', 'SocketServer', 'stat', 'statcache', 'statvfs', 'string', - 'StringIO', 'stringprep', 'struct', 'subprocess', 'sunau', 'SUNAUDIODEV', 'sunaudiodev', - 'symbol', 'sys', 'syslog', 'tabnanny', 'tarfile', 'telnetlib', 'tempfile', 'termios', - 'test', 'textwrap', 'thread', 'threading', 'time', 'timeit', 'Tix', 'Tkinter', 'token', - 'tokenize', 'traceback', 'tty', 'turtle', 'types', 'unicodedata', 'unittest', 'urllib2', - 'urllib', 'urlparse', 'user', 'UserDict', 'UserList', 'UserString', 'uu', 'warnings', - 'wave', 'weakref', 'webbrowser', 'whichdb', 'whrandom', 'winsound', 'xdrlib', 'xml', - 'xmllib', 'xmlrpclib', 'zipfile', 'zipimport', 'zlib' - - ] - /* - ** Set 4: special methods - ** http://python.org/doc/current/ref/specialnames.html - */ - ,'special' : [ - // Basic customization: http://python.org/doc/current/ref/customization.html - '__new__', '__init__', '__del__', '__repr__', '__str__', - '__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__cmp__', '__rcmp__', - '__hash__', '__nonzero__', '__unicode__', '__dict__', - // Attribute access: http://python.org/doc/current/ref/attribute-access.html - '__setattr__', '__delattr__', '__getattr__', '__getattribute__', '__get__', '__set__', - '__delete__', '__slots__', - // Class creation, callable objects - '__metaclass__', '__call__', - // Container types: http://python.org/doc/current/ref/sequence-types.html - '__len__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__contains__', - '__getslice__', '__setslice__', '__delslice__', - // Numeric types: http://python.org/doc/current/ref/numeric-types.html - '__abs__','__add__','__and__','__coerce__','__div__','__divmod__','__float__', - '__hex__','__iadd__','__isub__','__imod__','__idiv__','__ipow__','__iand__', - '__ior__','__ixor__', '__ilshift__','__irshift__','__invert__','__int__', - '__long__','__lshift__', - '__mod__','__mul__','__neg__','__oct__','__or__','__pos__','__pow__', - '__radd__','__rdiv__','__rdivmod__','__rmod__','__rpow__','__rlshift__','__rrshift__', - '__rshift__','__rsub__','__rmul__','__repr__','__rand__','__rxor__','__ror__', - '__sub__','__xor__' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '&', ';', '?', '`', ':', ',' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #660066;' - ,'KEYWORDS' : { - 'reserved' : 'color: #0000FF;' - ,'builtins' : 'color: #009900;' - ,'stdlib' : 'color: #009900;' - ,'special': 'color: #006666;' - } - ,'OPERATORS' : 'color: #993300;' - ,'DELIMITERS' : 'color: #993300;' - - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/robotstxt.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/robotstxt.js deleted file mode 100644 index d57395fb7..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/robotstxt.js +++ /dev/null @@ -1,24 +0,0 @@ -editAreaLoader.load_syntax["robotstxt"] = { - 'COMMENT_SINGLE' : {1 : '#'}, - 'COMMENT_MULTI' : {}, - 'QUOTEMARKS' : [], - 'KEYWORD_CASE_SENSITIVE' : false, - 'KEYWORDS' : { - 'attributes' : ['User-agent', 'Disallow', 'Allow', 'Crawl-delay'], - 'values' : ['*'], - 'specials' : ['*'] - }, - 'OPERATORS' :[':'], - 'DELIMITERS' :[], - 'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;', - 'QUOTESMARKS': 'color: #6381F8;', - 'KEYWORDS' : { - 'attributes' : 'color: #48BDDF;', - 'values' : 'color: #2B60FF;', - 'specials' : 'color: #FF0000;' - }, - 'OPERATORS' : 'color: #FF00FF;', - 'DELIMITERS' : 'color: #60CA00;' - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/ruby.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/ruby.js deleted file mode 100644 index c6ee2f4b6..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/ruby.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Ruby syntax v 1.0 - * - * v1.0 by Patrice De Saint Steban (2007/01/03) - * -**/ -editAreaLoader.load_syntax["ruby"] = { - 'COMMENT_SINGLE' : {1 : '#'} - ,'COMMENT_MULTI' : {} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : true - ,'KEYWORDS' : { - 'reserved' : [ - 'alias', 'and', 'BEGIN', 'begin', 'break', 'case', 'class', 'def', 'defined', 'do', 'else', - 'elsif', 'END', 'end', 'ensure', 'false', 'for', 'if', - 'in', 'module', 'next', 'not', 'or', 'redo', 'rescue', 'retry', - 'return', 'self', 'super', 'then', 'true', 'undef', 'unless', 'until', 'when', 'while', 'yield' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '%', '!', '&', ';', '?', '`', ':', ',' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - 'constants' : { - 'search' : '()([A-Z]\\w*)()' - ,'class' : 'constants' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - ,'variables' : { - 'search' : '()([\$\@\%]+\\w+)()' - ,'class' : 'variables' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - ,'numbers' : { - 'search' : '()(-?[0-9]+)()' - ,'class' : 'numbers' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - ,'symbols' : { - 'search' : '()(:\\w+)()' - ,'class' : 'symbols' - ,'modifiers' : 'g' - ,'execute' : 'before' - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #660066;' - ,'KEYWORDS' : { - 'reserved' : 'font-weight: bold; color: #0000FF;' - } - ,'OPERATORS' : 'color: #993300;' - ,'DELIMITERS' : 'color: #993300;' - ,'REGEXPS' : { - 'variables' : 'color: #E0BD54;' - ,'numbers' : 'color: green;' - ,'constants' : 'color: #00AA00;' - ,'symbols' : 'color: #879EFA;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/sql.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/sql.js deleted file mode 100644 index 8ef1b36f8..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/sql.js +++ /dev/null @@ -1,55 +0,0 @@ -editAreaLoader.load_syntax["sql"] = { - 'COMMENT_SINGLE' : {1 : '--'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'", 2: '"', 3: '`'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'select', 'SELECT', 'where', 'order', 'by', - 'insert', 'from', 'update', 'grant', 'left join', 'right join', - 'union', 'group', 'having', 'limit', 'alter', 'LIKE','IN','CASE' - ] - ,'reserved' : [ - 'null', 'enum', 'int', 'boolean', 'add', 'varchar' - - ] - ,'functions' : [ - 'ABS','ACOS','ADDDATE','ADDTIME','AES_DECRYPT','AES_ENCRYPT','ASCII','ASIN','ATAN2 ATAN','ATAN','AVG','BENCHMARK','DISTINCT','BIN','BIT_AND','BIT_COUNT','BIT_LENGTH','BIT_OR','BIT_XOR','CAST','CEILING CEIL','CHAR_LENGTH','CHAR', -'CHARACTER_LENGTH','CHARSET','COALESCE','COERCIBILITY','COLLATION','COMPRESS','CONCAT_WS','CONCAT','CONNECTION_ID','CONV','CONVERT_TZ','COS','COT','COUNT','CRC32','CURDATE','CURRENT_DATE','CURRENT_TIME','CURRENT_TIMESTAMP','CURRENT_USER','CURTIME','DATABASE','DATE_ADD','DATE_FORMAT','DATE_SUB','DATE','DATEDIFF','DAY','DAYNAME','DAYOFMONTH', -'DAYOFWEEK','DAYOFYEAR','DECODE','DEFAULT','DEGREES','DES_DECRYPT','DES_ENCRYPT','ELT','ENCODE','ENCRYPT','EXP','EXPORT_SET','EXTRACT','FIELD','FIND_IN_SET','FLOOR','FORMAT','FOUND_ROWS','FROM_DAYS','FROM_UNIXTIME','GET_FORMAT','GET_LOCK','GREATEST','GROUP_CONCAT','HEX','HOUR','IF','IFNULL','INET_ATON','INET_NTOA', -'INSERT','INSTR','INTERVAL','IS_FREE_LOCK','IS_USED_LOCK','ISNULL','LAST_DAY','LAST_INSERT_ID','LCASE','LEAST','LEFT','LENGTH','LN','LOAD_FILE','LOCALTIME','LOCALTIMESTAMP','LOCATE','LOG10','LOG2','LOG','LOWER','LPAD','LTRIM','MAKE_SET','MAKEDATE','MAKETIME','MASTER_POS_WAIT','MAX','MD5','MICROSECOND', -'MID','MIN','MINUTE','MOD','MONTH','MONTHNAME','NOW','NULLIF','OCT','OCTET_LENGTH','OLD_PASSWORD','ORD','PASSWORD','PERIOD_ADD','PERIOD_DIFF','PI','POSITION','POW','POWER','PROCEDURE ANALYSE','QUARTER','QUOTE','RADIANS','RAND','RELEASE_LOCK','REPEAT','REPLACE','REVERSE','RIGHT','ROUND', -'RPAD','RTRIM','SEC_TO_TIME','SECOND','SESSION_USER','SHA1','SHA','SIGN','SIN','SOUNDEX','SOUNDS LIKE','SPACE','SQRT','STD','STDDEV','STR_TO_DATE','STRCMP','SUBDATE','SUBSTRING_INDEX','SUBSTRING','SUBSTR','SUBTIME','SUM','SYSDATE','SYSTEM_USER','TAN','TIME_FORMAT','TIME_TO_SEC','TIME','TIMEDIFF', -'TIMESTAMP','TO_DAYS','TRIM','TRUNCATE','UCASE','UNCOMPRESS','UNCOMPRESSED_LENGTH','UNHEX','UNIX_TIMESTAMP','UPPER','USER','UTC_DATE','UTC_TIME','UTC_TIMESTAMP','UUID','VALUES','VARIANCE','WEEK','WEEKDAY','WEEKOFYEAR','YEAR','YEARWEEK' - ] - } - ,'OPERATORS' :[ - 'AND','&&','BETWEEN','BINARY','&','|','^','/','DIV','<=>','=','>=','>','<<','>>','IS','NULL','<=','<','-','%','!=','<>','!','||','OR','+','REGEXP','RLIKE','XOR','~','*' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - // highlight all variables (@...) - 'variables' : { - 'search' : '()(\\@\\w+)()' - ,'class' : 'variables' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #879EFA;' - ,'KEYWORDS' : { - 'reserved' : 'color: #48BDDF;' - ,'functions' : 'color: #0040FD;' - ,'statements' : 'color: #60CA00;' - } - ,'OPERATORS' : 'color: #FF00FF;' - ,'DELIMITERS' : 'color: #2B60FF;' - ,'REGEXPS' : { - 'variables' : 'color: #E0BD54;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/tsql.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/tsql.js deleted file mode 100644 index 7e9057d87..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/tsql.js +++ /dev/null @@ -1,87 +0,0 @@ -editAreaLoader.load_syntax["tsql"] = { - 'COMMENT_SINGLE' : {1 : '--'} - ,'COMMENT_MULTI' : {'/*' : '*/'} - ,'QUOTEMARKS' : {1: "'" } - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements': [ - 'ADD', 'EXCEPT', 'PERCENT', 'EXEC', 'PLAN', 'ALTER', 'EXECUTE', 'PRECISION', - 'PRIMARY', 'EXIT', 'PRINT', 'AS', 'FETCH', 'PROC', 'ASC', - 'FILE', 'PROCEDURE', 'AUTHORIZATION', 'FILLFACTOR', 'PUBLIC', 'BACKUP', 'FOR', 'RAISERROR', - 'BEGIN', 'FOREIGN', 'READ', 'FREETEXT', 'READTEXT', 'BREAK', 'FREETEXTTABLE', - 'RECONFIGURE', 'BROWSE', 'FROM', 'REFERENCES', 'BULK', 'FULL', 'REPLICATION', 'BY', - 'FUNCTION', 'RESTORE', 'CASCADE', 'GOTO', 'RESTRICT', 'CASE', 'GRANT', 'RETURN', - 'CHECK', 'GROUP', 'REVOKE', 'CHECKPOINT', 'HAVING', 'RIGHT', 'CLOSE', 'HOLDLOCK', 'ROLLBACK', - 'CLUSTERED', 'IDENTITY', 'ROWCOUNT', 'IDENTITY_INSERT', 'ROWGUIDCOL', 'COLLATE', - 'IDENTITYCOL', 'RULE', 'COLUMN', 'IF', 'SAVE', 'COMMIT', 'SCHEMA', 'COMPUTE', 'INDEX', - 'SELECT', 'CONSTRAINT', 'CONTAINS', 'INSERT', 'SET', - 'CONTAINSTABLE', 'INTERSECT', 'SETUSER', 'CONTINUE', 'INTO', 'SHUTDOWN', 'SOME', - 'CREATE', 'STATISTICS', 'KEY', 'CURRENT', 'KILL', 'TABLE', - 'CURRENT_DATE', 'TEXTSIZE', 'CURRENT_TIME', 'THEN', 'LINENO', - 'TO', 'LOAD', 'TOP', 'CURSOR', 'NATIONAL', 'TRAN', 'DATABASE', 'NOCHECK', - 'TRANSACTION', 'DBCC', 'NONCLUSTERED', 'TRIGGER', 'DEALLOCATE', 'TRUNCATE', - 'DECLARE', 'TSEQUAL', 'DEFAULT', 'UNION', 'DELETE', 'OF', 'UNIQUE', - 'DENY', 'OFF', 'UPDATE', 'DESC', 'OFFSETS', 'UPDATETEXT', 'DISK', 'ON', 'USE', 'DISTINCT', 'OPEN', - 'DISTRIBUTED', 'OPENDATASOURCE', 'VALUES', 'DOUBLE', 'OPENQUERY', 'VARYING', 'DROP', - 'OPENROWSET', 'VIEW', 'DUMMY', 'OPENXML', 'WAITFOR', 'DUMP', 'OPTION', 'WHEN', 'ELSE', 'WHERE', - 'END', 'ORDER', 'WHILE', 'ERRLVL', 'WITH', 'ESCAPE', 'OVER', 'WRITETEXT' - ], - 'functions': [ - 'COALESCE', 'SESSION_USER', 'CONVERT', 'SYSTEM_USER', 'CURRENT_TIMESTAMP', 'CURRENT_USER', 'NULLIF', 'USER', - 'AVG', 'MIN', 'CHECKSUM', 'SUM', 'CHECKSUM_AGG', 'STDEV', 'COUNT', 'STDEVP', 'COUNT_BIG', 'VAR', 'GROUPING', 'VARP', 'MAX', - '@@DATEFIRST', '@@OPTIONS', '@@DBTS', '@@REMSERVER', '@@LANGID', '@@SERVERNAME', '@@LANGUAGE', '@@SERVICENAME', '@@LOCK_TIMEOUT', - '@@SPID', '@@MAX_CONNECTIONS', '@@TEXTSIZE', '@@MAX_PRECISION', '@@VERSION', '@@NESTLEVEL', - '@@CURSOR_ROWS', 'CURSOR_STATUS', '@@FETCH_STATUS', - 'DATEADD', 'DATEDIFF', 'DATENAME', 'DATEPART', 'DAY', 'GETDATE', 'GETUTCDATE', 'MONTH', 'YEAR', - 'ABS', 'DEGREES', 'RAND', 'ACOS', 'EXP', 'ROUND', 'ASIN', 'FLOOR', 'SIGN', 'ATAN', 'LOG', 'SIN', 'ATN2', 'LOG10', 'SQRT', - 'CEILING', 'PI ', 'SQUARE', 'COS', 'POWER', 'TAN', 'COT', 'RADIANS', - '@@PROCID', 'COL_LENGTH', 'FULLTEXTCATALOGPROPERTY', 'COL_NAME', 'FULLTEXTSERVICEPROPERTY', 'COLUMNPROPERTY', 'INDEX_COL', - 'DATABASEPROPERTY', 'INDEXKEY_PROPERTY', 'DATABASEPROPERTYEX', 'INDEXPROPERTY', 'DB_ID', 'OBJECT_ID', 'DB_NAME', 'OBJECT_NAME', - 'FILE_ID', 'OBJECTPROPERTY', 'OBJECTPROPERTYEX', 'FILE_NAME', 'SQL_VARIANT_PROPERTY', 'FILEGROUP_ID', 'FILEGROUP_NAME', - 'FILEGROUPPROPERTY', 'TYPEPROPERTY', 'FILEPROPERTY', - 'CURRENT_USER', 'SUSER_ID', 'SUSER_SID', 'IS_MEMBER', 'SUSER_SNAME', 'IS_SRVROLEMEMBER', 'PERMISSIONS', 'SYSTEM_USER', - 'SUSER_NAME', 'USER_ID', 'SESSION_USER', 'USER_NAME', 'ASCII', 'SOUNDEX', 'PATINDEX', 'SPACE', 'CHARINDEX', 'QUOTENAME', - 'STR', 'DIFFERENCE', 'REPLACE', 'STUFF', 'REPLICATE', 'SUBSTRING', 'LEN', 'REVERSE', 'UNICODE', 'LOWER', - 'UPPER', 'LTRIM', 'RTRIM', 'APP_NAME', 'CAST', 'CONVERT', 'COALESCE', 'COLLATIONPROPERTY', 'COLUMNS_UPDATED', 'CURRENT_TIMESTAMP', - 'CURRENT_USER', 'DATALENGTH', '@@ERROR', 'FORMATMESSAGE', 'GETANSINULL', 'HOST_ID', 'HOST_NAME', 'IDENT_CURRENT', 'IDENT_INCR', - 'IDENT_SEED', '@@IDENTITY', 'ISDATE', 'ISNULL', 'ISNUMERIC', 'NEWID', 'NULLIF', 'PARSENAME', '@@ROWCOUNT', - 'SCOPE_IDENTITY', 'SERVERPROPERTY', 'SESSIONPROPERTY', 'SESSION_USER', 'STATS_DATE', 'SYSTEM_USER', '@@TRANCOUNT', 'USER_NAME', - '@@CONNECTIONS', '@@PACK_RECEIVED', '@@CPU_BUSY', '@@PACK_SENT', '@@TIMETICKS', '@@IDLE', '@@TOTAL_ERRORS', '@@IO_BUSY', '@@TOTAL_READ', - '@@PACKET_ERRORS', '@@TOTAL_WRITE', 'PATINDEX', 'TEXTVALID', 'TEXTPTR' - ], - 'reserved': [ - 'RIGHT', 'INNER', 'IS', 'JOIN', 'CROSS', 'LEFT', 'NULL', 'OUTER' - ] - } - ,'OPERATORS' :[ - '+', '-', '*', '/', '%', '=', '&' ,'|', '^', '>', '<', '>=', '<=', '<>', '!=', '!<', '!>', 'ALL', 'AND', 'ANY', 'BETWEEN', 'EXISTS', 'IN', 'LIKE', 'NOT', 'OR', '~' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'REGEXPS' : { - // highlight all variables (@...) - 'variables' : { - 'search' : '()(\\@\\w+)()' - ,'class' : 'variables' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #008000;' - ,'QUOTESMARKS': 'color: #FF0000;' - ,'KEYWORDS' : { - 'reserved' : 'color: #808080;' - ,'functions' : 'color: #FF00FF;' - ,'statements' : 'color: #0000FF;' - } - ,'OPERATORS' : 'color: #808080;' - ,'DELIMITERS' : 'color: #FF8000;' - ,'REGEXPS' : { - 'variables' : 'color: #E0BD54;' - } - } -}; - - diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/vb.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/vb.js deleted file mode 100644 index 73d58fc4a..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/vb.js +++ /dev/null @@ -1,52 +0,0 @@ -editAreaLoader.load_syntax["vb"] = { - 'COMMENT_SINGLE' : {1 : "'"} - ,'COMMENT_MULTI' : { } - ,'QUOTEMARKS' : {1: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - 'statements' : [ - 'if','then','for','each','while','do','loop', - 'else','elseif','select','case','end select', - 'until','next','step','to','in','end if' - ] - ,'keywords' : [ - 'empty','isempty','nothing','null','isnull','true','false', - 'set','call', - 'sub','end sub','function','end function','exit','exit function', - 'dim','Mod','In','private','public','shared','const' - ] - - ,'functions' : [ - 'CDate','Date','DateAdd','DateDiff','DatePart','DateSerial','DateValue','Day','FormatDateTime', - 'Hour','IsDate','Minute','Month', - 'MonthName','Now','Second','Time','Timer','TimeSerial','TimeValue','Weekday','WeekdayName ','Year', - 'Asc','CBool','CByte','CCur','CDate','CDbl','Chr','CInt','CLng','CSng','CStr','Hex','Oct','FormatCurrency', - 'FormatDateTime','FormatNumber','FormatPercent','Abs','Atn','Cos','Exp','Hex','Int','Fix','Log','Oct', - 'Rnd','Sgn','Sin','Sqr','Tan', - 'Array','Filter','IsArray','Join','LBound','Split','UBound', - 'InStr','InStrRev','LCase','Left','Len','LTrim','RTrim','Trim','Mid','Replace','Right','Space','StrComp', - 'String','StrReverse','UCase', - 'CreateObject','Eval','GetLocale','GetObject','GetRef','InputBox','IsEmpty','IsNull','IsNumeric', - 'IsObject','LoadPicture','MsgBox','RGB','Round','ScriptEngine','ScriptEngineBuildVersion','ScriptEngineMajorVersion', - 'ScriptEngineMinorVersion','SetLocale','TypeName','VarType' - ] - } - ,'OPERATORS' :[ - '+', '-', '/', '*', '=', '<', '>', '!', '&' - ] - ,'DELIMITERS' :[ - '(', ')', '[', ']', '{', '}' - ] - ,'STYLES' : { - 'COMMENTS': 'color: #99CC00;' - ,'QUOTESMARKS': 'color: #333399;' - ,'KEYWORDS' : { - 'keywords' : 'color: #3366FF;' - ,'functions' : 'color: #0000FF;' - ,'statements' : 'color: #3366FF;' - } - ,'OPERATORS' : 'color: #FF0000;' - ,'DELIMITERS' : 'color: #0000FF;' - - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/xml.js b/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/xml.js deleted file mode 100644 index f8618f24c..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/reg_syntax/xml.js +++ /dev/null @@ -1,56 +0,0 @@ -/* -* last update: 2006-08-24 -*/ - -editAreaLoader.load_syntax["xml"] = { - 'COMMENT_SINGLE' : {} - ,'COMMENT_MULTI' : {'<!--' : '-->'} - ,'QUOTEMARKS' : {1: "'", 2: '"'} - ,'KEYWORD_CASE_SENSITIVE' : false - ,'KEYWORDS' : { - } - ,'OPERATORS' :[ - ] - ,'DELIMITERS' :[ - ] - ,'REGEXPS' : { - 'xml' : { - 'search' : '()(<\\?[^>]*?\\?>)()' - ,'class' : 'xml' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - ,'cdatas' : { - 'search' : '()(<!\\[CDATA\\[.*?\\]\\]>)()' - ,'class' : 'cdata' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - ,'tags' : { - 'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)' - ,'class' : 'tags' - ,'modifiers' : 'gi' - ,'execute' : 'before' // before or after - } - ,'attributes' : { - 'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)' - ,'class' : 'attributes' - ,'modifiers' : 'g' - ,'execute' : 'before' // before or after - } - } - ,'STYLES' : { - 'COMMENTS': 'color: #AAAAAA;' - ,'QUOTESMARKS': 'color: #6381F8;' - ,'KEYWORDS' : { - } - ,'OPERATORS' : 'color: #E775F0;' - ,'DELIMITERS' : '' - ,'REGEXPS' : { - 'attributes': 'color: #B1AC41;' - ,'tags': 'color: #E62253;' - ,'xml': 'color: #8DCFB5;' - ,'cdata': 'color: #50B020;' - } - } -}; diff --git a/wp-content/plugins/comicpress-companion/edit_area/regexp.js b/wp-content/plugins/comicpress-companion/edit_area/regexp.js deleted file mode 100644 index 907063a6f..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/regexp.js +++ /dev/null @@ -1,139 +0,0 @@ - /*EditArea.prototype.comment_or_quotes= function(v0, v1, v2, v3, v4,v5,v6,v7,v8,v9, v10){ - new_class="quotes"; - if(v6 && v6 != undefined && v6!="") - new_class="comments"; - return "µ__"+ new_class +"__µ"+v0+"µ_END_µ"; - - };*/ - -/* EditArea.prototype.htmlTag= function(v0, v1, v2, v3, v4,v5,v6,v7,v8,v9, v10){ - res="<span class=htmlTag>"+v2; - alert("v2: "+v2+" v3: "+v3); - tab=v3.split("="); - attributes=""; - if(tab.length>1){ - attributes="<span class=attribute>"+tab[0]+"</span>="; - for(i=1; i<tab.length-1; i++){ - cut=tab[i].lastIndexOf(" "); - attributes+="<span class=attributeVal>"+tab[i].substr(0,cut)+"</span>"; - attributes+="<span class=attribute>"+tab[i].substr(cut)+"</span>="; - } - attributes+="<span class=attributeVal>"+tab[tab.length-1]+"</span>"; - } - res+=attributes+v5+"</span>"; - return res; - };*/ - - // determine if the selected text if a comment or a quoted text - EditArea.prototype.comment_or_quote= function(){ - var new_class="", close_tag="", sy, arg, i; - sy = parent.editAreaLoader.syntax[editArea.current_code_lang]; - arg = EditArea.prototype.comment_or_quote.arguments[0]; - - for( i in sy["quotes"] ){ - if(arg.indexOf(i)==0){ - new_class="quotesmarks"; - close_tag=sy["quotes"][i]; - } - } - if(new_class.length==0) - { - for(var i in sy["comments"]){ - if( arg.indexOf(i)==0 ){ - new_class="comments"; - close_tag=sy["comments"][i]; - } - } - } - // for single line comment the \n must not be included in the span tags - if(close_tag=="\n"){ - return "µ__"+ new_class +"__µ"+ arg.replace(/(\r?\n)?$/m, "µ_END_µ$1"); - }else{ - // the closing tag must be set only if the comment or quotes is closed - reg= new RegExp(parent.editAreaLoader.get_escaped_regexp(close_tag)+"$", "m"); - if( arg.search(reg)!=-1 ) - return "µ__"+ new_class +"__µ"+ arg +"µ_END_µ"; - else - return "µ__"+ new_class +"__µ"+ arg; - } - }; - -/* - // apply special tags arround text to highlight - EditArea.prototype.custom_highlight= function(){ - res= EditArea.prototype.custom_highlight.arguments[1]+"µ__"+ editArea.reg_exp_span_tag +"__µ" + EditArea.prototype.custom_highlight.arguments[2]+"µ_END_µ"; - if(EditArea.prototype.custom_highlight.arguments.length>5) - res+= EditArea.prototype.custom_highlight.arguments[ EditArea.prototype.custom_highlight.arguments.length-3 ]; - return res; - }; - */ - - // return identication that allow to know if revalidating only the text line won't make the syntax go mad - EditArea.prototype.get_syntax_trace= function(text){ - if(this.settings["syntax"].length>0 && parent.editAreaLoader.syntax[this.settings["syntax"]]["syntax_trace_regexp"]) - return text.replace(parent.editAreaLoader.syntax[this.settings["syntax"]]["syntax_trace_regexp"], "$3"); - }; - - - EditArea.prototype.colorize_text= function(text){ - //text="<div id='result' class='area' style='position: relative; z-index: 4; height: 500px; overflow: scroll;border: solid black 1px;'> "; - /* - if(this.isOpera){ - // opera can't use pre element tabulation cause a tab=6 chars in the textarea and 8 chars in the pre - text= this.replace_tab(text); - }*/ - - text= " "+text; // for easier regExp - - /*if(this.do_html_tags) - text= text.replace(/(<[a-z]+ [^>]*>)/gi, '[__htmlTag__]$1[_END_]');*/ - if(this.settings["syntax"].length>0) - text= this.apply_syntax(text, this.settings["syntax"]); - - // remove the first space added - return text.substr(1).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/µ_END_µ/g,"</span>").replace(/µ__([a-zA-Z0-9]+)__µ/g,"<span class='$1'>"); - }; - - EditArea.prototype.apply_syntax= function(text, lang){ - var sy; - this.current_code_lang=lang; - - if(!parent.editAreaLoader.syntax[lang]) - return text; - - sy = parent.editAreaLoader.syntax[lang]; - if(sy["custom_regexp"]['before']){ - for( var i in sy["custom_regexp"]['before']){ - var convert="$1µ__"+ sy["custom_regexp"]['before'][i]['class'] +"__µ$2µ_END_µ$3"; - text= text.replace(sy["custom_regexp"]['before'][i]['regexp'], convert); - } - } - - if(sy["comment_or_quote_reg_exp"]){ - //setTimeout("_$('debug_area').value=editArea.comment_or_quote_reg_exp;", 500); - text= text.replace(sy["comment_or_quote_reg_exp"], this.comment_or_quote); - } - - if(sy["keywords_reg_exp"]){ - for(var i in sy["keywords_reg_exp"]){ - text= text.replace(sy["keywords_reg_exp"][i], 'µ__'+i+'__µ$2µ_END_µ'); - } - } - - if(sy["delimiters_reg_exp"]){ - text= text.replace(sy["delimiters_reg_exp"], 'µ__delimiters__µ$1µ_END_µ'); - } - - if(sy["operators_reg_exp"]){ - text= text.replace(sy["operators_reg_exp"], 'µ__operators__µ$1µ_END_µ'); - } - - if(sy["custom_regexp"]['after']){ - for( var i in sy["custom_regexp"]['after']){ - var convert="$1µ__"+ sy["custom_regexp"]['after'][i]['class'] +"__µ$2µ_END_µ$3"; - text= text.replace(sy["custom_regexp"]['after'][i]['regexp'], convert); - } - } - - return text; - }; diff --git a/wp-content/plugins/comicpress-companion/edit_area/resize_area.js b/wp-content/plugins/comicpress-companion/edit_area/resize_area.js deleted file mode 100644 index 191e8cec1..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/resize_area.js +++ /dev/null @@ -1,73 +0,0 @@ - - EditAreaLoader.prototype.start_resize_area= function(){ - var d=document,a,div,width,height,father; - - d.onmouseup= editAreaLoader.end_resize_area; - d.onmousemove= editAreaLoader.resize_area; - editAreaLoader.toggle(editAreaLoader.resize["id"]); - - a = editAreas[editAreaLoader.resize["id"]]["textarea"]; - div = d.getElementById("edit_area_resize"); - if(!div){ - div= d.createElement("div"); - div.id="edit_area_resize"; - div.style.border="dashed #888888 1px"; - } - width = a.offsetWidth -2; - height = a.offsetHeight -2; - - div.style.display = "block"; - div.style.width = width+"px"; - div.style.height = height+"px"; - father= a.parentNode; - father.insertBefore(div, a); - - a.style.display="none"; - - editAreaLoader.resize["start_top"]= calculeOffsetTop(div); - editAreaLoader.resize["start_left"]= calculeOffsetLeft(div); - }; - - EditAreaLoader.prototype.end_resize_area= function(e){ - var d=document,div,a,width,height; - - d.onmouseup=""; - d.onmousemove=""; - - div = d.getElementById("edit_area_resize"); - a= editAreas[editAreaLoader.resize["id"]]["textarea"]; - width = Math.max(editAreas[editAreaLoader.resize["id"]]["settings"]["min_width"], div.offsetWidth-4); - height = Math.max(editAreas[editAreaLoader.resize["id"]]["settings"]["min_height"], div.offsetHeight-4); - if(editAreaLoader.isIE==6){ - width-=2; - height-=2; - } - a.style.width = width+"px"; - a.style.height = height+"px"; - div.style.display = "none"; - a.style.display = "inline"; - a.selectionStart = editAreaLoader.resize["selectionStart"]; - a.selectionEnd = editAreaLoader.resize["selectionEnd"]; - editAreaLoader.toggle(editAreaLoader.resize["id"]); - - return false; - }; - - EditAreaLoader.prototype.resize_area= function(e){ - var allow,newHeight,newWidth; - allow = editAreas[editAreaLoader.resize["id"]]["settings"]["allow_resize"]; - if(allow=="both" || allow=="y") - { - newHeight = Math.max(20, getMouseY(e)- editAreaLoader.resize["start_top"]); - document.getElementById("edit_area_resize").style.height= newHeight+"px"; - } - if(allow=="both" || allow=="x") - { - newWidth= Math.max(20, getMouseX(e)- editAreaLoader.resize["start_left"]); - document.getElementById("edit_area_resize").style.width= newWidth+"px"; - } - - return false; - }; - - editAreaLoader.waiting_loading["resize_area.js"]= "loaded"; diff --git a/wp-content/plugins/comicpress-companion/edit_area/search_replace.js b/wp-content/plugins/comicpress-companion/edit_area/search_replace.js deleted file mode 100644 index bd266b35a..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/search_replace.js +++ /dev/null @@ -1,174 +0,0 @@ - EditArea.prototype.show_search = function(){ - if(_$("area_search_replace").style.visibility=="visible"){ - this.hidden_search(); - }else{ - this.open_inline_popup("area_search_replace"); - var text= this.area_get_selection(); - var search= text.split("\n")[0]; - _$("area_search").value= search; - _$("area_search").focus(); - } - }; - - EditArea.prototype.hidden_search= function(){ - /*_$("area_search_replace").style.visibility="hidden"; - this.textarea.focus(); - var icon= _$("search"); - setAttribute(icon, "class", getAttribute(icon, "class").replace(/ selected/g, "") );*/ - this.close_inline_popup("area_search_replace"); - }; - - EditArea.prototype.area_search= function(mode){ - - if(!mode) - mode="search"; - _$("area_search_msg").innerHTML=""; - var search=_$("area_search").value; - - this.textarea.focus(); - this.textarea.textareaFocused=true; - - var infos= this.get_selection_infos(); - var start= infos["selectionStart"]; - var pos=-1; - var pos_begin=-1; - var length=search.length; - - if(_$("area_search_replace").style.visibility!="visible"){ - this.show_search(); - return; - } - if(search.length==0){ - _$("area_search_msg").innerHTML=this.get_translation("search_field_empty"); - return; - } - // advance to the next occurence if no text selected - if(mode!="replace" ){ - if(_$("area_search_reg_exp").checked) - start++; - else - start+= search.length; - } - - //search - if(_$("area_search_reg_exp").checked){ - // regexp search - var opt="m"; - if(!_$("area_search_match_case").checked) - opt+="i"; - var reg= new RegExp(search, opt); - pos= infos["full_text"].substr(start).search(reg); - pos_begin= infos["full_text"].search(reg); - if(pos!=-1){ - pos+=start; - length=infos["full_text"].substr(start).match(reg)[0].length; - }else if(pos_begin!=-1){ - length=infos["full_text"].match(reg)[0].length; - } - }else{ - if(_$("area_search_match_case").checked){ - pos= infos["full_text"].indexOf(search, start); - pos_begin= infos["full_text"].indexOf(search); - }else{ - pos= infos["full_text"].toLowerCase().indexOf(search.toLowerCase(), start); - pos_begin= infos["full_text"].toLowerCase().indexOf(search.toLowerCase()); - } - } - - // interpret result - if(pos==-1 && pos_begin==-1){ - _$("area_search_msg").innerHTML="<strong>"+search+"</strong> "+this.get_translation("not_found"); - return; - }else if(pos==-1 && pos_begin != -1){ - begin= pos_begin; - _$("area_search_msg").innerHTML=this.get_translation("restart_search_at_begin"); - }else - begin= pos; - - //_$("area_search_msg").innerHTML+="<strong>"+search+"</strong> found at "+begin+" strat at "+start+" pos "+pos+" curs"+ infos["indexOfCursor"]+"."; - if(mode=="replace" && pos==infos["indexOfCursor"]){ - var replace= _$("area_replace").value; - var new_text=""; - if(_$("area_search_reg_exp").checked){ - var opt="m"; - if(!_$("area_search_match_case").checked) - opt+="i"; - var reg= new RegExp(search, opt); - new_text= infos["full_text"].substr(0, begin) + infos["full_text"].substr(start).replace(reg, replace); - }else{ - new_text= infos["full_text"].substr(0, begin) + replace + infos["full_text"].substr(begin + length); - } - this.textarea.value=new_text; - this.area_select(begin, length); - this.area_search(); - }else - this.area_select(begin, length); - }; - - - - - EditArea.prototype.area_replace= function(){ - this.area_search("replace"); - }; - - EditArea.prototype.area_replace_all= function(){ - /* this.area_select(0, 0); - _$("area_search_msg").innerHTML=""; - while(_$("area_search_msg").innerHTML==""){ - this.area_replace(); - }*/ - - var base_text= this.textarea.value; - var search= _$("area_search").value; - var replace= _$("area_replace").value; - if(search.length==0){ - _$("area_search_msg").innerHTML=this.get_translation("search_field_empty"); - return ; - } - - var new_text=""; - var nb_change=0; - if(_$("area_search_reg_exp").checked){ - // regExp - var opt="mg"; - if(!_$("area_search_match_case").checked) - opt+="i"; - var reg= new RegExp(search, opt); - nb_change= infos["full_text"].match(reg).length; - new_text= infos["full_text"].replace(reg, replace); - - }else{ - - if(_$("area_search_match_case").checked){ - var tmp_tab=base_text.split(search); - nb_change= tmp_tab.length -1 ; - new_text= tmp_tab.join(replace); - }else{ - // case insensitive - var lower_value=base_text.toLowerCase(); - var lower_search=search.toLowerCase(); - - var start=0; - var pos= lower_value.indexOf(lower_search); - while(pos!=-1){ - nb_change++; - new_text+= this.textarea.value.substring(start , pos)+replace; - start=pos+ search.length; - pos= lower_value.indexOf(lower_search, pos+1); - } - new_text+= this.textarea.value.substring(start); - } - } - if(new_text==base_text){ - _$("area_search_msg").innerHTML="<strong>"+search+"</strong> "+this.get_translation("not_found"); - }else{ - this.textarea.value= new_text; - _$("area_search_msg").innerHTML="<strong>"+nb_change+"</strong> "+this.get_translation("occurrence_replaced"); - // firefox and opera doesn't manage with the focus if it's done directly - //editArea.textarea.focus();editArea.textarea.textareaFocused=true; - setTimeout("editArea.textarea.focus();editArea.textarea.textareaFocused=true;", 100); - } - - - }; diff --git a/wp-content/plugins/comicpress-companion/edit_area/template.html b/wp-content/plugins/comicpress-companion/edit_area/template.html deleted file mode 100644 index 738ffce99..000000000 --- a/wp-content/plugins/comicpress-companion/edit_area/template.html +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > -<head> - <title>EditArea</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> - [__CSSRULES__] - [__JSCODE__] -</head> -<body> - <div id='editor'> - <div class='area_toolbar' id='toolbar_1'>[__TOOLBAR__]</div> - <div class='area_toolbar' id='tab_browsing_area'><ul id='tab_browsing_list' class='menu'> <li> </li> </ul></div> - <div id='result'> - <div id='no_file_selected'></div> - <div id='container'> - <div id='cursor_pos' class='edit_area_cursor'> </div> - <div id='end_bracket' class='edit_area_cursor'> </div> - <div id='selection_field'></div> - <div id='line_number' selec='none'></div> - <div id='content_highlight'></div> - <div id='test_font_size'></div> - <div id='selection_field_text'></div> - <textarea id='textarea' wrap='off' onchange='editArea.execCommand("onchange");' onfocus='javascript:editArea.textareaFocused=true;' onblur='javascript:editArea.textareaFocused=false;'> - </textarea> - - </div> - </div> - <div class='area_toolbar' id='toolbar_2'> - <table class='statusbar' cellspacing='0' cellpadding='0'> - <tr> - <td class='total' selec='none'>{$position}:</td> - <td class='infos' selec='none'> - {$line_abbr} <span id='linePos'>0</span>, {$char_abbr} <span id='currPos'>0</span> - </td> - <td class='total' selec='none'>{$total}:</td> - <td class='infos' selec='none'> - {$line_abbr} <span id='nbLine'>0</span>, {$char_abbr} <span id='nbChar'>0</span> - </td> - <td class='resize'> - <span id='resize_area'><img src='[__BASEURL__]images/statusbar_resize.gif' alt='resize' selec='none'></span> - </td> - </tr> - </table> - </div> - </div> - <div id='processing'> - <div id='processing_text'> - {$processing} - </div> - </div> - - <div id='area_search_replace' class='editarea_popup'> - <table cellspacing='2' cellpadding='0' style='width: 100%'> - <tr> - <td selec='none'>{$search}</td> - <td><input type='text' id='area_search' /></td> - <td id='close_area_search_replace'> - <a onclick='Javascript:editArea.execCommand("hidden_search")'><img selec='none' src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a><br /> - </tr><tr> - <td selec='none'>{$replace}</td> - <td><input type='text' id='area_replace' /></td> - <td><img id='move_area_search_replace' onmousedown='return parent.start_move_element(event,"area_search_replace", parent.frames["frame_"+editArea.id]);' src='[__BASEURL__]images/move.gif' alt='{$move_popup}' title='{$move_popup}' /></td> - </tr> - </table> - <div class='button'> - <input type='checkbox' id='area_search_match_case' /><label for='area_search_match_case' selec='none'>{$match_case}</label> - <input type='checkbox' id='area_search_reg_exp' /><label for='area_search_reg_exp' selec='none'>{$reg_exp}</label> - <br /> - <a onclick='Javascript:editArea.execCommand("area_search")' selec='none'>{$find_next}</a> - <a onclick='Javascript:editArea.execCommand("area_replace")' selec='none'>{$replace}</a> - <a onclick='Javascript:editArea.execCommand("area_replace_all")' selec='none'>{$replace_all}</a><br /> - </div> - <div id='area_search_msg' selec='none'></div> - </div> - <div id='edit_area_help' class='editarea_popup'> - <div class='close_popup'> - <a onclick='Javascript:editArea.execCommand("close_all_inline_popup")'><img src='[__BASEURL__]images/close.gif' alt='{$close_popup}' title='{$close_popup}' /></a> - </div> - <div><h2>Editarea [__EA_VERSION__]</h2><br /> - <h3>{$shortcuts}:</h3> - {$tab}: {$add_tab}<br /> - {$shift}+{$tab}: {$remove_tab}<br /> - {$ctrl}+f: {$search_command}<br /> - {$ctrl}+r: {$replace_command}<br /> - {$ctrl}+h: {$highlight}<br /> - {$ctrl}+g: {$go_to_line}<br /> - {$ctrl}+z: {$undo}<br /> - {$ctrl}+y: {$redo}<br /> - {$ctrl}+e: {$help}<br /> - {$ctrl}+q, {$esc}: {$close_popup}<br /> - {$accesskey} E: {$toggle}<br /> - <br /> - <em>{$about_notice}</em> - <br /><div class='copyright'>© Christophe Dolivet 2007-2009</div> - </div> - </div> -</body> -</html> diff --git a/wp-content/plugins/comicpress-companion/includes/cceditor.php b/wp-content/plugins/comicpress-companion/includes/cceditor.php deleted file mode 100644 index 67c144a4e..000000000 --- a/wp-content/plugins/comicpress-companion/includes/cceditor.php +++ /dev/null @@ -1,54 +0,0 @@ - -<div id="cceditor" class="show"> - <div class="inside"> - - <form method="post" id="template" name="template" action=""> - <?php wp_nonce_field('update-options') ?> - <table style="width: auto"> - <tr> - <td valign="top"> - <label> - <?php if (!$original) { ?> - Now editing: <?php echo basename($companion_edit_file); ?><br /> - <?php } else { ?> - Now Viewing: style.css<br /> - <?php } ?> - <?php - - if (!$original) { - if ( $is_iis7 ) { - if (win_is_writable($companion_edit_file)) { ?> - File exists and is writable.<br /> - <?php } else { - wp_mkdir_p(dirname($companion_edit_file)); ?> - File Does *not* exist or is not writable, try to save the file. If you still get this error check permissions.<br /> - <?php } - } else { - if (is_writable($companion_edit_file)) { ?> - File Exists and is writable.<br /> - <?php } else { - wp_mkdir_p(dirname($companion_edit_file)); ?> - File Does *not* exist or is not writable, try to save the file. If you still get this error check permissions.<br /> - Loading information from Original. - <?php } - } - } - $base = admin_url(); - ?> - [<a href="<?php echo $base; ?>themes.php?page=companion&file=original">Show Original Style.CSS</a>] | [<a href="<?php echo $base; ?>themes.php?page=companion&file=custom">Edit Custom Style</a>] - <?php global $wpmu_version; if (!$wpmu_version) { ?> - | [<a href="<?php echo $base; ?>themes.php?page=companion&file=head">Add HTML code to the <head> area</a>]<br /> - <?php } ?> - <textarea class="codepress <?php echo $companion_edit_type; ?>" rows="25" style="width: 100%;" name="newcontent" id="newcontent"><?php echo $companion_file_content; ?></textarea><br /> - <br /> - </label> - </td> - </tr> - </table> - <?php if (!$original) { ?> - <input name="submit" type="submit" class="button-primary" value="Save Custom CSS Overrides" /> - <input type="hidden" name="action" value="companion_css_save" /> - <?php } ?> - </form> - </div> -</div> diff --git a/wp-content/plugins/comicpress-companion/includes/ccexamples.php b/wp-content/plugins/comicpress-companion/includes/ccexamples.php deleted file mode 100644 index 15ffaed47..000000000 --- a/wp-content/plugins/comicpress-companion/includes/ccexamples.php +++ /dev/null @@ -1,42 +0,0 @@ - -<div id="ccexamples" class="hide"> - <div class="inside"> - <table class="form-table" style="width: auto"> - <tr> - - <th scope="row"><strong>Modify anything related to design using CSS.</strong><br /> - <br /> - <span style="color: #ed1f24">Avoid modifying the original theme files and use this area instead to preserve changes.</span><br /> - <br /> - HINT: View the style.css file and find elements to change and put them here.<br /> - <br /> - </th> - <td valign="top"> - <p><em style="color: #5db408">/* Change the background. */</em><br />body { background: #ccc; }</p> - <p><em style="color: #5db408">/* Add a dotted line under the post. */</em><br />.post { border-bottom: dotted #ddd; }</p> - <p><em style="color: #5db408">/* change the background of the author of the posts comments */</em><br />.bypostauthor { background: #fdfdf4; }</p> - <p><em style="color: #5db408">/* Add Image to Header AND make it clickable back to home - adjust height width and location of image*/</em><br /> -#header {width: 980px; height: 120px; background: url('/images/header.png') top center no-repeat; overflow: hidden;}<br /> -#header h1 {padding: 0;}<br /> -#header h1 a {display: block; width: 980px; height: 120px; text-indent: -9999px;}<br /> -#header .description {display: none;}<br /> -</p> - <p><em style="color: #5db408">/* Hide the Text in the header. */</em><br />#header h1 a, #header .description { display: none; }</p> - <p><em style="color: #5db408">/* Rounded Corners (not in IE) */</em><br /></p> - <p> - .narrowcolumn {<br /> - -moz-border-radius: 10px;<br /> - -khtml-border-radius: 10px;<br /> - -webkit-border-radius: 10px;<br /> - border-radius: 10px;<br /> - } - </p> - <p> - <em style="color: #5db408">/* make the html page not wobble when reloading to a new page. */</em><br /> - html { overflow-y: scroll; } <br /> - </p> - </td> - </tr> - </table> - </div> -</div> diff --git a/wp-content/plugins/comicpress-companion/includes/cchelp.php b/wp-content/plugins/comicpress-companion/includes/cchelp.php deleted file mode 100644 index f63defccf..000000000 --- a/wp-content/plugins/comicpress-companion/includes/cchelp.php +++ /dev/null @@ -1,23 +0,0 @@ -<div id="cchelp" class="hide"> - <div class="inside"> - <table class="form-table" style="width: auto"> - <tr> - <td colspan="3" width="100%"> - Good guides to start reading to learn about what CSS is:<br /> - <ul> - <ol> - <li><a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets">http://en.wikipedia.org/wiki/Cascading_Style_Sheets</a></li> - <li><a href="http://www.w3schools.com/css/css_intro.asp">http://www.w3schools.com/css/css_intro.asp</a></li> - </ol> - </ul> - </td> - </tr> - <tr> - <td> - <strong>Debug Information:</strong></br> - <?php var_dump(companion_pluginfo()); ?> - </td> - </tr> - </table> - </div> -</div> diff --git a/wp-content/plugins/comicpress-companion/readme.txt b/wp-content/plugins/comicpress-companion/readme.txt deleted file mode 100644 index 681b7af3c..000000000 --- a/wp-content/plugins/comicpress-companion/readme.txt +++ /dev/null @@ -1,112 +0,0 @@ -=== Theme Companion === -Contributors: Frumph -Tags: comicpress, css, editor, plugin, multisite, theme, companion, webcomic -Requires at least: 3.0 -Tested up to: 3.4 -Stable tag: 0.3.4 -Donate link: http://frumph.net/ - -This plugin is used to assist in designing sites without editing the original style.css - -== Description == - -Companion is intended to assist users designing their sites without editing their original style.css files. - -Companion's features include: - -* Editing CSS stylesheets that override the original style.css in the theme. -* Add custom information into the head area of your site/page for non-wpmu sites. - Does NOT activate for Multisite - -= Please do *not* copy the entire style.css into the editor, the editor is used for placing specific element changes. If you want to change the background of your entire site you do = - -body { background: #333333; } - -#333333 being swapped for the color that you want to use. -Notice that you do *not* need to replace the entire CSS element but just the portion you want to override / change. - -== Changelog == -= 0.3.4 = -Cleaned up notices/warnings, verified to work with WordPress 3.4 - -= 0.3.0 = -Verified to work with WordPress 3.1 - -= 0.2.9 = -Fixed the show style.css original etc. - -= 0.2.7 = -Adjusted to use wp_upload_dir() to find the proper directories, i.e. wp 3.0 - -= 0.2.6 = -Adjusted to work with 3.0/Multisite - -= 0.2.5 = -Verified to work with WordPress 2.9.1 - -= 0.2.4 = -The color picker wasnt working out so removed it, fixed the plugindir variable. - -= 0.2.3 = -Browser Selections types are now handled by body classes, so don't need them as css overrides, re-added the color picker to the help page. - -= 0.2.2 = -Rewrote the internals, removed the class because it wasn't working right with included files, /shrug, fixed to work with subdirectory installations - -= 0.2.1 = -Added 'header.html' an edit option that allows you to put metatags custom php and javascript additions to the head area of your site. -fixed some naming conventions to be more appropriate to what your reading in the code -adjusted the help page to include some of the new 2.8.1 comicpress/commpress div id's and classes - -= 0.2.0 = -Fixed pathing for local xampplite installations and seperated WPMU better for pathing. -Prop Joe Kandra from [One Small Step](http://www.osscomic.com/) - -= 0.1.9 = -Fixed to be used with IE - -= 0.1.8 = -New editor, using Edit Area now. Tabbed the pages. - -= 0.1.7 = -Changes the save location of your custom CSS files so they do not get overwritten when upgrading the plugin. - -= 0.1.6 = -Fixes the WPMU path structure for blog.ids and wpmu installs using subdirectories. - -= 0.1.4-5 = -Better pathing, fixes for installs in subdirectories. Removed the funkey acting color picker. - -= 0.1.3 = -* Wordpress Site created the directory comicpress-companion and not comicpress_companion, adjusted. -* Also didn't like the core file in a subdirectory - -= 0.1.1 = -* First release, works with Wordpress and WPMU ComicPress theme installations. - -== Installation == - -1. Upload the `comicpress-companion` directory to the `/wp-content/plugins/` directory -1. Activate the plugin through the 'Plugins' menu in WordPress -1. Go to Appearance -> ComicPress Companion to start using the Companion. -1. Add CSS code that overrides your current style.css, add only the changed elements. - -== Frequently Asked Questions == - -= The edit screen keeps saying that the file does not exist or the directory is not writeable even after I click save. = - -Check the permissions on the plugin directory comicpress-companion/custom - For more information on this, contact your Webhost. If you are -running WPMU make sure that the blogs.dir for the current blog's /files directory has the proper permissions as well (again as your webhost). - -= I'm having another problem. = - -If it's a serious problem, such as WordPress becoming non-functional or blank screens/errors after you perform certain operations, you will be asked to provide error logs for your server. If you don't know how to get access to these, talk with your Webhost. At that time just remove the plugin from the plugins/ directory. If it still -continue's it is probably not a ComicPress Companion problem. - -== License == - -Companion is released under the GNU GPL version 3.0 or later. - -== Credits == - -Mondo thanks to John Bintz and Tyler Martin for their assistance, bug finding, and with coming up with ComicPress and ComicPress Manager in the first place. - diff --git a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.css b/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.css deleted file mode 100644 index 5373e1141..000000000 --- a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.css +++ /dev/null @@ -1,63 +0,0 @@ -#ccadmin { - font: 11px verdana,arial,sans-serif; - padding: 5px 0 0 0; - line-height: 5px; - margin: 0 0 -1px 0; -} - -#ccadmin div.off { - color: #000; - height: 23px; - margin: 0 2px -2px 0; - line-height: 23px; - padding: 0 10px; - float: left; - background: url(tabs_0.gif) repeat-x left bottom; - border-top: 1px solid #ddd; - border-left: solid 1px #ddd; - border-right: solid 1px #ddd; - position: relative; - cursor: pointer; - z-index: 20; -} -#ccadmin div.on { - color: #c00; - padding: 0 10px; - margin: 0 2px -1px 0; - float: left; - background: url(tabs_2.gif) repeat-x left bottom; - border-top: 1px solid #000; - border-left: 1px solid #000; - border-right: 1px solid #000; - border-bottom: 0px; - cursor: pointer; - height: 23px; - line-height: 22px; - position: relative; - z-index: 100; -} - -div.hide { - display: none; - width: 0; - overflow: hidden; -} -div.show { - clear: left; - display: run-in; - background: #fff; - border: 1px solid #000; - padding: 20px; - z-index: 50; - margin-top: -2px; - position: relative; - font: 11px verdana, arial, sans-serif; - line-height: 18px; -} -div.show img { - float: left; - margin: 0 10px 10px 0; -} -.clear { - clear: both; -} diff --git a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.js b/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.js deleted file mode 100644 index 7722c4ddf..000000000 --- a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages.js +++ /dev/null @@ -1,28 +0,0 @@ -/* ================================================================ -This copyright notice must be untouched at all times. - -The original version of this script and the associated (x)html -is available at http://www.stunicholls.com/various/tabbed_pages.html -Copyright (c) 2005-2007 Stu Nicholls. All rights reserved. -This script and the associated (x)html may be modified in any -way to fit your requirements. -=================================================================== */ - - -onload = function() { - var e, i = 0; - while (e = document.getElementById('ccadmin').getElementsByTagName ('DIV') [i++]) { - if (e.className == 'on' || e.className == 'off') { - e.onclick = function () { - var getEls = document.getElementsByTagName('DIV'); - for (var z=0; z<getEls.length; z++) { - getEls[z].className=getEls[z].className.replace('show', 'hide'); - getEls[z].className=getEls[z].className.replace('on', 'off'); - } - this.className = 'on'; - var max = this.getAttribute('title'); - document.getElementById(max).className = "show"; - } - } - } -} \ No newline at end of file diff --git a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages_ie.css b/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages_ie.css deleted file mode 100644 index f17794082..000000000 --- a/wp-content/plugins/comicpress-companion/tabbed/tabbed_pages_ie.css +++ /dev/null @@ -1,60 +0,0 @@ -#ccadmin { - font: 11px verdana,arial,sans-serif; - padding: 5px 0 0 0; - line-height: 5px; - margin: 0 0 -1px 0; -} - -#ccadmin div.off { - color: #000; - height: 23px; - margin: -1px 2px -1px 0; - line-height: 23px; - padding: 0 10px; - float: left; - background: url(tabs_0.gif) repeat-x left bottom; - border-top: 1px solid #ddd; - border-left: solid 1px #ddd; - border-right: solid 1px #ddd; - position: relative; - cursor: pointer; - z-index: 20; -} -#ccadmin div.on { - color: #c00; - padding: 0 10px; - margin: 0 2px 0 0 0; - float: left; - background: url(tabs_2.gif) repeat-x left bottom; - border-top: 1px solid #000; - border-left: 1px solid #000; - border-right: 1px solid #000; - cursor: pointer; - height: 23px; - line-height: 22px; - position: relative; - z-index: 100; -} - -div.hide { - display: none; - width: 0; - overflow: hidden; -} -div.show { - clear: left; - display: run-in; - background: #fff; - border: 1px solid #000; - padding: 20px; - z-index: 50; - font: 11px verdana, arial, sans-serif; - line-height: 18px; -} -div.show img { - float: left; - margin: 0 10px 10px 0; -} -.clear { - clear: both; -} diff --git a/wp-content/plugins/comicpress-companion/tabbed/tabs_0.gif b/wp-content/plugins/comicpress-companion/tabbed/tabs_0.gif deleted file mode 100644 index 23a57ffdea759f5f773f988ef6dbdeddca651852..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 238 zcmZ?wbhEHb<X})@IKsg2|NsAg|Ni~|_xJzbzyJUK`}gnf-@pHV|M~y(*S{Y>|NQv* z`|FQipTGb5`1Qw!FW=vN`ug_cm)Gw<y?XcQ#oLe1-n@VE=G~*$Z|}c+edqbBJI`O= zdiv_t(`O7wK=CIF13SZi1|5(X$W8{<Yz2irrNns|tJb}Euy38h`J%-8WeeW#diZ}| zbAg77ME|jtqLm>Q^Ut-GXr)H1zt&c^y0l{dz4i*7wi)N2byTgLw&VW0&KkYtH{O5i os$0MP$NxI<rsgJzw)Qs3uI?`BzWzR`Ns}i{m^OVzpCW@b03XAUCjbBd diff --git a/wp-content/plugins/comicpress-companion/tabbed/tabs_2.gif b/wp-content/plugins/comicpress-companion/tabbed/tabs_2.gif deleted file mode 100644 index 5be6dd0708389db6b4d066d11f0cbdec3050d05a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 226 zcmZ?wbhEHb<X})@IKsg2|NsBLfB*gc`~T0Mf4~3y`}O<p&tHFj{QUjp$M0`Het-V{ z>(jTNAHV*1|M}b7PhVeu`111I=jU%eJ$e29(W|$Qp1->P<i(vQ&lzw7#h)w;><s@I zbU;c#b~3QWC#d!<N}Z>+bls~b`wDD4OMKlc`kZUd+aFN4;HV=ceL`i@!5pjk7oH_~ zt&I}zT2pp9RAJwP{3IVa`ExI}RP~zexc{!HMo<05`)`eP>-m5DuVZRzZenO_@96C6 K?&(luum%8<Om=Mm -- GitLab