WP Editor - Version 1.1

Version Description

  • Added syntax highlighter for page/post editor
  • Added in monospace font for default theme/plugin/post editor
  • Updated Edit links in plugins page to work with WP 3.4 updates
  • Updated CSS themes to limit number of resources loaded
  • Updated CSS highlighting for Ruby Blue and Monokai themes
  • Fixed theme and plugin editors to allow disabling of line wrapping
Download this release

Release Info

Developer benjaminprojas
Plugin Icon 128x128 WP Editor
Version 1.1
Comparing to
See all releases

Code changes from version 1.0.3 to 1.1

classes/WPEditor.php CHANGED
@@ -30,6 +30,11 @@ class WPEditor {
30
  // Set the database to upgrade instead of first time install
31
  WPEditorSetting::setValue('upgrade', 1);
32
 
 
 
 
 
 
33
  // Check if the plugin and theme editors have been hidden before and hide them if not
34
  if(!WPEditorSetting::getValue('hide_default_plugin_editor')) {
35
  WPEditorSetting::setValue('hide_default_plugin_editor', 1);
@@ -53,6 +58,11 @@ class WPEditor {
53
  WPEditorSetting::setValue('enable_theme_line_numbers', 1);
54
  }
55
 
 
 
 
 
 
56
  // Check if plugin line wrapping has been disabled and enable if not
57
  if(!WPEditorSetting::getValue('enable_plugin_line_wrapping')) {
58
  WPEditorSetting::setValue('enable_plugin_line_wrapping', 1);
@@ -63,6 +73,11 @@ class WPEditor {
63
  WPEditorSetting::setValue('enable_theme_line_wrapping', 1);
64
  }
65
 
 
 
 
 
 
66
  // Check if plugin active line highlighting has been disabled and enable if not
67
  if(!WPEditorSetting::getValue('enable_plugin_active_line')) {
68
  WPEditorSetting::setValue('enable_plugin_active_line', 1);
@@ -73,6 +88,11 @@ class WPEditor {
73
  WPEditorSetting::setValue('enable_theme_active_line', 1);
74
  }
75
 
 
 
 
 
 
76
  // Check if the default allowed extensions for the plugin editor have been set and set if not
77
  if(!WPEditorSetting::getValue('plugin_editor_allowed_extensions')) {
78
  WPEditorSetting::setValue('plugin_editor_allowed_extensions', 'php~js~css~txt~htm~html~jpg~jpeg~png~gif~sql~po');
@@ -167,6 +187,8 @@ class WPEditor {
167
  // Replace default plugin edit links
168
  add_filter('plugin_action_links', array($this, 'replacePluginEditLinks'),9,1);
169
 
 
 
170
  }
171
  }
172
 
@@ -177,36 +199,32 @@ class WPEditor {
177
  require_once(WPEDITOR_PATH . 'classes/WPEditorException.php');
178
  require_once(WPEDITOR_PATH . 'classes/WPEditorLog.php');
179
  require_once(WPEDITOR_PATH . 'classes/WPEditorPlugins.php');
 
180
  require_once(WPEDITOR_PATH . 'classes/WPEditorSetting.php');
181
  require_once(WPEDITOR_PATH . 'classes/WPEditorThemes.php');
182
  }
183
 
184
  public function registerDefaultStylesheet() {
185
- wp_register_style('wpeditor', WPEDITOR_URL . '/wpeditor.css');
186
- wp_register_style('fancybox', WPEDITOR_URL . '/extensions/fancybox/jquery.fancybox-1.3.4.css');
187
- wp_register_style('codemirror', WPEDITOR_URL . '/extensions/codemirror/codemirror.css');
188
- wp_register_style('codemirror_dialog', WPEDITOR_URL . '/extensions/codemirror/dialog.css');
189
- wp_register_style('codemirror_theme_cobalt', WPEDITOR_URL . '/extensions/codemirror/themes/cobalt.css');
190
- wp_register_style('codemirror_theme_eclipse', WPEDITOR_URL . '/extensions/codemirror/themes/eclipse.css');
191
- wp_register_style('codemirror_theme_elegant', WPEDITOR_URL . '/extensions/codemirror/themes/elegant.css');
192
- wp_register_style('codemirror_theme_monokai', WPEDITOR_URL . '/extensions/codemirror/themes/monokai.css');
193
- wp_register_style('codemirror_theme_neat', WPEDITOR_URL . '/extensions/codemirror/themes/neat.css');
194
- wp_register_style('codemirror_theme_night', WPEDITOR_URL . '/extensions/codemirror/themes/night.css');
195
- wp_register_style('codemirror_theme_rubyblue', WPEDITOR_URL . '/extensions/codemirror/themes/rubyblue.css');
196
  }
197
 
198
  public function registerDefaultScript() {
199
- wp_register_script('wpeditor', WPEDITOR_URL . '/js/wpeditor.js');
200
- wp_register_script('fancybox', WPEDITOR_URL . '/extensions/fancybox/js/jquery.fancybox-1.3.4.pack.js');
201
- wp_register_script('codemirror', WPEDITOR_URL . '/extensions/codemirror/js/codemirror.js');
202
- wp_register_script('codemirror_php', WPEDITOR_URL . '/extensions/codemirror/js/php.js');
203
- wp_register_script('codemirror_javascript', WPEDITOR_URL . '/extensions/codemirror/js/javascript.js');
204
- wp_register_script('codemirror_css', WPEDITOR_URL . '/extensions/codemirror/js/css.js');
205
- wp_register_script('codemirror_xml', WPEDITOR_URL . '/extensions/codemirror/js/xml.js');
206
- wp_register_script('codemirror_clike', WPEDITOR_URL . '/extensions/codemirror/js/clike.js');
207
- wp_register_script('codemirror_dialog', WPEDITOR_URL . '/extensions/codemirror/js/dialog.js');
208
- wp_register_script('codemirror_search', WPEDITOR_URL . '/extensions/codemirror/js/search.js');
209
- wp_register_script('codemirror_searchcursor', WPEDITOR_URL . '/extensions/codemirror/js/searchcursor.js');
 
210
  //wp_register_script('codemirror_foldcode', WPEDITOR_URL . '/extensions/codemirror/js/foldcode.js');
211
  }
212
 
30
  // Set the database to upgrade instead of first time install
31
  WPEditorSetting::setValue('upgrade', 1);
32
 
33
+ // Check if the post editor has been enabled and enable if not
34
+ if(!WPEditorSetting::getValue('enable_post_editor')) {
35
+ WPEditorSetting::setValue('enable_post_editor', 1);
36
+ }
37
+
38
  // Check if the plugin and theme editors have been hidden before and hide them if not
39
  if(!WPEditorSetting::getValue('hide_default_plugin_editor')) {
40
  WPEditorSetting::setValue('hide_default_plugin_editor', 1);
58
  WPEditorSetting::setValue('enable_theme_line_numbers', 1);
59
  }
60
 
61
+ // Check if the post line numbers have been disabled and enable if not
62
+ if(!WPEditorSetting::getValue('enable_post_line_numbers')) {
63
+ WPEditorSetting::setValue('enable_post_line_numbers', 1);
64
+ }
65
+
66
  // Check if plugin line wrapping has been disabled and enable if not
67
  if(!WPEditorSetting::getValue('enable_plugin_line_wrapping')) {
68
  WPEditorSetting::setValue('enable_plugin_line_wrapping', 1);
73
  WPEditorSetting::setValue('enable_theme_line_wrapping', 1);
74
  }
75
 
76
+ // Check if post line wrapping has been disabled and enable if not
77
+ if(!WPEditorSetting::getValue('enable_post_line_wrapping')) {
78
+ WPEditorSetting::setValue('enable_post_line_wrapping', 1);
79
+ }
80
+
81
  // Check if plugin active line highlighting has been disabled and enable if not
82
  if(!WPEditorSetting::getValue('enable_plugin_active_line')) {
83
  WPEditorSetting::setValue('enable_plugin_active_line', 1);
88
  WPEditorSetting::setValue('enable_theme_active_line', 1);
89
  }
90
 
91
+ // Check if post active line highlighting has been disabled and enable if not
92
+ if(!WPEditorSetting::getValue('enable_post_active_line')) {
93
+ WPEditorSetting::setValue('enable_post_active_line', 1);
94
+ }
95
+
96
  // Check if the default allowed extensions for the plugin editor have been set and set if not
97
  if(!WPEditorSetting::getValue('plugin_editor_allowed_extensions')) {
98
  WPEditorSetting::setValue('plugin_editor_allowed_extensions', 'php~js~css~txt~htm~html~jpg~jpeg~png~gif~sql~po');
187
  // Replace default plugin edit links
188
  add_filter('plugin_action_links', array($this, 'replacePluginEditLinks'),9,1);
189
 
190
+ add_filter('the_editor', array('WPEditorPosts', 'addPostsJquery'));
191
+
192
  }
193
  }
194
 
199
  require_once(WPEDITOR_PATH . 'classes/WPEditorException.php');
200
  require_once(WPEDITOR_PATH . 'classes/WPEditorLog.php');
201
  require_once(WPEDITOR_PATH . 'classes/WPEditorPlugins.php');
202
+ require_once(WPEDITOR_PATH . 'classes/WPEditorPosts.php');
203
  require_once(WPEDITOR_PATH . 'classes/WPEditorSetting.php');
204
  require_once(WPEDITOR_PATH . 'classes/WPEditorThemes.php');
205
  }
206
 
207
  public function registerDefaultStylesheet() {
208
+ wp_register_style('wpeditor', WPEDITOR_URL . '/wpeditor.css', false, WPEDITOR_VERSION_NUMBER);
209
+ wp_register_style('fancybox', WPEDITOR_URL . '/extensions/fancybox/jquery.fancybox-1.3.4.css', false, WPEDITOR_VERSION_NUMBER);
210
+ wp_register_style('codemirror', WPEDITOR_URL . '/extensions/codemirror/codemirror.css', false, WPEDITOR_VERSION_NUMBER);
211
+ wp_register_style('codemirror_dialog', WPEDITOR_URL . '/extensions/codemirror/dialog.css', false, WPEDITOR_VERSION_NUMBER);
212
+ wp_register_style('codemirror_themes', WPEDITOR_URL . '/extensions/codemirror/theme/theme.css', false, WPEDITOR_VERSION_NUMBER);
 
 
 
 
 
 
213
  }
214
 
215
  public function registerDefaultScript() {
216
+ wp_register_script('wpeditor', WPEDITOR_URL . '/js/wpeditor.js', false, WPEDITOR_VERSION_NUMBER);
217
+ wp_register_script('wp-editor-posts-jquery', WPEDITOR_URL . '/js/posts-jquery.js', false, WPEDITOR_VERSION_NUMBER, true);
218
+ wp_register_script('fancybox', WPEDITOR_URL . '/extensions/fancybox/js/jquery.fancybox-1.3.4.pack.js', false, WPEDITOR_VERSION_NUMBER);
219
+ wp_register_script('codemirror', WPEDITOR_URL . '/extensions/codemirror/js/codemirror.js', false, WPEDITOR_VERSION_NUMBER);
220
+ wp_register_script('codemirror_php', WPEDITOR_URL . '/extensions/codemirror/js/php.js', false, WPEDITOR_VERSION_NUMBER);
221
+ wp_register_script('codemirror_javascript', WPEDITOR_URL . '/extensions/codemirror/js/javascript.js', false, WPEDITOR_VERSION_NUMBER);
222
+ wp_register_script('codemirror_css', WPEDITOR_URL . '/extensions/codemirror/js/css.js', false, WPEDITOR_VERSION_NUMBER);
223
+ wp_register_script('codemirror_xml', WPEDITOR_URL . '/extensions/codemirror/js/xml.js', false, WPEDITOR_VERSION_NUMBER);
224
+ wp_register_script('codemirror_clike', WPEDITOR_URL . '/extensions/codemirror/js/clike.js', false, WPEDITOR_VERSION_NUMBER);
225
+ wp_register_script('codemirror_dialog', WPEDITOR_URL . '/extensions/codemirror/js/dialog.js', false, WPEDITOR_VERSION_NUMBER);
226
+ wp_register_script('codemirror_search', WPEDITOR_URL . '/extensions/codemirror/js/search.js', false, WPEDITOR_VERSION_NUMBER);
227
+ wp_register_script('codemirror_searchcursor', WPEDITOR_URL . '/extensions/codemirror/js/searchcursor.js', false, WPEDITOR_VERSION_NUMBER);
228
  //wp_register_script('codemirror_foldcode', WPEDITOR_URL . '/extensions/codemirror/js/foldcode.js');
229
  }
230
 
classes/WPEditorAdmin.php CHANGED
@@ -48,13 +48,7 @@ class WPEditorAdmin {
48
  wp_enqueue_script('fancybox');
49
  wp_enqueue_style('codemirror');
50
  wp_enqueue_style('codemirror_dialog');
51
- wp_enqueue_style('codemirror_theme_cobalt');
52
- wp_enqueue_style('codemirror_theme_eclipse');
53
- wp_enqueue_style('codemirror_theme_elegant');
54
- wp_enqueue_style('codemirror_theme_monokai');
55
- wp_enqueue_style('codemirror_theme_neat');
56
- wp_enqueue_style('codemirror_theme_night');
57
- wp_enqueue_style('codemirror_theme_rubyblue');
58
  wp_enqueue_script('codemirror');
59
  wp_enqueue_script('codemirror_php');
60
  wp_enqueue_script('codemirror_javascript');
48
  wp_enqueue_script('fancybox');
49
  wp_enqueue_style('codemirror');
50
  wp_enqueue_style('codemirror_dialog');
51
+ wp_enqueue_style('codemirror_themes');
 
 
 
 
 
 
52
  wp_enqueue_script('codemirror');
53
  wp_enqueue_script('codemirror_php');
54
  wp_enqueue_script('codemirror_javascript');
classes/WPEditorPlugins.php CHANGED
@@ -30,8 +30,8 @@ class WPEditorPlugins {
30
  }
31
  else {
32
  $file = stripslashes($file);
 
33
  }
34
-
35
  $pf = WPEditorBrowser::getFilesAndFolders((WPWINDOWS) ? str_replace("/", "\\", WP_PLUGIN_DIR . '/' . $file) : WP_PLUGIN_DIR . '/' . $file, 0, 'plugin');
36
  foreach($pf as $plugin_file) {
37
  foreach($plugin_file as $k => $p) {
30
  }
31
  else {
32
  $file = stripslashes($file);
33
+ $plugin = $file;
34
  }
 
35
  $pf = WPEditorBrowser::getFilesAndFolders((WPWINDOWS) ? str_replace("/", "\\", WP_PLUGIN_DIR . '/' . $file) : WP_PLUGIN_DIR . '/' . $file, 0, 'plugin');
36
  foreach($pf as $plugin_file) {
37
  foreach($plugin_file as $k => $p) {
classes/WPEditorPosts.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class WPEditorPosts {
3
+
4
+ public function addPostsJquery($editor) {
5
+ if(WPEditorSetting::getValue('enable_post_editor')) {
6
+ $theme = WPEditorSetting::getValue('post_editor_theme') ? WPEditorSetting::getValue('post_editor_theme') : 'default';
7
+ $activeLine = WPEditorSetting::getValue('enable_post_active_line') == 1 ? 'activeline-' . $theme : '';
8
+ $post_editor_settings = array(
9
+ 'mode' => 'text/html',
10
+ 'theme' => $theme,
11
+ 'activeLine' => $activeLine,
12
+ 'lineNumbers' => WPEditorSetting::getValue('enable_post_line_numbers') == 1 ? true : false,
13
+ 'lineWrapping' => WPEditorSetting::getValue('enable_post_line_wrapping') == 1 ? true : false,
14
+ 'enterImgUrl' => __('Enter the URL of the image:', 'wpeditor'),
15
+ 'enterImgDescription' => __('Enter a description of the image:', 'wpeditor'),
16
+ 'lookupWord' => __('Enter a word to look up:', 'wpeditor')
17
+ );
18
+ wp_enqueue_script('wp-editor-posts-jquery');
19
+ wp_localize_script('wp-editor-posts-jquery', 'WPEPosts', $post_editor_settings);
20
+ }
21
+ return $editor;
22
+ }
23
+
24
+ }
extensions/codemirror/codemirror.css CHANGED
@@ -1,3 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .CodeMirror-scroll {
2
  border:1px solid #ccc;
3
  overflow: auto;
1
+ .wpe-quicktags-toolbar {
2
+ -webkit-border-top-right-radius: 3px;
3
+ -webkit-border-top-left-radius: 3px;
4
+ border-top-right-radius: 3px;
5
+ border-top-left-radius: 3px;
6
+ min-height: 29px;
7
+ border-bottom: 1px solid #CCC;
8
+ padding: 2px 8px 0;
9
+ background-color: #E9E9E9;
10
+ color: #333;
11
+ background-image: -ms-linear-gradient(bottom,#DDD,#E9E9E9);
12
+ background-image: -moz-linear-gradient(bottom,#DDD,#E9E9E9);
13
+ background-image: -o-linear-gradient(bottom,#DDD,#E9E9E9);
14
+ background-image: -webkit-linear-gradient(bottom,#DDD,#E9E9E9);
15
+ background-image: linear-gradient(bottom,#DDD,#E9E9E9);
16
+ }
17
+ .wpe-quicktags-toolbar input {
18
+ margin: 2px 1px 4px;
19
+ line-height: 18px;
20
+ display: inline-block;
21
+ min-width: 26px;
22
+ padding: 2px 4px;
23
+ font: 12px/18px Arial,Helvetica,sans-serif normal;
24
+ color: #464646;
25
+ border: 1px solid #C3C3C3;
26
+ -webkit-border-radius: 3px;
27
+ border-radius: 3px;
28
+ background-color: #EEE;
29
+ background-image: -ms-linear-gradient(bottom,#E3E3E3,white);
30
+ background-image: -moz-linear-gradient(bottom,#E3E3E3,white);
31
+ background-image: -o-linear-gradient(bottom,#E3E3E3,white);
32
+ background-image: -webkit-linear-gradient(bottom,#E3E3E3,white);
33
+ background-image: linear-gradient(bottom,#E3E3E3,white);
34
+ }
35
+ .CodeMirror {
36
+ line-height: 1em;
37
+ font-family: monospace;
38
+ }
39
  .CodeMirror-scroll {
40
  border:1px solid #ccc;
41
  overflow: auto;
extensions/codemirror/theme/cobalt.css DELETED
@@ -1,18 +0,0 @@
1
- .cm-s-cobalt { background: #002240; color: white; }
2
- .cm-s-cobalt span.CodeMirror-selected { background: #b36539 !important; }
3
- .cm-s-cobalt .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
4
- .cm-s-cobalt .CodeMirror-gutter-text { color: #d0d0d0; }
5
- .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
6
-
7
- .cm-s-cobalt span.cm-comment { color: #08f; }
8
- .cm-s-cobalt span.cm-atom { color: #845dc4; }
9
- .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
10
- .cm-s-cobalt span.cm-keyword { color: #ffee80; }
11
- .cm-s-cobalt span.cm-string { color: #3ad900; }
12
- .cm-s-cobalt span.cm-meta { color: #ff9d00; }
13
- .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
14
- .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
15
- .cm-s-cobalt span.cm-error { color: #9d1e15; }
16
- .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
17
- .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
18
- .cm-s-cobalt span.cm-link { color: #845dc4; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/eclipse.css DELETED
@@ -1,25 +0,0 @@
1
- .cm-s-eclipse span.cm-meta {color: #FF1717;}
2
- .cm-s-eclipse span.cm-keyword { font-weight: bold; color: #7F0055; }
3
- .cm-s-eclipse span.cm-atom {color: #219;}
4
- .cm-s-eclipse span.cm-number {color: #164;}
5
- .cm-s-eclipse span.cm-def {color: #00f;}
6
- .cm-s-eclipse span.cm-variable {color: black;}
7
- .cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
8
- .cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
9
- .cm-s-eclipse span.cm-property {color: black;}
10
- .cm-s-eclipse span.cm-operator {color: black;}
11
- .cm-s-eclipse span.cm-comment {color: #3F7F5F;}
12
- .cm-s-eclipse span.cm-string {color: #2A00FF;}
13
- .cm-s-eclipse span.cm-string-2 {color: #f50;}
14
- .cm-s-eclipse span.cm-error {color: #f00;}
15
- .cm-s-eclipse span.cm-qualifier {color: #555;}
16
- .cm-s-eclipse span.cm-builtin {color: #30a;}
17
- .cm-s-eclipse span.cm-bracket {color: #cc7;}
18
- .cm-s-eclipse span.cm-tag {color: #170;}
19
- .cm-s-eclipse span.cm-attribute {color: #00c;}
20
- .cm-s-eclipse span.cm-link {color: #219;}
21
-
22
- .cm-s-eclipse .CodeMirror-matchingbracket {
23
- border:1px solid grey;
24
- color:black !important;;
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/elegant.css DELETED
@@ -1,10 +0,0 @@
1
- .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
2
- .cm-s-elegant span.cm-comment {color: #262;font-style: italic;}
3
- .cm-s-elegant span.cm-meta {color: #555;font-style: italic;}
4
- .cm-s-elegant span.cm-variable {color: black;}
5
- .cm-s-elegant span.cm-variable-2 {color: #b11;}
6
- .cm-s-elegant span.cm-qualifier {color: #555;}
7
- .cm-s-elegant span.cm-keyword {color: #730;}
8
- .cm-s-elegant span.cm-builtin {color: #30a;}
9
- .cm-s-elegant span.cm-error {background-color: #fdd;}
10
- .cm-s-elegant span.cm-link {color: #762;}
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/monokai.css DELETED
@@ -1,28 +0,0 @@
1
- /* Based on Sublime Text's Monokai theme */
2
-
3
- .cm-s-monokai {background: #272822; color: #f8f8f2;}
4
- .cm-s-monokai span.CodeMirror-selected {background: #ffe792 !important;}
5
- .cm-s-monokai .CodeMirror-gutter {background: #272822; border-right: 0px;}
6
- .cm-s-monokai .CodeMirror-gutter-text {color: #d0d0d0;}
7
- .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
8
-
9
- .cm-s-monokai span.cm-comment {color: #75715e;}
10
- .cm-s-monokai span.cm-atom {color: #ae81ff;}
11
- .cm-s-monokai span.cm-number {color: #ae81ff;}
12
-
13
- .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
14
- .cm-s-monokai span.cm-keyword {color: #f92672;}
15
- .cm-s-monokai span.cm-string {color: #e6db74;}
16
-
17
- .cm-s-monokai span.cm-variable {color: #a6e22e;}
18
- .cm-s-monokai span.cm-variable-2 {color: #9effff;}
19
- .cm-s-monokai span.cm-def {color: #fd971f;}
20
- .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
21
- .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
22
- .cm-s-monokai span.cm-tag {color: #f92672;}
23
- .cm-s-monokai span.cm-link {color: #ae81ff;}
24
-
25
- .cm-s-monokai .CodeMirror-matchingbracket {
26
- text-decoration: underline;
27
- color: white !important;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/neat.css DELETED
@@ -1,9 +0,0 @@
1
- .cm-s-neat span.cm-comment { color: #a86; }
2
- .cm-s-neat span.cm-keyword { font-weight: bold; color: blue; }
3
- .cm-s-neat span.cm-string { color: #a22; }
4
- .cm-s-neat span.cm-builtin { font-weight: bold; color: #077; }
5
- .cm-s-neat span.cm-special { font-weight: bold; color: #0aa; }
6
- .cm-s-neat span.cm-variable { color: black; }
7
- .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
8
- .cm-s-neat span.cm-meta {color: #555;}
9
- .cm-s-neat span.cm-link { color: #3a3; }
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/night.css DELETED
@@ -1,21 +0,0 @@
1
- /* Loosely based on the Midnight Textmate theme */
2
-
3
- .cm-s-night { background: #0a001f; color: #f8f8f8; }
4
- .cm-s-night span.CodeMirror-selected { background: #a8f !important; }
5
- .cm-s-night .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
6
- .cm-s-night .CodeMirror-gutter-text { color: #f8f8f8; }
7
- .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
8
-
9
- .cm-s-night span.cm-comment { color: #6900a1; }
10
- .cm-s-night span.cm-atom { color: #845dc4; }
11
- .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
12
- .cm-s-night span.cm-keyword { color: #599eff; }
13
- .cm-s-night span.cm-string { color: #37f14a; }
14
- .cm-s-night span.cm-meta { color: #7678e2; }
15
- .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
16
- .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
17
- .cm-s-night span.cm-error { color: #9d1e15; }
18
- .cm-s-night span.cm-bracket { color: #8da6ce; }
19
- .cm-s-night span.cm-comment { color: #6900a1; }
20
- .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
21
- .cm-s-night span.cm-link { color: #845dc4; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/rubyblue.css DELETED
@@ -1,21 +0,0 @@
1
- .cm-s-rubyblue { font:13px/1.4em Trebuchet, Verdana, sans-serif; } /* - customized editor font - */
2
-
3
- .cm-s-rubyblue { background: #112435; color: white; }
4
- .cm-s-rubyblue span.CodeMirror-selected { background: #0000FF !important; }
5
- .cm-s-rubyblue .CodeMirror-gutter { background: #1F4661; border-right: 7px solid #3E7087; min-width:2.5em; }
6
- .cm-s-rubyblue .CodeMirror-gutter-text { color: white; }
7
- .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
8
-
9
- .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; }
10
- .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
11
- .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
12
- .cm-s-rubyblue span.cm-keyword { color: #F0F; }
13
- .cm-s-rubyblue span.cm-string { color: #F08047; }
14
- .cm-s-rubyblue span.cm-meta { color: #F0F; }
15
- .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
16
- .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
17
- .cm-s-rubyblue span.cm-error { color: #AF2018; }
18
- .cm-s-rubyblue span.cm-bracket { color: #F0F; }
19
- .cm-s-rubyblue span.cm-link { color: #F4C20B; }
20
- .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
21
- .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
extensions/codemirror/theme/theme.css ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************
2
+ * Cobalt
3
+ ************************************************************/
4
+ .cm-s-cobalt { background: #002240; color: white; }
5
+ .cm-s-cobalt span.CodeMirror-selected { background: #b36539 !important; }
6
+ .cm-s-cobalt .CodeMirror-gutter { background: #002240; border-right: 1px solid #aaa; }
7
+ .cm-s-cobalt .CodeMirror-gutter-text { color: #d0d0d0; }
8
+ .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
9
+
10
+ .cm-s-cobalt span.cm-comment { color: #08f; }
11
+ .cm-s-cobalt span.cm-atom { color: #845dc4; }
12
+ .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
13
+ .cm-s-cobalt span.cm-keyword { color: #ffee80; }
14
+ .cm-s-cobalt span.cm-string { color: #3ad900; }
15
+ .cm-s-cobalt span.cm-meta { color: #ff9d00; }
16
+ .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
17
+ .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
18
+ .cm-s-cobalt span.cm-error { color: #9d1e15; }
19
+ .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
20
+ .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
21
+ .cm-s-cobalt span.cm-link { color: #845dc4; }
22
+
23
+ /************************************************************
24
+ * Eclipse
25
+ ************************************************************/
26
+ .cm-s-eclipse span.cm-meta {color: #FF1717;}
27
+ .cm-s-eclipse span.cm-keyword { font-weight: bold; color: #7F0055; }
28
+ .cm-s-eclipse span.cm-atom {color: #219;}
29
+ .cm-s-eclipse span.cm-number {color: #164;}
30
+ .cm-s-eclipse span.cm-def {color: #00f;}
31
+ .cm-s-eclipse span.cm-variable {color: black;}
32
+ .cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
33
+ .cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
34
+ .cm-s-eclipse span.cm-property {color: black;}
35
+ .cm-s-eclipse span.cm-operator {color: black;}
36
+ .cm-s-eclipse span.cm-comment {color: #3F7F5F;}
37
+ .cm-s-eclipse span.cm-string {color: #2A00FF;}
38
+ .cm-s-eclipse span.cm-string-2 {color: #f50;}
39
+ .cm-s-eclipse span.cm-error {color: #f00;}
40
+ .cm-s-eclipse span.cm-qualifier {color: #555;}
41
+ .cm-s-eclipse span.cm-builtin {color: #30a;}
42
+ .cm-s-eclipse span.cm-bracket {color: #cc7;}
43
+ .cm-s-eclipse span.cm-tag {color: #170;}
44
+ .cm-s-eclipse span.cm-attribute {color: #00c;}
45
+ .cm-s-eclipse span.cm-link {color: #219;}
46
+ .cm-s-eclipse .CodeMirror-matchingbracket {border:1px solid grey; color:black !important;}
47
+
48
+ /************************************************************
49
+ * Elegant
50
+ ************************************************************/
51
+ .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;}
52
+ .cm-s-elegant span.cm-comment {color: #262;font-style: italic;}
53
+ .cm-s-elegant span.cm-meta {color: #555;font-style: italic;}
54
+ .cm-s-elegant span.cm-variable {color: black;}
55
+ .cm-s-elegant span.cm-variable-2 {color: #b11;}
56
+ .cm-s-elegant span.cm-qualifier {color: #555;}
57
+ .cm-s-elegant span.cm-keyword {color: #730;}
58
+ .cm-s-elegant span.cm-builtin {color: #30a;}
59
+ .cm-s-elegant span.cm-error {background-color: #fdd;}
60
+ .cm-s-elegant span.cm-link {color: #762;}
61
+
62
+ /************************************************************
63
+ * Monokai
64
+ ************************************************************/
65
+ .cm-s-monokai {background: #272822; color: #f8f8f2;}
66
+ .cm-s-monokai span.CodeMirror-selected {background: #ffe792 !important;color:#00F !important;}
67
+ .cm-s-monokai .CodeMirror-gutter {background: #272822; border-right: 0px;}
68
+ .cm-s-monokai .CodeMirror-gutter-text {color: #d0d0d0;}
69
+ .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
70
+ .cm-s-monokai span.cm-comment {color: #75715e;}
71
+ .cm-s-monokai span.cm-atom {color: #ae81ff;}
72
+ .cm-s-monokai span.cm-number {color: #ae81ff;}
73
+ .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
74
+ .cm-s-monokai span.cm-keyword {color: #f92672;}
75
+ .cm-s-monokai span.cm-string {color: #e6db74;}
76
+ .cm-s-monokai span.cm-variable {color: #a6e22e;}
77
+ .cm-s-monokai span.cm-variable-2 {color: #9effff;}
78
+ .cm-s-monokai span.cm-def {color: #fd971f;}
79
+ .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
80
+ .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
81
+ .cm-s-monokai span.cm-tag {color: #f92672;}
82
+ .cm-s-monokai span.cm-link {color: #ae81ff;}
83
+ .cm-s-monokai .CodeMirror-matchingbracket {text-decoration: underline;color: white !important;}
84
+
85
+ /************************************************************
86
+ * Neat
87
+ ************************************************************/
88
+ .cm-s-neat span.cm-comment { color: #a86; }
89
+ .cm-s-neat span.cm-keyword { font-weight: bold; color: blue; }
90
+ .cm-s-neat span.cm-string { color: #a22; }
91
+ .cm-s-neat span.cm-builtin { font-weight: bold; color: #077; }
92
+ .cm-s-neat span.cm-special { font-weight: bold; color: #0aa; }
93
+ .cm-s-neat span.cm-variable { color: black; }
94
+ .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; }
95
+ .cm-s-neat span.cm-meta {color: #555;}
96
+ .cm-s-neat span.cm-link { color: #3a3; }
97
+
98
+ /************************************************************
99
+ * Night
100
+ ************************************************************/
101
+ .cm-s-night { background: #0a001f; color: #f8f8f8; }
102
+ .cm-s-night span.CodeMirror-selected { background: #a8f !important; }
103
+ .cm-s-night .CodeMirror-gutter { background: #0a001f; border-right: 1px solid #aaa; }
104
+ .cm-s-night .CodeMirror-gutter-text { color: #f8f8f8; }
105
+ .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
106
+ .cm-s-night span.cm-comment { color: #6900a1; }
107
+ .cm-s-night span.cm-atom { color: #845dc4; }
108
+ .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
109
+ .cm-s-night span.cm-keyword { color: #599eff; }
110
+ .cm-s-night span.cm-string { color: #37f14a; }
111
+ .cm-s-night span.cm-meta { color: #7678e2; }
112
+ .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
113
+ .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
114
+ .cm-s-night span.cm-error { color: #9d1e15; }
115
+ .cm-s-night span.cm-bracket { color: #8da6ce; }
116
+ .cm-s-night span.cm-comment { color: #6900a1; }
117
+ .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
118
+ .cm-s-night span.cm-link { color: #845dc4; }
119
+
120
+ /************************************************************
121
+ * Ruby Blue
122
+ ************************************************************/
123
+ .cm-s-rubyblue { font:13px/1.4em Trebuchet, Verdana, sans-serif; }
124
+ .cm-s-rubyblue { background: #112435; color: white; }
125
+ .cm-s-rubyblue span.CodeMirror-selected { background: #FFE792 !important;color:#00F !important; }
126
+ .cm-s-rubyblue .CodeMirror-gutter { background: #1F4661; border-right: 7px solid #3E7087; min-width:2.5em; }
127
+ .cm-s-rubyblue .CodeMirror-gutter-text { color: white; }
128
+ .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
129
+ .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; }
130
+ .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
131
+ .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
132
+ .cm-s-rubyblue span.cm-keyword { color: #F0F; }
133
+ .cm-s-rubyblue span.cm-string { color: #F08047; }
134
+ .cm-s-rubyblue span.cm-meta { color: #F0F; }
135
+ .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
136
+ .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
137
+ .cm-s-rubyblue span.cm-error { color: #AF2018; }
138
+ .cm-s-rubyblue span.cm-bracket { color: #F0F; }
139
+ .cm-s-rubyblue span.cm-link { color: #F4C20B; }
140
+ .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
141
+ .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
js/posts-jquery.js ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ editor_status = '';
2
+ tags = {};
3
+ (function($){
4
+ $(window).load(function() {
5
+ if(!isTinyMCE()) {
6
+ setTimeout(setupPostEditor, 50);
7
+ }
8
+ else {
9
+ editor_status = 'tmce';
10
+ }
11
+ })
12
+ function _datetime() {
13
+ var now = new Date(), zeroise;
14
+
15
+ zeroise = function(number) {
16
+ var str = number.toString();
17
+ if(str.length < 2) {
18
+ str = "0" + str;
19
+ }
20
+ return str;
21
+ }
22
+
23
+ return now.getUTCFullYear() + '-' + zeroise(now.getUTCMonth() + 1) + '-' + zeroise(now.getUTCDate()) + 'T' + zeroise(now.getUTCHours()) + ':' + zeroise(now.getUTCMinutes()) + ':' + zeroise(now.getUTCSeconds()) + '+00:00';
24
+ }
25
+ function insertOpenCloseTag(tag, title, beginningTag, endTag) {
26
+
27
+ var selection = editor.getSelection();
28
+ if(selection != '') {
29
+ editor.replaceSelection(beginningTag + selection + endTag, 'end');
30
+ editor.focus();
31
+ }
32
+ else {
33
+ if(!tags[tag]) {
34
+ tags[tag] = {'lastTag': 0};
35
+ }
36
+ if(beginningTag == '') {
37
+ editor.replaceSelection(endTag, 'end');
38
+ $('#wpe_qt_content_' + tag).val(title);
39
+ editor.focus();
40
+ }
41
+ else if(endTag == '') {
42
+ editor.replaceSelection(beginningTag, 'end');
43
+ editor.focus();
44
+ }
45
+ else if(!tags[tag].lastTag || tags[tag].lastTag == 0) {
46
+ editor.replaceSelection(beginningTag, 'end');
47
+ $('#wpe_qt_content_' + tag).val('/' + title);
48
+ editor.focus();
49
+ tags[tag].lastTag = 1;
50
+ }
51
+ else if(tags[tag].lastTag == 1) {
52
+ editor.replaceSelection(endTag, 'end');
53
+ $('#wpe_qt_content_' + tag).val(title);
54
+ editor.focus();
55
+ tags[tag].lastTag = 0;
56
+ }
57
+ }
58
+ }
59
+ function openLinkDialog() {
60
+ if(typeof(wpLink) != 'undefined') {
61
+ wpLink.open();
62
+ return;
63
+ }
64
+ }
65
+ function insertLinkTag(link, title, blank) {
66
+ var selection = editor.getSelection();
67
+ var newLink = link != '' ? link : '';
68
+ var newTitle = title != '' ? '" title="' + title : '';
69
+ var newBlank = blank == true ? '" target="_blank' : ''
70
+ var combinedTags = newLink + newTitle + newBlank;
71
+ if(selection != '') {
72
+ editor.replaceSelection('<a href="' + combinedTags + '">' + selection + '</a>', 'end');
73
+ tags.link = {'lastTag': 0};
74
+ }
75
+ else {
76
+ editor.replaceSelection('<a href="' + combinedTags + '">', 'end');
77
+ $('#wpe_qt_content_link').val('/link');
78
+ tags.link = {'lastTag': 1};
79
+ }
80
+ editor.focus();
81
+ }
82
+ function insertImgTag() {
83
+ var src = prompt(WPEPosts.enterImgUrl, 'http://'), alt;
84
+ if(src) {
85
+ alt = prompt(WPEPosts.enterImgDescription, '');
86
+ editor.replaceSelection('<img src="' + src + '" alt="' + alt + '" />', 'end');
87
+ editor.focus();
88
+ }
89
+ }
90
+ function lookupWord() {
91
+ var word = editor.getSelection();
92
+ if(word == '') {
93
+ word = prompt(WPEPosts.wordLookup, '');
94
+ }
95
+ if(word !== null && /^\w[\w ]*$/.test(word)) {
96
+ window.open('http://www.answers.com/' + encodeURIComponent(word));
97
+ }
98
+ }
99
+ $(document).ready(function(){
100
+ $('#ed_toolbar').hide();
101
+ $('#wpe_qt_content_strong').live("click", function() {
102
+ insertOpenCloseTag('strong', 'b', '<strong>', '</strong>');
103
+ })
104
+ $('#wpe_qt_content_em').live("click", function() {
105
+ insertOpenCloseTag('em', 'i', '<em>', '</em>');
106
+ })
107
+ $('#wpe_qt_content_link').live("click", function() {
108
+ if(!tags.link || tags.link.lastTag == 0) {
109
+ openLinkDialog();
110
+ }
111
+ else {
112
+ insertOpenCloseTag('link', 'link', '', '</a>');
113
+ tags.link = {'lastTag': 0};
114
+ }
115
+ })
116
+ $('#wpe_qt_content_block').live("click", function() {
117
+ insertOpenCloseTag('block', 'b-quote', '\n\n<blockquote>', '</blockquote>\n\n');
118
+ })
119
+ $('#wpe_qt_content_block').live("click", function() {
120
+ insertOpenCloseTag('block', 'b-quote', '\n\n<blockquote>', '</blockquote>\n\n');
121
+ })
122
+ $('#wpe_qt_content_del').live("click", function() {
123
+ insertOpenCloseTag('del', 'del', '<del datetime="' + _datetime() + '">', '</del>');
124
+ })
125
+ $('#wpe_qt_content_ins').live("click", function() {
126
+ insertOpenCloseTag('ins', 'ins', '<ins datetime="' + _datetime() + '">', '</ins>');
127
+ })
128
+ $('#wpe_qt_content_img').live("click", function() {
129
+ insertImgTag();
130
+ })
131
+ $('#wpe_qt_content_ul').live("click", function() {
132
+ insertOpenCloseTag('ul', 'ul', '<ul>\n', '</ul>\n\n');
133
+ })
134
+ $('#wpe_qt_content_ol').live("click", function() {
135
+ insertOpenCloseTag('ol', 'ol', '<ol>\n', '</ol>\n\n');
136
+ })
137
+ $('#wpe_qt_content_li').live("click", function() {
138
+ insertOpenCloseTag('li', 'li', '\t<li>', '</li>\n');
139
+ })
140
+ $('#wpe_qt_content_code').live("click", function() {
141
+ insertOpenCloseTag('code', 'code', '<code>', '</code>');
142
+ })
143
+ $('#wpe_qt_content_more').live("click", function() {
144
+ insertOpenCloseTag('more', 'more', '', '<!--more-->');
145
+ })
146
+ $('#wpe_qt_content_page').live("click", function() {
147
+ insertOpenCloseTag('page', 'page', '', '<!--nextpage-->');
148
+ })
149
+ $('#wpe_qt_content_lookup').live("click", function() {
150
+ lookupWord();
151
+ })
152
+ $('#wpe_qt_content_fullscreen').live("click", function() {
153
+ toggleFullscreenEditing();
154
+ editor.focus();
155
+ })
156
+ $('#wp-link-submit').live("click", function() {
157
+ var link = $('#url-field').val();
158
+ var title = $('#link-title-field').val();
159
+ var blank = false;
160
+ if($('#link-target-checkbox').is(':checked')) {
161
+ blank = true;
162
+ }
163
+ insertLinkTag(link, title, blank);
164
+ return false;
165
+ })
166
+ $('#content-tmce').click(function() {
167
+ if(editor_status != 'tmce') {
168
+ editor.toTextArea();
169
+ switchEditors.switchto(this);
170
+ editor_status = 'tmce';
171
+ }
172
+ })
173
+ $('#content').keyup(function() {
174
+ console.log('yep, keyup')
175
+ editor.save();
176
+ })
177
+ $('#content-html').click(function() {
178
+ if(editor_status != 'html') {
179
+ postCodeMirror('content');
180
+ editor_status = 'html';
181
+ }
182
+ else {
183
+ editor.toTextArea();
184
+ postCodeMirror('content');
185
+ return false;
186
+ }
187
+ })
188
+ $('#publish').click(function() {
189
+ editor.save();
190
+ })
191
+ })
192
+ function setupPostEditor() {
193
+ if(!isTinyMCE()) {
194
+ if($('#content').is(':visible')) {
195
+ if(!$('#content_parent').is(':visible')) {
196
+ postCodeMirror('content');
197
+ editor_status = 'html';
198
+ }
199
+ }
200
+ }
201
+ }
202
+ function isTinyMCE() {
203
+ is_tinyMCE_active = true;
204
+ if (typeof(tinyMCE) != "undefined") {
205
+ if (tinyMCE.activeEditor == null || tinyMCE.activeEditor.isHidden() != false) {
206
+ is_tinyMCE_active = false;
207
+ }
208
+ }
209
+ return is_tinyMCE_active;
210
+ }
211
+ function postCodeMirror(element) {
212
+ var activeLine = WPEPosts.activeLine;
213
+ editor = CodeMirror.fromTextArea(document.getElementById(element), {
214
+ mode: WPEPosts.mode,
215
+ theme: WPEPosts.theme,
216
+ lineNumbers: WPEPosts.lineNumbers,
217
+ lineWrapping: WPEPosts.lineWrapping,
218
+ onCursorActivity: function() {
219
+ editor.setLineClass(hlLine, null);
220
+ hlLine = editor.setLineClass(editor.getCursor().line, activeLine);
221
+ },
222
+ onChange: function() {
223
+ changeTrue();
224
+ },
225
+ onKeyEvent: function(editor, event) {
226
+ if(typeof(wpWordCount) != 'undefined') {
227
+ editor.save();
228
+ last = 0, co = $('#content');
229
+ $(document).triggerHandler('wpcountwords', [ co.val() ]);
230
+
231
+ co.keyup(function(e) {
232
+ var k = event.keyCode || event.charCode;
233
+
234
+ if(k == last) {
235
+ return true;
236
+ }
237
+ if(13 == k || 8 == last || 46 == last) {
238
+ $(document).triggerHandler('wpcountwords', [ co.val() ]);
239
+ }
240
+ last = k;
241
+ return true;
242
+ });
243
+ }
244
+
245
+ },
246
+ extraKeys: {
247
+ 'F11': toggleFullscreenEditing,
248
+ 'Esc': toggleFullscreenEditing
249
+ }
250
+ });
251
+ var hlLine = editor.setLineClass(0, activeLine);
252
+ if(!$('.CodeMirror .quicktags-toolbar').length) {
253
+ $('.CodeMirror').prepend('<div class="quicktags-toolbar">' +
254
+ '<input type="button" id="wpe_qt_content_strong" class="wpe_ed_button" title="" value="b">' +
255
+ '<input type="button" id="wpe_qt_content_em" class="wpe_ed_button" title="" value="i">' +
256
+ '<input type="button" id="wpe_qt_content_link" class="wpe_ed_button" title="" value="link">' +
257
+ '<input type="button" id="wpe_qt_content_block" class="ed_button" title="" value="b-quote">' +
258
+ '<input type="button" id="wpe_qt_content_del" class="ed_button" title="" value="del">' +
259
+ '<input type="button" id="wpe_qt_content_ins" class="ed_button" title="" value="ins">' +
260
+ '<input type="button" id="wpe_qt_content_img" class="ed_button" title="" value="img">' +
261
+ '<input type="button" id="wpe_qt_content_ul" class="ed_button" title="" value="ul">' +
262
+ '<input type="button" id="wpe_qt_content_ol" class="ed_button" title="" value="ol">' +
263
+ '<input type="button" id="wpe_qt_content_li" class="ed_button" title="" value="li">' +
264
+ '<input type="button" id="wpe_qt_content_code" class="ed_button" title="" value="code">' +
265
+ '<input type="button" id="wpe_qt_content_more" class="ed_button" title="" value="more">' +
266
+ '<input type="button" id="wpe_qt_content_page" class="ed_button" title="" value="page">' +
267
+ '<input type="button" id="wpe_qt_content_lookup" class="ed_button" title="" value="lookup">' +
268
+ '<input type="button" id="wpe_qt_content_fullscreen" class="ed_button" title="" value="fullscreen">' +
269
+ '</div>'
270
+ ).height($('.CodeMirror').height() + 33);
271
+ }
272
+ }
273
+ })(jQuery);
js/wpeditor.js CHANGED
@@ -46,7 +46,7 @@ function toggleFullscreenEditing() {
46
  }
47
  editorDiv.addClass('CodeMirror-fullscreen');
48
  editorDiv.height('100%');
49
- $jq('.CodeMirror-scroll').height('100%');
50
  editorDiv.width('100%');
51
  editor.refresh();
52
  }
46
  }
47
  editorDiv.addClass('CodeMirror-fullscreen');
48
  editorDiv.height('100%');
49
+ $jq('.CodeMirror-scroll').height(editorDiv.height() - 30);
50
  editorDiv.width('100%');
51
  editor.refresh();
52
  }
readme.txt CHANGED
@@ -1,16 +1,18 @@
1
  === WP Editor ===
2
  Contributors: benjaminprojas
3
  Donate link: http://wpeditor.net/
4
- Tags: plugin editor, theme editor, codemirror, plugins, themes, editor, fancybox
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
- Stable tag: 1.0.3
 
 
8
 
9
- WP Editor is a plugin for WordPress that replaces the default plugin and theme editors.
10
 
11
  == Description ==
12
 
13
- WP Editor is a plugin for WordPress that replaces the default plugin and theme editors. Using integrations with CodeMirror and FancyBox to create a feature rich environment, WP Editor completely reworks the default WordPress file editing capabilities. Using Asynchronous Javascript and XML (AJAX) to retrieve files and folders, WP Editor sets a new standard for speed and reliability in a web-based editing atmosphere.
14
 
15
  = Features: =
16
  * CodeMirror
@@ -31,8 +33,50 @@ WP Editor is a plugin for WordPress that replaces the default plugin and theme e
31
  1. Upload the `wp-editor.zip` to the `/wp-content/plugins/` directory
32
  2. Activate the plugin through the 'Plugins' menu in WordPress
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  == Changelog ==
35
 
 
 
 
 
 
 
 
 
36
  = 1.0.3 =
37
  * Updated CSS for theme/plugin editor
38
  * Updated default theme/plugin editor font
@@ -51,4 +95,12 @@ WP Editor is a plugin for WordPress that replaces the default plugin and theme e
51
  * Added HTML and HTM icons
52
 
53
  = 1.0 BETA =
54
- * Initial release of WP Editor
 
 
 
 
 
 
 
 
1
  === WP Editor ===
2
  Contributors: benjaminprojas
3
  Donate link: http://wpeditor.net/
4
+ Tags: plugin editor, theme editor, page editor, post editor, pages, posts, html, codemirror, plugins, themes, editor, fancybox, post.php, post-new.php, ajax, syntax highlighting, html syntax highlighting
5
  Requires at least: 3.0
6
  Tested up to: 3.4.1
7
+ Stable tag: 1.1
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ WP Editor is a plugin for WordPress that replaces the default plugin and theme editors as well as the page/post editor.
12
 
13
  == Description ==
14
 
15
+ WP Editor is a plugin for WordPress that replaces the default plugin and theme editors as well as the page/post editor. Using integrations with CodeMirror and FancyBox to create a feature rich environment, WP Editor completely reworks the default WordPress file editing capabilities. Using Asynchronous Javascript and XML (AJAX) to retrieve files and folders, WP Editor sets a new standard for speed and reliability in a web-based editing atmosphere.
16
 
17
  = Features: =
18
  * CodeMirror
33
  1. Upload the `wp-editor.zip` to the `/wp-content/plugins/` directory
34
  2. Activate the plugin through the 'Plugins' menu in WordPress
35
 
36
+ == Frequently Asked Questions ==
37
+
38
+ = Does WP Editor provide syntax highlighting for the page/post editor? =
39
+ Yes! This feature was added in version 1.1 of WP Editor. If it's not enabled by default, visit the settings page, click on the "Post Editor" section and enable it there.
40
+
41
+ = Can I search for text within a file? =
42
+ Yes! Just use the key combination, CTRL + F or CMD + F and it will open up a search dialog box that will allow you to type in a search string.
43
+
44
+ = Does WP Editor have a fullscreen mode? =
45
+ Yes! Just hit the Esc key or click on the fullscreen button on the post editor and it will take the editor to the full size of the browser.
46
+
47
+ = I don't like the active line highlighting in the editor, can I disable this? =
48
+ Yes! Just visit the settings page and you can disable the active line highlighting there.
49
+
50
+ = A file type that my theme uses is not supported by WP Editor, how can I get it added? =
51
+ If there is a filetype that is not supported by WP Editor, just visit the [WP Editor support page](http://wpeditor.net/support) and fill out the support form. We will do our best to include it by the next release.
52
+
53
+ = My custom quicktags don't work with WP Editor, why not? =
54
+ WP Editor uses a custom method for creating quicktags to get them to work with the update. If you use a specific quicktag that is not supported, fill out our [support form](http://wpeditor.net/support) and we will try to implement it as soon as possible.
55
+
56
+ = Is WP Editor better than the competition? =
57
+ Yes! Well, we like to think so. If there is a feature that another plugin has that you think WP Editor should include, let us know. We will do our best to add it in to the plugin!
58
+
59
+ = I love WP Editor! Can I help somehow? =
60
+ Yes! While we don't have a need for further developers at this time, any financial contributions are welcome! Just visit the [WP Editor](http://wpeditor.net) website and click on the donate link, and thank you!
61
+
62
+ == Screenshots ==
63
+
64
+ 1. Settings page for WP Editor
65
+ 2. Syntax highlighting in Page/Post editor
66
+ 3. Updated plugin editor with Ajax file browser
67
+ 4. Updated theme editor with file upload enabled
68
+ 5. Fancybox integration
69
+
70
  == Changelog ==
71
 
72
+ = 1.1 =
73
+ * Added syntax highlighter for page/post editor
74
+ * Added in monospace font for default theme/plugin/post editor
75
+ * Updated Edit links in plugins page to work with WP 3.4 updates
76
+ * Updated CSS themes to limit number of resources loaded
77
+ * Updated CSS highlighting for Ruby Blue and Monokai themes
78
+ * Fixed theme and plugin editors to allow disabling of line wrapping
79
+
80
  = 1.0.3 =
81
  * Updated CSS for theme/plugin editor
82
  * Updated default theme/plugin editor font
95
  * Added HTML and HTM icons
96
 
97
  = 1.0 BETA =
98
+ * Initial release of WP Editor
99
+
100
+ == Upgrade Notice ==
101
+
102
+ = 1.1 =
103
+ Added features including support for syntax highlighting in the page/post editor
104
+
105
+ = 1.0.1 =
106
+ This version provides support for WordPress 3.4 and moves WP Editor out of beta
screenshot-1.png ADDED
Binary file
screenshot-2.png ADDED
Binary file
screenshot-3.png ADDED
Binary file
screenshot-4.png ADDED
Binary file
screenshot-5.png ADDED
Binary file
views/plugin-editor.php CHANGED
@@ -202,8 +202,10 @@
202
  <?php
203
  if(WPEditorSetting::getValue('enable_plugin_line_numbers')) { ?>
204
  lineNumbers: true,
 
 
 
205
  <?php } ?>
206
- lineWrapping: true, // set line wrapping here
207
  onCursorActivity: function() {
208
  editor.setLineClass(hlLine, null);
209
  hlLine = editor.setLineClass(editor.getCursor().line, activeLine);
202
  <?php
203
  if(WPEditorSetting::getValue('enable_plugin_line_numbers')) { ?>
204
  lineNumbers: true,
205
+ <?php }
206
+ if(WPEditorSetting::getValue('enable_plugin_line_wrapping')) { ?>
207
+ lineWrapping: true,
208
  <?php } ?>
 
209
  onCursorActivity: function() {
210
  editor.setLineClass(hlLine, null);
211
  hlLine = editor.setLineClass(editor.getCursor().line, activeLine);
views/settings.php CHANGED
@@ -23,6 +23,7 @@
23
  <li id="settings-main-settings-tab"><a id="settings-link-main-settings" href="javascript:void(0)"><?php _e('Main Settings', 'wpeditor'); ?></a></li>
24
  <li id="settings-themes-tab"><a id="settings-link-themes" href="javascript:void(0)"><?php _e('Theme Editor', 'wpeditor'); ?></a></li>
25
  <li id="settings-plugins-tab"><a id="settings-link-plugins" href="javascript:void(0)"><?php _e('Plugin Editor', 'wpeditor'); ?></a></li>
 
26
  <li id="settings-overview-tab"><a id="settings-link-overview" href="javascript:void(0)"><?php _e('Overview', 'wpeditor'); ?></a></li>
27
  </ul>
28
  </div>
@@ -456,6 +457,127 @@
456
  </div>
457
  </form>
458
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  <div id="settings-overview" class="settings-body">
460
  <div id="wpeditor-overview" class="section">
461
  <div class="section-header">
23
  <li id="settings-main-settings-tab"><a id="settings-link-main-settings" href="javascript:void(0)"><?php _e('Main Settings', 'wpeditor'); ?></a></li>
24
  <li id="settings-themes-tab"><a id="settings-link-themes" href="javascript:void(0)"><?php _e('Theme Editor', 'wpeditor'); ?></a></li>
25
  <li id="settings-plugins-tab"><a id="settings-link-plugins" href="javascript:void(0)"><?php _e('Plugin Editor', 'wpeditor'); ?></a></li>
26
+ <li id="settings-posts-tab"><a id="settings-link-posts" href="javascript:void(0)"><?php _e('Post Editor', 'wpeditor'); ?></a></li>
27
  <li id="settings-overview-tab"><a id="settings-link-overview" href="javascript:void(0)"><?php _e('Overview', 'wpeditor'); ?></a></li>
28
  </ul>
29
  </div>
457
  </div>
458
  </form>
459
  </div>
460
+ <div id="settings-posts" class="settings-body">
461
+ <form action="" method="post" class="ajax-settings-form" id="post-settings-form">
462
+ <input type="hidden" name="action" value="save_wpeditor_settings" />
463
+ <input type="hidden" name="_success" value="Your post editor settings have been saved." />
464
+ <input type="hidden" name="_tab" value="posts" />
465
+ <div id="enable-post-editor" class="section">
466
+ <div class="section-header">
467
+ <h3><?php _e('Enable Post Editor', 'wpeditor'); ?></h3>
468
+ </div>
469
+ <div class="section-body">
470
+ <ul>
471
+ <li>
472
+ <label for="enable_post_editor"><?php _e('Enable the Posts Editor:', 'wpeditor'); ?></label>
473
+ </li>
474
+ <li class="indent">
475
+ <input type="radio" name="enable_post_editor" value="1" <?php echo (WPEditorSetting::getValue('enable_post_editor') == 1) ? 'checked="checked"' : ''; ?>> <?php _e('Yes', 'wpeditor'); ?>
476
+ <input type="radio" name="enable_post_editor" value="0" <?php echo (WPEditorSetting::getValue('enable_post_editor') != 1) ? 'checked="checked"' : ''; ?>> <?php _e('No', 'wpeditor'); ?>
477
+ </li>
478
+ <li class="indent description">
479
+ <p><?php _e("This will enable/disable the post editor.<br />Default: Yes", 'wpeditor'); ?></p>
480
+ </li>
481
+ </ul>
482
+ </div>
483
+ </div>
484
+ <div id="post-editor-theme" class="section">
485
+ <div class="section-header">
486
+ <h3><?php _e('Editor Theme', 'wpeditor'); ?></h3>
487
+ </div>
488
+ <div class="section-body">
489
+ <ul>
490
+ <li>
491
+ <label for="post_editor_theme"><?php _e('Theme:', 'wpeditor'); ?></label>
492
+ <select id="post_editor_theme" name="post_editor_theme">
493
+ <?php
494
+ $theme = 'default';
495
+ if(WPEditorSetting::getValue('post_editor_theme')) {
496
+ $theme = WPEditorSetting::getValue('post_editor_theme');
497
+ }
498
+ ?>
499
+ <option value="default" <?php echo ($theme == 'default') ? 'selected="selected"' : '' ?>><?php _e('Default', 'wpeditor'); ?></option>
500
+ <option value="cobalt" <?php echo ($theme == 'cobalt') ? 'selected="selected"' : '' ?>><?php _e('Cobalt', 'wpeditor'); ?></option>
501
+ <option value="eclipse" <?php echo ($theme == 'eclipse') ? 'selected="selected"' : '' ?>><?php _e('Eclipse', 'wpeditor'); ?></option>
502
+ <option value="elegant" <?php echo ($theme == 'elegant') ? 'selected="selected"' : '' ?>><?php _e('Elegant', 'wpeditor'); ?></option>
503
+ <option value="monokai" <?php echo ($theme == 'monokai') ? 'selected="selected"' : '' ?>><?php _e('Monokai', 'wpeditor'); ?></option>
504
+ <option value="neat" <?php echo ($theme == 'neat') ? 'selected="selected"' : '' ?>><?php _e('Neat', 'wpeditor'); ?></option>
505
+ <option value="night" <?php echo ($theme == 'night') ? 'selected="selected"' : '' ?>><?php _e('Night', 'wpeditor'); ?></option>
506
+ <option value="rubyblue" <?php echo ($theme == 'rubyblue') ? 'selected="selected"' : '' ?>><?php _e('Ruby Blue', 'wpeditor'); ?></option>
507
+ </select>
508
+ </li>
509
+ <li class="indent description">
510
+ <p><?php _e("This allows you to select the theme for the post editor.<br />Default: Default", 'wpeditor'); ?></p>
511
+ </li>
512
+ </ul>
513
+ </div>
514
+ </div>
515
+ <div id="enable-post-line-numbers" class="section">
516
+ <div class="section-header">
517
+ <h3><?php _e('Line Numbers', 'wpeditor'); ?></h3>
518
+ </div>
519
+ <div class="section-body">
520
+ <ul>
521
+ <li>
522
+ <label for="enable_post_line_numbers"><?php _e('Enable Line Numbers:', 'wpeditor'); ?></label>
523
+ </li>
524
+ <li class="indent">
525
+ <input type="radio" name="enable_post_line_numbers" value="1" <?php echo (WPEditorSetting::getValue('enable_post_line_numbers') == 1) ? 'checked="checked"' : ''; ?>> <?php _e('Yes', 'wpeditor'); ?>
526
+ <input type="radio" name="enable_post_line_numbers" value="0" <?php echo (WPEditorSetting::getValue('enable_post_line_numbers') != 1) ? 'checked="checked"' : ''; ?>> <?php _e('No', 'wpeditor'); ?>
527
+ </li>
528
+ <li class="indent description">
529
+ <p><?php _e("This will enable line numbers for the post editor.<br />Default: Yes", 'wpeditor'); ?></p>
530
+ </li>
531
+ </ul>
532
+ </div>
533
+ </div>
534
+ <div id="enable-post-line-wrapping" class="section">
535
+ <div class="section-header">
536
+ <h3><?php _e('Line Wrapping', 'wpeditor'); ?></h3>
537
+ </div>
538
+ <div class="section-body">
539
+ <ul>
540
+ <li>
541
+ <label for="enable_post_line_wrapping"><?php _e('Enable Line Wrapping:', 'wpeditor'); ?></label>
542
+ </li>
543
+ <li class="indent">
544
+ <input type="radio" name="enable_post_line_wrapping" value="1" <?php echo (WPEditorSetting::getValue('enable_post_line_wrapping') == 1) ? 'checked="checked"' : ''; ?>> <?php _e('Yes', 'wpeditor'); ?>
545
+ <input type="radio" name="enable_post_line_wrapping" value="0" <?php echo (WPEditorSetting::getValue('enable_post_line_wrapping') != 1) ? 'checked="checked"' : ''; ?>> <?php _e('No', 'wpeditor'); ?>
546
+ </li>
547
+ <li class="indent description">
548
+ <p><?php _e("This will enable line wrapping for the post editor.<br />Default: Yes", 'wpeditor'); ?></p>
549
+ </li>
550
+ </ul>
551
+ </div>
552
+ </div>
553
+ <div id="enable-post-active-line" class="section">
554
+ <div class="section-header">
555
+ <h3><?php _e('Active Line Highlighting', 'wpeditor'); ?></h3>
556
+ </div>
557
+ <div class="section-body">
558
+ <ul>
559
+ <li>
560
+ <label for="enable_post_active_line"><?php _e('Highlight Active Line:', 'wpeditor'); ?></label>
561
+ </li>
562
+ <li class="indent">
563
+ <input type="radio" name="enable_post_active_line" value="1" <?php echo (WPEditorSetting::getValue('enable_post_active_line') == 1) ? 'checked="checked"' : ''; ?>> <?php _e('Yes', 'wpeditor'); ?>
564
+ <input type="radio" name="enable_post_active_line" value="0" <?php echo (WPEditorSetting::getValue('enable_post_active_line') != 1) ? 'checked="checked"' : ''; ?>> <?php _e('No', 'wpeditor'); ?>
565
+ </li>
566
+ <li class="indent description">
567
+ <p><?php _e("This will enable highlighting of the active line for the post editor.<br />Default: Yes", 'wpeditor'); ?></p>
568
+ </li>
569
+ </ul>
570
+ </div>
571
+ </div>
572
+ <div id="save-settings">
573
+ <ul>
574
+ <li>
575
+ <input type='submit' name='submit' class="button-primary" value="<?php _e('Save Settings', 'wpeditor'); ?>" />
576
+ </li>
577
+ </ul>
578
+ </div>
579
+ </form>
580
+ </div>
581
  <div id="settings-overview" class="settings-body">
582
  <div id="wpeditor-overview" class="section">
583
  <div class="section-header">
views/theme-editor.php CHANGED
@@ -210,8 +210,10 @@
210
  <?php
211
  if(WPEditorSetting::getValue('enable_theme_line_numbers')) { ?>
212
  lineNumbers: true,
 
 
 
213
  <?php } ?>
214
- lineWrapping: true, // set line wrapping here
215
  onCursorActivity: function() {
216
  editor.setLineClass(hlLine, null);
217
  hlLine = editor.setLineClass(editor.getCursor().line, activeLine);
210
  <?php
211
  if(WPEditorSetting::getValue('enable_theme_line_numbers')) { ?>
212
  lineNumbers: true,
213
+ <?php }
214
+ if(WPEditorSetting::getValue('enable_theme_line_wrapping')) { ?>
215
+ lineWrapping: true,
216
  <?php } ?>
 
217
  onCursorActivity: function() {
218
  editor.setLineClass(hlLine, null);
219
  hlLine = editor.setLineClass(editor.getCursor().line, activeLine);
wpeditor.css CHANGED
@@ -235,6 +235,12 @@ span.tiny {
235
  height:450px;
236
  width:97%;
237
  }
 
 
 
 
 
 
238
  .CodeMirror-scroll {
239
  height:450px;
240
  }
@@ -252,7 +258,7 @@ span.tiny {
252
  background:#A8F !important;
253
  }
254
  .activeline-monokai {
255
- background:#FFE792 !important;
256
  }
257
  .activeline-rubyblue {
258
  background:#00F !important;
235
  height:450px;
236
  width:97%;
237
  }
238
+ .wp-editor-container .CodeMirror {
239
+ width:100% !important;
240
+ }
241
+ .wp-editor-container .CodeMirror-scroll {
242
+ border:none;
243
+ }
244
  .CodeMirror-scroll {
245
  height:450px;
246
  }
258
  background:#A8F !important;
259
  }
260
  .activeline-monokai {
261
+ background:#00F !important;
262
  }
263
  .activeline-rubyblue {
264
  background:#00F !important;
wpeditor.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP Editor
4
  Plugin URI: http://wpeditor.net
5
  Description: This plugin modifies the default behavior of the WordPress plugin and theme editors.
6
- Version: 1.0.3
7
  Author: Benjamin Rojas
8
  Author URI: http://benjaminrojas.net
9
  Text Domain: wpeditor
@@ -31,7 +31,7 @@ if(!class_exists('WPEditor')) {
31
  ob_start();
32
 
33
  // Define the WP Editor version number
34
- define('WPEDITOR_VERSION_NUMBER', '1.0.3');
35
 
36
  $wp_34 = false;
37
  if(version_compare(get_bloginfo('version'), '3.4', '>=')) {
3
  Plugin Name: WP Editor
4
  Plugin URI: http://wpeditor.net
5
  Description: This plugin modifies the default behavior of the WordPress plugin and theme editors.
6
+ Version: 1.1
7
  Author: Benjamin Rojas
8
  Author URI: http://benjaminrojas.net
9
  Text Domain: wpeditor
31
  ob_start();
32
 
33
  // Define the WP Editor version number
34
+ define('WPEDITOR_VERSION_NUMBER', '1.1');
35
 
36
  $wp_34 = false;
37
  if(version_compare(get_bloginfo('version'), '3.4', '>=')) {