Changeset 1281242
- Timestamp:
- 11/06/2015 04:32:39 PM (10 years ago)
- Location:
- my-custom-css
- Files:
-
- 14 added
- 2 deleted
- 5 edited
- 2 copied
-
assets/icon-256x256.png (modified) (previous)
-
assets/screenshot-1.png (modified) (previous)
-
tags/2.3 (copied) (copied from my-custom-css/tags/2.2)
-
tags/2.3/my-custom-css.php (modified) (14 diffs)
-
tags/2.3/readme.txt (copied) (copied from my-custom-css/tags/2.2/readme.txt) (4 diffs)
-
tags/2.3/scripts (added)
-
tags/2.3/scripts/ace.js (added)
-
tags/2.3/scripts/custom-mode.js (added)
-
tags/2.3/scripts/index.html (added)
-
tags/2.3/scripts/mode-css.js (added)
-
tags/2.3/scripts/theme-chrome.js (added)
-
tags/2.3/scripts/worker-css.js (added)
-
tags/2.3/syntax (deleted)
-
trunk/my-custom-css.php (modified) (14 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/scripts (added)
-
trunk/scripts/ace.js (added)
-
trunk/scripts/custom-mode.js (added)
-
trunk/scripts/index.html (added)
-
trunk/scripts/mode-css.js (added)
-
trunk/scripts/theme-chrome.js (added)
-
trunk/scripts/worker-css.js (added)
-
trunk/syntax (deleted)
Legend:
- Unmodified
- Added
- Removed
-
my-custom-css/tags/2.3/my-custom-css.php
r1280474 r1281242 4 4 Plugin URI: https://wordpress.org/plugins/my-custom-css/ 5 5 Description: With this plugin you can put custom css code without edit your theme and/or your plugins (really useful in case of any theme/plugin update). 6 It contain also a syntax color and tab support for write a good css code. 7 You can see in action (source code) here: http://vegamami.altervista.org/ :) 6 It contain also <a href="https://ace.c9.io/">Ace (Ajax.org Cloud9 Editor)</a> Code Editor for write a good css code. 7 You can see in action (source code) here: <a href="http://vegamami.altervista.org/">VegAmami</a> :) 8 PS: support file backup and - very important - static css file (fantastic for performance) ;) 8 9 Author: Salvatore Noschese - DarkWolf 9 Version: 2. 210 Version: 2.3 10 11 Author URI: https://laltroweb.it/ 11 12 Text Domain: my-custom-css … … 24 25 return $mystylecss_basedir; 25 26 } 26 27 27 function mystylecss_url() 28 28 { … … 32 32 } 33 33 34 35 // Obtain the path to the admin directory. 36 function my_custom_css_get_admin_path() 37 { 38 // Replace the site base URL with the absolute path to its installation directory. 39 $admin_path = str_replace( get_bloginfo( 'url' ) . '/', ABSPATH, get_admin_url() ); 40 41 // Make it filterable, so other plugins can hook into it. 42 $admin_path = apply_filters( 'my_custom_css_get_admin_path', $admin_path ); 43 return $admin_path; 44 } 45 34 46 // Fix old backup folder or no exist 35 47 if (!is_dir(mystylecss_basedir().'/my_custom_css/bkk')) 36 48 { 37 49 wp_mkdir_p(mystylecss_basedir().'/my_custom_css/bkk'); 50 } 51 // And Blank index.html to prevent listing directory 52 else if(!file_exists(mystylecss_basedir()."/my_custom_css/index.html") || !file_exists(mystylecss_basedir()."/my_custom_css/bkk/index.html")) 53 { 54 file_put_contents(mystylecss_basedir()."/my_custom_css/index.html", "<!-- Blank index.html to prevent listing directory -->"); 55 file_put_contents(mystylecss_basedir()."/my_custom_css/bkk/index.html", "<!-- Blank index.html to prevent listing directory -->"); 38 56 } 39 57 … … 53 71 } 54 72 55 56 73 // Generate css path: 57 74 function css_path() … … 68 85 return $mycustomcss; 69 86 } 87 70 88 function mycustomcss_head() 71 89 { … … 74 92 { 75 93 // Write in source! 76 echo "\n<!-- My Custom CSS -->\n<link rel='stylesheet' id='my-custom-css' href='".css_url()."?".filemtime(css_path())."' type='text/css' media='all' />\n<!-- My Custom CSS -->\n"; 77 } 78 } 94 echo "\n<!-- My Custom CSS -->\n<link rel='stylesheet' id='my-custom-css' href='".css_url()."?".@filemtime(css_path())."' type='text/css' media='all' />\n<!-- My Custom CSS -->\n"; 95 } 96 } 97 79 98 function makecss() 80 99 { 81 global $wp_filesystem; 82 if (empty($wp_filesystem)) 83 { 84 require_once (ABSPATH . '/wp-admin/includes/file.php'); 85 WP_Filesystem(); 86 } 87 $makecss = $wp_filesystem->put_contents(css_path(), "/********* Do not edit this file *********/\n/*\nMy Custom CSS - Maked by Salvatore Noschese\na.k.a. DarkWolf - http://www://darkwolf.it/\n*/\n/********* Do not edit this file *********/\n\n".mycustomcss(), 0644); 100 $makecss = file_put_contents(css_path(), "/********* Do not edit this file *********/\n/*\nMy Custom CSS - Maked by Salvatore Noschese\na.k.a. DarkWolf - http://www://darkwolf.it/\n*/\n/********* Do not edit this file *********/\n\n".mycustomcss()); 88 101 return $makecss; 89 102 } 103 90 104 // Fix first upgrade from old release or manual my_style.css deletion! 91 105 if (!file_exists(css_path())) … … 132 146 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url(".mycustomcss_data_icon().") no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n"; 133 147 } 134 }135 136 137 // Blank index.html to prevent listing directory138 if(!file_exists(mystylecss_basedir()."/my_custom_css/index.html") || !file_exists(mystylecss_basedir()."/my_custom_css/bkk/index.html"))139 {140 global $wp_filesystem;141 if (empty($wp_filesystem))142 {143 require_once (ABSPATH . '/wp-admin/includes/file.php');144 WP_Filesystem();145 }146 $wp_filesystem->put_contents(mystylecss_basedir()."/my_custom_css/index.html", "<!-- Blank index.html to prevent listing directory -->", 0644);147 $wp_filesystem->put_contents(mystylecss_basedir()."/my_custom_css/bkk/index.html", "<!-- Blank index.html to prevent listing directory -->", 0644);148 148 } 149 149 … … 270 270 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', mycustomcss_data_icon(), 61); 271 271 add_action('admin_init', 'mycustomcss_registersetting'); 272 add_action('admin_head-'. $plugin_page, 'mycustomcss_s yntax');272 add_action('admin_head-'. $plugin_page, 'mycustomcss_scripts'); 273 273 // Disable "WP Editor" in this page if is active: http://wordpress.org/extend/plugins/wp-editor/ 274 274 If (is_plugin_active("wp-editor/wpeditor.php") && $_SERVER['QUERY_STRING'] == 'page=my_custom_css') … … 309 309 $mobile = "Yes"; 310 310 } 311 else 312 { 313 $mobile = ""; 314 } 311 315 return $mobile; 312 316 } 313 317 314 318 // Option page code: 315 function mycustomcss_s yntax()319 function mycustomcss_scripts() 316 320 { 317 321 $mobile = check_mobile(); … … 364 368 } 365 369 echo ' 366 <!-- Syntax Support Start --> 367 <link type="text/css" rel="stylesheet" href="'.plugin_dir_url(__FILE__).'syntax/codemirror.css" /> 368 <script language="javascript" src="'.plugin_dir_url(__FILE__).'syntax/codemirror.js"></script> 369 <script language="javascript" src="'.plugin_dir_url(__FILE__).'syntax/css.js"></script> 370 <!-- Syntax Support End --> 370 <!-- Ace Support Start --> 371 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/ace.js" charset="utf-8"></script> 372 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/custom-mode.js" charset="utf-8"></script> 373 <!-- Ace Support End --> 371 374 <style type="text/css"> 372 375 p#footer-upgrade … … 376 379 font-style: italic; 377 380 } 381 div#wpfooter 382 { 383 position: relative; 384 } 378 385 </style>'; 379 386 } … … 402 409 } 403 410 else 411 { 404 412 $submit_backup = " value=\"View backup :)\" title=\"Click to view all backup!\" "; 413 } 405 414 406 415 $mobile = check_mobile(); if ($mobile != "Yes") { $no_mobile = '<a href="#" class="scrollup">^Top</a>'; } // Totop only if Not mobile! … … 408 417 <div class="wrap"> 409 418 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.$plugin_version.'</h2> 410 <form method="post" action="options.php">';419 <form id="my-custom-css" method="post" action="options.php">'; 411 420 settings_fields( 'mccss_settings' ); 412 421 echo ' … … 414 423 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" style="height: 50px; width: 150px; position: fixed; right: 25px; z-index: 5; font-size: 30px; top: 45px;" /> 415 424 </p> 416 <textarea name="my_custom_css" id="my_custom_css" dir="ltr" style="width:100%;height:350px;">'.get_option('my_custom_css').'</textarea> 417 <script language="javascript">var editor = CodeMirror.fromTextArea(document.getElementById("my_custom_css"), { lineNumbers: true });</script> 418 <p><!-- Smooth Scroll by DarkWolf -->'.$no_mobile.'<!-- Smooth Scroll by DarkWolf --></p> 419 </form>'; 425 <div id="my_custom_css_container"> 426 <div name="my_custom_css" id="my_custom_css" style="border: 1px solid #DFDFDF; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 100%; height: 400px; position: relative;"></div> 427 </div> 428 <textarea id="my_custom_css_textarea" name="my_custom_css" style="display: none;">'.get_option('my_custom_css').'</textarea> 429 <p><!-- Smooth Scroll by DarkWolf -->'.$no_mobile.'<!-- Smooth Scroll by DarkWolf --></p> 430 </form> 431 </div>'; 420 432 421 433 // Hidden view/erase button for blog id > 1 (security fix in multisite) -
my-custom-css/tags/2.3/readme.txt
r1280488 r1281242 2 2 Contributors: DarkWolf 3 3 Donate link: https://www.paypal.me/SalvatoreN 4 Tags: css, style, custom, theme, plugin, stylesheet, darkwolf 4 Tags: css, style, custom, theme, plugin, stylesheet, darkwolf, ace, cloud9 editor 5 5 Requires at least: 3.0 6 6 Tested up to: 4.3.1 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 9 Enable to add Custom CSS Code via admin panel (with syntax and tab support by CodeMirror)10 + backup (see screen) and static file (best performance) :)9 Enable to add Custom CSS Code via admin panel with Ace (Ajax.org Cloud9 Editor) 10 + backup (see screen) and static file cache (best performance) :) 11 11 12 12 == Description == … … 16 16 With this plugin you can put custom css code without edit your theme and/or your plugins (really useful in case of any theme/plugin update). 17 17 18 It contain also a Syntax (by <a href="http://codemirror.net/">CodeMirror</a>) color and tab supportfor write a good css code.18 It contain also <a href="https://ace.c9.io/">Ace (Ajax.org Cloud9 Editor)</a> Code Editor for write a good css code. 19 19 20 You can see in action (source code) here: http://vegamami.altervista.org/:)20 You can see in action (source code) here: <a href="http://vegamami.altervista.org/">VegAmami</a> :) 21 21 22 22 PS: support file backup and - very important - static css file (fantastic for performance) ;) … … 26 26 * Author Homepage: [Salvatore Noschese - (DarkWol)](https://laltroweb.it/) 27 27 * Plugin maked for (demo link): [VegAmami](http://vegamami.altervista.org/) 28 * Ace (Ajax.org Cloud9 Editor): [Ace (Ajax.org Cloud9 Editor)](https://ace.c9.io/) 28 29 29 30 = Language = … … 47 48 == Upgrade Notice == 48 49 49 = 2. 2=50 = 2.3 = 50 51 51 * More code clean/rewrite/optimization; my_style.css no more deleted if blank (+ for permission); add blank index.html (prevent directory listing); files now is in "wp-content/uploads/" directory ...52 * Some code fix and now use ACE editor instead of Codemiror !!! :D 52 53 53 54 == Changelog == 55 56 = 2.3 = 57 58 * Some code change/fix and now use Ace (Ajax.org Cloud9 Editor) instead of CodeMirror !!! :D 54 59 55 60 = 2.2 = -
my-custom-css/trunk/my-custom-css.php
r1280474 r1281242 4 4 Plugin URI: https://wordpress.org/plugins/my-custom-css/ 5 5 Description: With this plugin you can put custom css code without edit your theme and/or your plugins (really useful in case of any theme/plugin update). 6 It contain also a syntax color and tab support for write a good css code. 7 You can see in action (source code) here: http://vegamami.altervista.org/ :) 6 It contain also <a href="https://ace.c9.io/">Ace (Ajax.org Cloud9 Editor)</a> Code Editor for write a good css code. 7 You can see in action (source code) here: <a href="http://vegamami.altervista.org/">VegAmami</a> :) 8 PS: support file backup and - very important - static css file (fantastic for performance) ;) 8 9 Author: Salvatore Noschese - DarkWolf 9 Version: 2. 210 Version: 2.3 10 11 Author URI: https://laltroweb.it/ 11 12 Text Domain: my-custom-css … … 24 25 return $mystylecss_basedir; 25 26 } 26 27 27 function mystylecss_url() 28 28 { … … 32 32 } 33 33 34 35 // Obtain the path to the admin directory. 36 function my_custom_css_get_admin_path() 37 { 38 // Replace the site base URL with the absolute path to its installation directory. 39 $admin_path = str_replace( get_bloginfo( 'url' ) . '/', ABSPATH, get_admin_url() ); 40 41 // Make it filterable, so other plugins can hook into it. 42 $admin_path = apply_filters( 'my_custom_css_get_admin_path', $admin_path ); 43 return $admin_path; 44 } 45 34 46 // Fix old backup folder or no exist 35 47 if (!is_dir(mystylecss_basedir().'/my_custom_css/bkk')) 36 48 { 37 49 wp_mkdir_p(mystylecss_basedir().'/my_custom_css/bkk'); 50 } 51 // And Blank index.html to prevent listing directory 52 else if(!file_exists(mystylecss_basedir()."/my_custom_css/index.html") || !file_exists(mystylecss_basedir()."/my_custom_css/bkk/index.html")) 53 { 54 file_put_contents(mystylecss_basedir()."/my_custom_css/index.html", "<!-- Blank index.html to prevent listing directory -->"); 55 file_put_contents(mystylecss_basedir()."/my_custom_css/bkk/index.html", "<!-- Blank index.html to prevent listing directory -->"); 38 56 } 39 57 … … 53 71 } 54 72 55 56 73 // Generate css path: 57 74 function css_path() … … 68 85 return $mycustomcss; 69 86 } 87 70 88 function mycustomcss_head() 71 89 { … … 74 92 { 75 93 // Write in source! 76 echo "\n<!-- My Custom CSS -->\n<link rel='stylesheet' id='my-custom-css' href='".css_url()."?".filemtime(css_path())."' type='text/css' media='all' />\n<!-- My Custom CSS -->\n"; 77 } 78 } 94 echo "\n<!-- My Custom CSS -->\n<link rel='stylesheet' id='my-custom-css' href='".css_url()."?".@filemtime(css_path())."' type='text/css' media='all' />\n<!-- My Custom CSS -->\n"; 95 } 96 } 97 79 98 function makecss() 80 99 { 81 global $wp_filesystem; 82 if (empty($wp_filesystem)) 83 { 84 require_once (ABSPATH . '/wp-admin/includes/file.php'); 85 WP_Filesystem(); 86 } 87 $makecss = $wp_filesystem->put_contents(css_path(), "/********* Do not edit this file *********/\n/*\nMy Custom CSS - Maked by Salvatore Noschese\na.k.a. DarkWolf - http://www://darkwolf.it/\n*/\n/********* Do not edit this file *********/\n\n".mycustomcss(), 0644); 100 $makecss = file_put_contents(css_path(), "/********* Do not edit this file *********/\n/*\nMy Custom CSS - Maked by Salvatore Noschese\na.k.a. DarkWolf - http://www://darkwolf.it/\n*/\n/********* Do not edit this file *********/\n\n".mycustomcss()); 88 101 return $makecss; 89 102 } 103 90 104 // Fix first upgrade from old release or manual my_style.css deletion! 91 105 if (!file_exists(css_path())) … … 132 146 echo "<style type='text/css'>\n#my-custom-css td.plugin-title strong {\n\tbackground: url(".mycustomcss_data_icon().") no-repeat scroll 115px 2px;\n}\n#my-custom-css div.row-actions-visible {\n\tpadding-top: 15px;\n}\n#my-custom-css div.plugin-version-author-uri {\n\tbackground-color: #EAEAEA;\n\tborder-radius: 5px;\n\tbox-shadow: 0 8px 6px -6px gray; \n\tfont-weight: bold; \n\tpadding: 7px; \n\tmargin-bottom: 12px;\n}\n</style>\n"; 133 147 } 134 }135 136 137 // Blank index.html to prevent listing directory138 if(!file_exists(mystylecss_basedir()."/my_custom_css/index.html") || !file_exists(mystylecss_basedir()."/my_custom_css/bkk/index.html"))139 {140 global $wp_filesystem;141 if (empty($wp_filesystem))142 {143 require_once (ABSPATH . '/wp-admin/includes/file.php');144 WP_Filesystem();145 }146 $wp_filesystem->put_contents(mystylecss_basedir()."/my_custom_css/index.html", "<!-- Blank index.html to prevent listing directory -->", 0644);147 $wp_filesystem->put_contents(mystylecss_basedir()."/my_custom_css/bkk/index.html", "<!-- Blank index.html to prevent listing directory -->", 0644);148 148 } 149 149 … … 270 270 $plugin_page = add_menu_page(__('My Custom CSS Panel','my-custom-css'),__('My Custom CSS','my-custom-css'), 'manage_options', 'my_custom_css', 'mccss_options', mycustomcss_data_icon(), 61); 271 271 add_action('admin_init', 'mycustomcss_registersetting'); 272 add_action('admin_head-'. $plugin_page, 'mycustomcss_s yntax');272 add_action('admin_head-'. $plugin_page, 'mycustomcss_scripts'); 273 273 // Disable "WP Editor" in this page if is active: http://wordpress.org/extend/plugins/wp-editor/ 274 274 If (is_plugin_active("wp-editor/wpeditor.php") && $_SERVER['QUERY_STRING'] == 'page=my_custom_css') … … 309 309 $mobile = "Yes"; 310 310 } 311 else 312 { 313 $mobile = ""; 314 } 311 315 return $mobile; 312 316 } 313 317 314 318 // Option page code: 315 function mycustomcss_s yntax()319 function mycustomcss_scripts() 316 320 { 317 321 $mobile = check_mobile(); … … 364 368 } 365 369 echo ' 366 <!-- Syntax Support Start --> 367 <link type="text/css" rel="stylesheet" href="'.plugin_dir_url(__FILE__).'syntax/codemirror.css" /> 368 <script language="javascript" src="'.plugin_dir_url(__FILE__).'syntax/codemirror.js"></script> 369 <script language="javascript" src="'.plugin_dir_url(__FILE__).'syntax/css.js"></script> 370 <!-- Syntax Support End --> 370 <!-- Ace Support Start --> 371 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/ace.js" charset="utf-8"></script> 372 <script language="javascript" src="'.plugin_dir_url(__FILE__).'scripts/custom-mode.js" charset="utf-8"></script> 373 <!-- Ace Support End --> 371 374 <style type="text/css"> 372 375 p#footer-upgrade … … 376 379 font-style: italic; 377 380 } 381 div#wpfooter 382 { 383 position: relative; 384 } 378 385 </style>'; 379 386 } … … 402 409 } 403 410 else 411 { 404 412 $submit_backup = " value=\"View backup :)\" title=\"Click to view all backup!\" "; 413 } 405 414 406 415 $mobile = check_mobile(); if ($mobile != "Yes") { $no_mobile = '<a href="#" class="scrollup">^Top</a>'; } // Totop only if Not mobile! … … 408 417 <div class="wrap"> 409 418 <h2>' . __('My Custom CSS Panel','my-custom-css') . ' - v'.$plugin_version.'</h2> 410 <form method="post" action="options.php">';419 <form id="my-custom-css" method="post" action="options.php">'; 411 420 settings_fields( 'mccss_settings' ); 412 421 echo ' … … 414 423 <input type="submit" name="save" class="button-primary" value="' . __('Save','my-custom-css') . '" style="height: 50px; width: 150px; position: fixed; right: 25px; z-index: 5; font-size: 30px; top: 45px;" /> 415 424 </p> 416 <textarea name="my_custom_css" id="my_custom_css" dir="ltr" style="width:100%;height:350px;">'.get_option('my_custom_css').'</textarea> 417 <script language="javascript">var editor = CodeMirror.fromTextArea(document.getElementById("my_custom_css"), { lineNumbers: true });</script> 418 <p><!-- Smooth Scroll by DarkWolf -->'.$no_mobile.'<!-- Smooth Scroll by DarkWolf --></p> 419 </form>'; 425 <div id="my_custom_css_container"> 426 <div name="my_custom_css" id="my_custom_css" style="border: 1px solid #DFDFDF; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; width: 100%; height: 400px; position: relative;"></div> 427 </div> 428 <textarea id="my_custom_css_textarea" name="my_custom_css" style="display: none;">'.get_option('my_custom_css').'</textarea> 429 <p><!-- Smooth Scroll by DarkWolf -->'.$no_mobile.'<!-- Smooth Scroll by DarkWolf --></p> 430 </form> 431 </div>'; 420 432 421 433 // Hidden view/erase button for blog id > 1 (security fix in multisite) -
my-custom-css/trunk/readme.txt
r1280488 r1281242 2 2 Contributors: DarkWolf 3 3 Donate link: https://www.paypal.me/SalvatoreN 4 Tags: css, style, custom, theme, plugin, stylesheet, darkwolf 4 Tags: css, style, custom, theme, plugin, stylesheet, darkwolf, ace, cloud9 editor 5 5 Requires at least: 3.0 6 6 Tested up to: 4.3.1 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 9 Enable to add Custom CSS Code via admin panel (with syntax and tab support by CodeMirror)10 + backup (see screen) and static file (best performance) :)9 Enable to add Custom CSS Code via admin panel with Ace (Ajax.org Cloud9 Editor) 10 + backup (see screen) and static file cache (best performance) :) 11 11 12 12 == Description == … … 16 16 With this plugin you can put custom css code without edit your theme and/or your plugins (really useful in case of any theme/plugin update). 17 17 18 It contain also a Syntax (by <a href="http://codemirror.net/">CodeMirror</a>) color and tab supportfor write a good css code.18 It contain also <a href="https://ace.c9.io/">Ace (Ajax.org Cloud9 Editor)</a> Code Editor for write a good css code. 19 19 20 You can see in action (source code) here: http://vegamami.altervista.org/:)20 You can see in action (source code) here: <a href="http://vegamami.altervista.org/">VegAmami</a> :) 21 21 22 22 PS: support file backup and - very important - static css file (fantastic for performance) ;) … … 26 26 * Author Homepage: [Salvatore Noschese - (DarkWol)](https://laltroweb.it/) 27 27 * Plugin maked for (demo link): [VegAmami](http://vegamami.altervista.org/) 28 * Ace (Ajax.org Cloud9 Editor): [Ace (Ajax.org Cloud9 Editor)](https://ace.c9.io/) 28 29 29 30 = Language = … … 47 48 == Upgrade Notice == 48 49 49 = 2. 2=50 = 2.3 = 50 51 51 * More code clean/rewrite/optimization; my_style.css no more deleted if blank (+ for permission); add blank index.html (prevent directory listing); files now is in "wp-content/uploads/" directory ...52 * Some code fix and now use ACE editor instead of Codemiror !!! :D 52 53 53 54 == Changelog == 55 56 = 2.3 = 57 58 * Some code change/fix and now use Ace (Ajax.org Cloud9 Editor) instead of CodeMirror !!! :D 54 59 55 60 = 2.2 =
Note: See TracChangeset
for help on using the changeset viewer.