Changeset 659366
- Timestamp:
- 01/26/2013 06:08:44 PM (13 years ago)
- Location:
- synchi
- Files:
-
- 164 added
- 9 edited
-
tags/5.0 (added)
-
tags/5.0/css (added)
-
tags/5.0/css/synchi.css (added)
-
tags/5.0/css/synchi_editor.css (added)
-
tags/5.0/css/synchi_ide.css (added)
-
tags/5.0/img (added)
-
tags/5.0/img/files (added)
-
tags/5.0/img/files/bmp.png (added)
-
tags/5.0/img/files/css.png (added)
-
tags/5.0/img/files/file.png (added)
-
tags/5.0/img/files/gif.png (added)
-
tags/5.0/img/files/htm.png (added)
-
tags/5.0/img/files/html.png (added)
-
tags/5.0/img/files/jpg.png (added)
-
tags/5.0/img/files/js.png (added)
-
tags/5.0/img/files/php.png (added)
-
tags/5.0/img/files/png.png (added)
-
tags/5.0/img/files/sql.png (added)
-
tags/5.0/img/files/txt.png (added)
-
tags/5.0/img/files/xml.png (added)
-
tags/5.0/img/ide (added)
-
tags/5.0/img/ide/close.png (added)
-
tags/5.0/img/ide/comment.png (added)
-
tags/5.0/img/ide/find_next.png (added)
-
tags/5.0/img/ide/find_prev.png (added)
-
tags/5.0/img/ide/format.png (added)
-
tags/5.0/img/ide/fullscreen.png (added)
-
tags/5.0/img/ide/goto.png (added)
-
tags/5.0/img/ide/indent_left.png (added)
-
tags/5.0/img/ide/indent_right.png (added)
-
tags/5.0/img/ide/menu (added)
-
tags/5.0/img/ide/menu/close.png (added)
-
tags/5.0/img/ide/menu/copy.png (added)
-
tags/5.0/img/ide/menu/cut.png (added)
-
tags/5.0/img/ide/menu/delete.png (added)
-
tags/5.0/img/ide/menu/download.png (added)
-
tags/5.0/img/ide/menu/new_file.png (added)
-
tags/5.0/img/ide/menu/new_folder.png (added)
-
tags/5.0/img/ide/menu/paste.png (added)
-
tags/5.0/img/ide/menu/upload.png (added)
-
tags/5.0/img/ide/redo.png (added)
-
tags/5.0/img/ide/save.png (added)
-
tags/5.0/img/ide/save_all.png (added)
-
tags/5.0/img/ide/search.png (added)
-
tags/5.0/img/ide/search_replace.png (added)
-
tags/5.0/img/ide/spacer.png (added)
-
tags/5.0/img/ide/uncomment.png (added)
-
tags/5.0/img/ide/undo.png (added)
-
tags/5.0/img/loading.gif (added)
-
tags/5.0/img/loading_white.gif (added)
-
tags/5.0/img/theme-previews (added)
-
tags/5.0/img/theme-previews/ambiance.png (added)
-
tags/5.0/img/theme-previews/blackboard.png (added)
-
tags/5.0/img/theme-previews/cobalt.png (added)
-
tags/5.0/img/theme-previews/default.png (added)
-
tags/5.0/img/theme-previews/eclipse.png (added)
-
tags/5.0/img/theme-previews/elegant.png (added)
-
tags/5.0/img/theme-previews/erlang-dark.png (added)
-
tags/5.0/img/theme-previews/lesser-dark.png (added)
-
tags/5.0/img/theme-previews/monokai.png (added)
-
tags/5.0/img/theme-previews/neat.png (added)
-
tags/5.0/img/theme-previews/night.png (added)
-
tags/5.0/img/theme-previews/rubyblue.png (added)
-
tags/5.0/img/theme-previews/xq-dark.png (added)
-
tags/5.0/js (added)
-
tags/5.0/js/jquery.synchi.js (added)
-
tags/5.0/js/synchi_editor.js (added)
-
tags/5.0/js/synchi_ide.js (added)
-
tags/5.0/js/synchi_widget.js (added)
-
tags/5.0/lang (added)
-
tags/5.0/lang/synchi-en_US.mo (added)
-
tags/5.0/lang/synchi-en_US.po (added)
-
tags/5.0/lang/synchi-sr_RS.mo (added)
-
tags/5.0/lang/synchi-sr_RS.po (added)
-
tags/5.0/lib (added)
-
tags/5.0/lib/codemirror (added)
-
tags/5.0/lib/codemirror/codemirror.css (added)
-
tags/5.0/lib/codemirror/codemirror.js (added)
-
tags/5.0/lib/codemirror/mode (added)
-
tags/5.0/lib/codemirror/mode/clike.js (added)
-
tags/5.0/lib/codemirror/mode/css.js (added)
-
tags/5.0/lib/codemirror/mode/htmlmixed.js (added)
-
tags/5.0/lib/codemirror/mode/javascript.js (added)
-
tags/5.0/lib/codemirror/mode/mysql.js (added)
-
tags/5.0/lib/codemirror/mode/php.js (added)
-
tags/5.0/lib/codemirror/mode/xml.js (added)
-
tags/5.0/lib/codemirror/theme (added)
-
tags/5.0/lib/codemirror/theme/ambiance.css (added)
-
tags/5.0/lib/codemirror/theme/blackboard.css (added)
-
tags/5.0/lib/codemirror/theme/cobalt.css (added)
-
tags/5.0/lib/codemirror/theme/eclipse.css (added)
-
tags/5.0/lib/codemirror/theme/elegant.css (added)
-
tags/5.0/lib/codemirror/theme/erlang-dark.css (added)
-
tags/5.0/lib/codemirror/theme/lesser-dark.css (added)
-
tags/5.0/lib/codemirror/theme/monokai.css (added)
-
tags/5.0/lib/codemirror/theme/neat.css (added)
-
tags/5.0/lib/codemirror/theme/night.css (added)
-
tags/5.0/lib/codemirror/theme/rubyblue.css (added)
-
tags/5.0/lib/codemirror/theme/xq-dark.css (added)
-
tags/5.0/lib/codemirror/util (added)
-
tags/5.0/lib/codemirror/util/dialog.css (added)
-
tags/5.0/lib/codemirror/util/dialog.js (added)
-
tags/5.0/lib/codemirror/util/formatting.js (added)
-
tags/5.0/lib/codemirror/util/javascript-hint.js (added)
-
tags/5.0/lib/codemirror/util/match-highlighter.js (added)
-
tags/5.0/lib/codemirror/util/php-hint.js (added)
-
tags/5.0/lib/codemirror/util/pig-hint.js (added)
-
tags/5.0/lib/codemirror/util/search.js (added)
-
tags/5.0/lib/codemirror/util/searchcursor.js (added)
-
tags/5.0/lib/codemirror/util/simple-hint.css (added)
-
tags/5.0/lib/codemirror/util/simple-hint.js (added)
-
tags/5.0/lib/contextmenu (added)
-
tags/5.0/lib/contextmenu/jquery.contextmenu.r2.packed.js (added)
-
tags/5.0/lib/jquery (added)
-
tags/5.0/lib/jquery-tooltip (added)
-
tags/5.0/lib/jquery-tooltip/jquery.tooltip.css (added)
-
tags/5.0/lib/jquery-tooltip/jquery.tooltip.js (added)
-
tags/5.0/lib/jquery/jquery-ui-1.8.21.custom.min.js (added)
-
tags/5.0/lib/jqueryFileTree (added)
-
tags/5.0/lib/jqueryFileTree/images (added)
-
tags/5.0/lib/jqueryFileTree/images/application.png (added)
-
tags/5.0/lib/jqueryFileTree/images/code.png (added)
-
tags/5.0/lib/jqueryFileTree/images/css.png (added)
-
tags/5.0/lib/jqueryFileTree/images/db.png (added)
-
tags/5.0/lib/jqueryFileTree/images/directory.png (added)
-
tags/5.0/lib/jqueryFileTree/images/doc.png (added)
-
tags/5.0/lib/jqueryFileTree/images/file.png (added)
-
tags/5.0/lib/jqueryFileTree/images/film.png (added)
-
tags/5.0/lib/jqueryFileTree/images/flash.png (added)
-
tags/5.0/lib/jqueryFileTree/images/folder_open.png (added)
-
tags/5.0/lib/jqueryFileTree/images/html.png (added)
-
tags/5.0/lib/jqueryFileTree/images/java.png (added)
-
tags/5.0/lib/jqueryFileTree/images/linux.png (added)
-
tags/5.0/lib/jqueryFileTree/images/music.png (added)
-
tags/5.0/lib/jqueryFileTree/images/pdf.png (added)
-
tags/5.0/lib/jqueryFileTree/images/php.png (added)
-
tags/5.0/lib/jqueryFileTree/images/picture.png (added)
-
tags/5.0/lib/jqueryFileTree/images/ppt.png (added)
-
tags/5.0/lib/jqueryFileTree/images/psd.png (added)
-
tags/5.0/lib/jqueryFileTree/images/ruby.png (added)
-
tags/5.0/lib/jqueryFileTree/images/script.png (added)
-
tags/5.0/lib/jqueryFileTree/images/spinner.gif (added)
-
tags/5.0/lib/jqueryFileTree/images/txt.png (added)
-
tags/5.0/lib/jqueryFileTree/images/xls.png (added)
-
tags/5.0/lib/jqueryFileTree/images/zip.png (added)
-
tags/5.0/lib/jqueryFileTree/jqueryFileTree.css (added)
-
tags/5.0/lib/jqueryFileTree/jqueryFileTree.js (added)
-
tags/5.0/lib/shortcut (added)
-
tags/5.0/lib/shortcut/shortcut.js (added)
-
tags/5.0/php (added)
-
tags/5.0/php/editor_controls.php (added)
-
tags/5.0/php/head (added)
-
tags/5.0/php/head/editor.php (added)
-
tags/5.0/php/head/ide.php (added)
-
tags/5.0/php/head/widget.php (added)
-
tags/5.0/php/image.php (added)
-
tags/5.0/php/settings.php (added)
-
tags/5.0/php/synchi_ide.php (added)
-
tags/5.0/php/tree.php (added)
-
tags/5.0/readme.txt (added)
-
tags/5.0/synchi.php (added)
-
tags/5.0/uninstall.php (added)
-
trunk/js/jquery.synchi.js (modified) (2 diffs)
-
trunk/js/synchi_editor.js (modified) (2 diffs)
-
trunk/js/synchi_widget.js (added)
-
trunk/lang/synchi-sr_RS.mo (modified) (previous)
-
trunk/lang/synchi-sr_RS.po (modified) (6 diffs)
-
trunk/php/head/editor.php (modified) (1 diff)
-
trunk/php/head/ide.php (modified) (1 diff)
-
trunk/php/head/widget.php (added)
-
trunk/php/settings.php (modified) (1 diff)
-
trunk/readme.txt (modified) (9 diffs)
-
trunk/synchi.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
synchi/trunk/js/jquery.synchi.js
r622365 r659366 1 1 // ============================================================================= 2 2 // File: synchi.js 3 // Version: 1. 23 // Version: 1.3 4 4 // 5 5 // Synchi global 6 6 // ============================================================================= 7 8 // set the proper jQuery identifier 9 $ = jQuery; 7 10 8 11 if(!synchi_settings) synchi_settings = { … … 35 38 } 36 39 }); 37 38 40 39 41 // calls an ajax synchi action -
synchi/trunk/js/synchi_editor.js
r622373 r659366 68 68 */ 69 69 function synchi_initArticleEditor() { 70 70 // check if controls already rendered 71 71 if(synchi_controls) { 72 72 // handle controls … … 150 150 // perform default behaviour 151 151 switchEditors.switchto(element); 152 return false;153 152 },256); 153 154 return false; 154 155 } 155 156 -
synchi/trunk/lang/synchi-sr_RS.po
r622360 r659366 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: Synchi v 4.6\n"3 "Project-Id-Version: Synchi v5.0\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: \n" 6 "PO-Revision-Date: 201 2-10-31 23:58:58+0000\n"6 "PO-Revision-Date: 2013-01-26 16:33:20+0000\n" 7 7 "Last-Translator: mdjekic <[email protected]>\n" 8 8 "Language-Team: \n" … … 140 140 141 141 #: php/editor_controls.php:36 142 #: php/head/widget.php:45 142 143 #: php/synchi_ide.php:106 143 144 #@ synchi … … 225 226 msgstr "Одабери датотеку/директоријум за преузимање" 226 227 228 #: php/head/editor.php:54 227 229 #: php/head/ide.php:90 228 230 #@ synchi … … 230 232 msgstr "Непозната контрола" 231 233 234 #: php/head/editor.php:55 232 235 #: php/head/ide.php:91 233 236 #@ synchi … … 240 243 msgstr "Изађи без чувања" 241 244 245 #: php/head/editor.php:56 242 246 #: php/head/ide.php:93 247 #: php/head/widget.php:44 243 248 #@ synchi 244 249 msgid "Initializing Synchi IDE" … … 374 379 msgstr "Уређивач чланака" 375 380 376 #: php/settings.php: 74381 #: php/settings.php:84 377 382 #@ synchi 378 383 msgid "Editing Settings" 379 384 msgstr "Радна подешавања" 380 385 381 #: php/settings.php: 78386 #: php/settings.php:88 382 387 #@ synchi 383 388 msgid "Line Numbers" 384 389 msgstr "Нумерисане линије" 385 390 386 #: php/settings.php: 88391 #: php/settings.php:98 387 392 #@ synchi 388 393 msgid "Match Brackets" 389 394 msgstr "Поклапање заграда" 390 395 391 #: php/settings.php: 98396 #: php/settings.php:108 392 397 #@ synchi 393 398 msgid "Indent With Tabs" 394 399 msgstr "Одвајање табулатором" 395 400 396 #: php/settings.php:1 08401 #: php/settings.php:118 397 402 #@ synchi 398 403 msgid "Tab Size" 399 404 msgstr "Величина табулатора" 400 405 401 #: php/settings.php:1 20406 #: php/settings.php:130 402 407 #@ synchi 403 408 msgid "Font Size" 404 409 msgstr "Величина текста" 405 410 406 #: php/settings.php:1 31411 #: php/settings.php:141 407 412 #@ synchi 408 413 msgid "Other Settings" 409 414 msgstr "Остала подешавања" 410 415 411 #: php/settings.php:1 35416 #: php/settings.php:145 412 417 #@ synchi 413 418 msgid "Theme" 414 419 msgstr "Тема" 415 420 416 #: php/settings.php:1 51421 #: php/settings.php:161 417 422 #@ synchi 418 423 msgid "theme preview" 419 424 msgstr "изглед теме" 420 425 426 #: php/settings.php:73 427 #@ synchi 428 msgid "Text Widgets Editor" 429 msgstr "Уређивач текстуалних виџета" 430 -
synchi/trunk/php/head/editor.php
r622365 r659366 5 5 // Version: 1.0 6 6 // 7 // In dcludes head files for synchi editor7 // Includes head files for synchi editor 8 8 // ============================================================================= 9 9 -
synchi/trunk/php/head/ide.php
r615875 r659366 2 2 3 3 // ============================================================================= 4 // File: head_ide.php4 // File: ide.php 5 5 // Version: 2.6 6 6 // -
synchi/trunk/php/settings.php
r622360 r659366 68 68 </select> 69 69 <input type="checkbox" <?php if($synchi_settings['flag_articles'] == 1) echo 'checked="true"'; ?>/> 70 </td> 71 </tr> 72 <tr valign='top'> 73 <th scope='row'><?php echo __('Text Widgets Editor','synchi'); ?></th> 74 <td> 75 <select name="synchi_option_flag_widgets" style="display: none"> 76 <option value="0" <?php if($synchi_settings['flag_widgets'] == 0) echo 'selected="selected"'; ?>>off</option> 77 <option value="1" <?php if($synchi_settings['flag_widgets'] == 1) echo 'selected="selected"'; ?>>on</option> 78 </select> 79 <input type="checkbox" <?php if($synchi_settings['flag_widgets'] == 1) echo 'checked="true"'; ?>/> 70 80 </td> 71 81 </tr> -
synchi/trunk/readme.txt
r622360 r659366 2 2 3 3 Contributors: mdjekic 4 Donate link: http://projects.djekic.net/synchi 4 5 Tags: code, editor, advanced, syntax, highlight, admin, ide, development, codemirror 5 6 License: GPLv2 … … 7 8 Requires at least: 2.7 8 9 Tested up to: 3.4.2 9 Stable tag: 4.610 11 A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features 10 Stable tag: 5 11 12 A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features 12 13 in WP plugin editor, themes editor and article HTML editor. 13 14 14 15 == Description == 15 16 16 Synchi IDE empowers you with syntax highlighting and powerfull IDE features in 17 WP plugin editor, themes editor and article HTML editor. Plugin is based on 17 Synchi IDE empowers you with syntax highlighting and powerfull IDE features in 18 WP plugin editor, themes editor and article HTML editor. Plugin is based on 18 19 CodeMirror library. 19 20 … … 23 24 24 25 Synchi is a full IDE! You no longer need an external code editor, since you 25 can enjoy code writting experience inside your Wordpress, from any location.26 can enjoy code creation experience inside your WordPress, from any location. 26 27 27 28 No need to leave the plugin/themes editor page for saving files, they are now … … 29 30 delete and copy/cut existing files and folders! 30 31 31 You can enjoy syntax highlight and basic IDE features (search/replace,code 32 You can enjoy syntax highlight and basic IDE features (search/replace,code 32 33 formatting, line highlight...) in HTML article editor without conflicts with 33 TinyMCE. Full screen is enabled also. Enjoy! 34 TinyMCE. Full screen is enabled too for both articles and text/HTML widgets 35 editor. Enjoy! 34 36 35 37 = Features = 36 38 37 * [syntax highlight](http://en.wikipedia.org/wiki/Syntax_highlighting) for a number of programming languages 38 * [code completion](http://en.wikipedia.org/wiki/Autocomplete) for JavaScript and PHP (WordPress functions included) 39 * [syntax highlight](http://en.wikipedia.org/wiki/Syntax_highlighting) for a 40 number of programming languages in themes/plugins editor, articles editor 41 and test/HTML widgets editor 42 * [code completion](http://en.wikipedia.org/wiki/Autocomplete) for JavaScript 43 and PHP (WordPress functions included) 39 44 * editor theming for comfortable coding experience 40 45 * full screen editing … … 81 86 82 87 Before you begin, please make sure jQuery is included (should be WP default). If 83 you are by chance using Internet Explorer 6, please do not install this plugin ,84 even better -stop using Internet.88 you are by chance using Internet Explorer 6, please do not install this plugin or, 89 even better, stop using Internet. 85 90 86 91 = Installation steps = … … 89 94 1. Activate the plugin through the 'Plugins' menu in WordPress 90 95 1. Go to Settings -> Synchi to open the settings 91 1. Customize your code editing experience 96 1. Customize your code editing experience and enable/disable Synchi 92 97 1. That's it. Enjoy a full IDE inside Wordpress! 93 98 94 99 == Changelog == 100 101 = 5.0 = 102 * Added syntax highlight for text widgets in widget editor 95 103 96 104 = 4.6 = … … 166 174 == Upgrade Notice == 167 175 168 Upgrade to a enable plugin localization!176 Upgrade to a enable syntax highlight in WP text/HTML widgets! 169 177 170 178 == Screenshots == … … 182 190 libraries made by different authors. 183 191 184 An u measured thanks to authors of libraries and jQuery plugins:192 An unmeasured thanks to authors of libraries and jQuery plugins: 185 193 186 194 * Fantastic [CodeMirror library](http://codemirror.net/) by [Marijn Haverbeke](http://marijnhaverbeke.nl/) … … 192 200 Special thanks to users providing valuable feedback and ideas: 193 201 194 * [ebsalberto] (http://wordpress.org/support/profile/ebsalberto) 195 * [eschwartz93] (http://wordpress.org/support/profile/eschwartz93) 196 * [th.meestersx] (http://wordpress.org/support/profile/thmeesters) 197 198 Synchi IDE plugin is brought to you by [Miloš Đekić](http://milos.djekic.net) 202 * [ebsalberto](http://wordpress.org/support/profile/ebsalberto) 203 * [eschwartz93](http://wordpress.org/support/profile/eschwartz93) 204 * [th.meestersx](http://wordpress.org/support/profile/thmeesters) 205 206 Synchi IDE plugin is brought to you by [Miloš Đekić](http://milos.djekic.net). If you would like to donate for future 207 development, please visit the [project page](http://projects.djekic.net/synchi/). -
synchi/trunk/synchi.php
r622360 r659366 26 26 Plugin URI: http://projects.djekic.net/synchi 27 27 Description: A full IDE inside your Wordpress! Syntax highlighting and powerfull IDE features in WP plugin editor, themes editor and article HTML editor. 28 Version: 4.628 Version: 5.0 29 29 Author: Miloš Đekić 30 30 Author URI: http://milos.djekic.net … … 38 38 39 39 // synchi version 40 define("SYNCHI",' 4.6');40 define("SYNCHI",'5.0'); 41 41 42 42 // define paths … … 53 53 54 54 // define supported modes 55 $synchi_modes = array('plugin-editor','theme-editor','post','post-new' );55 $synchi_modes = array('plugin-editor','theme-editor','post','post-new','widgets'); 56 56 57 57 // define supported extensions … … 243 243 $flag_articles = $_POST['synchi_option_flag_articles']; 244 244 if ($flag_articles == 0 || $flag_articles == 1) update_option('synchi_option_flag_articles', $flag_articles); 245 245 246 // handle flag:widgets 247 if (!isset($_POST['synchi_option_flag_widgets'])) return; 248 $flag_widgets = $_POST['synchi_option_flag_widgets']; 249 if ($flag_widgets == 0 || $flag_widgets == 1) update_option('synchi_option_flag_widgets', $flag_widgets); 250 246 251 /* Editing Settings */ 247 252 … … 425 430 synchi_ajax_error("Folder name can not contain: " . implode(' ',$synchi_bad_chars)); 426 431 } 427 if(strlen($ filename) > 32) synchi_ajax_error("Name must fit in 32 characters.");432 if(strlen($dirname) > 32) synchi_ajax_error("Name must fit in 32 characters."); 428 433 429 434 // get parent … … 560 565 'flag_themes' => get_option('synchi_option_flag_themes') == 1, 561 566 'flag_articles' => get_option('synchi_option_flag_articles') == 1, 567 'flag_widgets' => get_option('synchi_option_flag_widgets') == 1, 562 568 'theme' => $theme, 563 569 'lineWrapping' => true, … … 591 597 // determine mode 592 598 $synchi_mode = str_replace(".php", "", synchi_get_script()); 593 599 594 600 // do nothing for unsupported modes 595 601 if(!in_array($synchi_mode, $synchi_modes)) return; … … 600 606 // determine editor root 601 607 switch($synchi_mode) { 602 case "plugin-editor": 608 case "plugin-editor": 603 609 if(!current_user_can('edit_plugins')) return; 604 610 if(!$synchi_settings['flag_plugins']) return; … … 628 634 include(WP_PLUGIN_DIR . '/synchi/php/head/ide.php'); 629 635 break; 636 case 'widgets': 637 //if(!current_user_can('edit_widgets')) return; 638 if(!$synchi_settings['flag_widgets']) return; 639 sychi_clearRequest(); 640 // include head 641 include(WP_PLUGIN_DIR . '/synchi/php/head/widget.php'); 642 break; 630 643 case 'post': case 'post-new': 631 644 if(!$synchi_settings['flag_articles']) return; … … 678 691 add_option('synchi_option_flag_themes', 1); 679 692 add_option('synchi_option_flag_articles', 1); 693 add_option('synchi_option_flag_widgets', 1); 680 694 681 695 // register editing options
Note: See TracChangeset
for help on using the changeset viewer.