Changeset 5208
- Timestamp:
- 02/26/10 15:27:50 (3 years ago)
- Location:
- CKEditor/tags/3.1.1
- Files:
-
- 10 edited
-
. (modified) (1 prop)
-
CHANGES.html (modified) (1 diff)
-
_dev/fixlineends/fixlineends.bat (modified) (1 diff)
-
_dev/fixlineends/fixlineends.php (modified) (7 diffs)
-
_dev/releaser/ckreleaser.release (modified) (1 prop)
-
_dev/releaser/release.bat (modified) (1 prop)
-
_source/plugins/dialog/plugin.js (modified) (1 diff)
-
_source/plugins/div/dialogs/div.js (modified) (1 prop)
-
_source/plugins/div/plugin.js (modified) (1 prop)
-
_source/plugins/showborders/plugin.js (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/tags/3.1.1
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x (added) merged: 5204 /CKEditor/trunk merged: 5199-5201,5203
- Property svn:mergeinfo changed
-
CKEditor/tags/3.1.1/CHANGES.html
r5183 r5208 56 56 <li><a href="http://dev.fckeditor.net/ticket/4640">#4640</a> : Small optimizations for the fileBrowser plugin.</li> 57 57 <li><a href="http://dev.fckeditor.net/ticket/4583">#4583</a> : The "Target Frame Name" field is now visible when target is set to 'frame' only.</li> 58 <li><a href="http://dev.fckeditor.net/ticket/4863">#4863</a> : Fixing iframedialog's height doesn't stretch to 100% .</li>58 <li><a href="http://dev.fckeditor.net/ticket/4863">#4863</a> : Fixing iframedialog's height doesn't stretch to 100% (except IE Quirks).</li> 59 59 <li><a href="http://dev.fckeditor.net/ticket/4964">#4964</a> : The BACKSPACE key positioning was not correct in some cases with Firefox.</li> 60 60 <li><a href="http://dev.fckeditor.net/ticket/4980">#4980</a> : Setting border, vspace and hspace of images to zero was not working.</li> -
CKEditor/tags/3.1.1/_dev/fixlineends/fixlineends.bat
r4882 r5208 5 5 :: 6 6 7 php fixlineends.php --excluderegex=/(?:_dev[\\\/]_thirdparty)/ --eolstripwhite --eofnewline --eofstripwhite --nohidden --nosystem ../../7 php fixlineends.php --excluderegex=/(?:_dev[\\\/]_thirdparty)/ --eolstripwhite --eofnewline --eofstripwhite --nohidden --nosystem --fixbom ../../ -
CKEditor/tags/3.1.1/_dev/fixlineends/fixlineends.php
r5180 r5208 64 64 $list["xml"] = CRLF; 65 65 66 $bom = array(); 67 $bom['asp'] = true; 68 $bom['js'] = true; 69 66 70 /** 67 71 * Do not modify anything below … … 107 111 */ 108 112 $nodotfiles = false; 113 /** 114 * If set to true, BOM characters are fixed 115 * @var boolean $fixbom 116 */ 117 $fixbom = false; 109 118 /** 110 119 * How deep to recurse into subdirectories … … 317 326 } 318 327 $new_content .= $line; 328 } 329 330 if ($GLOBALS['fixbom']) { 331 $before_fixing = $new_content; 332 $ext = strtolower(substr($path, strrpos($path, ".") + 1)); 333 $new_content = stripUtf8Bom( $new_content ); 334 if (!empty($GLOBALS['bom'][$ext])) { 335 $new_content = "\xEF\xBB\xBF" . $new_content; // BOM 336 } 337 if ($new_content != $before_fixing) 338 $modified = true; 319 339 } 320 340 … … 353 373 354 374 /** 375 * Strip BOM from a string 376 * @param string $data 377 */ 378 function stripUtf8Bom( $data ) 379 { 380 if ( substr( $data, 0, 3 ) == "\xEF\xBB\xBF" ) 381 return stripUtf8Bom(substr_replace( $data, '', 0, 3 )) ; 382 383 return $data ; 384 } 385 386 /** 355 387 * Fix ending lines in all files at given path 356 388 * … … 453 485 use regex to exclude files, preg_match() format expected 454 486 487 --fixbom 488 fix BOM characters 489 455 490 --help 456 491 display this help and exit 457 492 458 493 --noarchive 459 if set to true, archive files are skipped(Windows only)494 skip archive files (Windows only) 460 495 461 496 --nodotfiles 462 if set to true, dot files are skipped497 skip dot files 463 498 464 499 --nohidden 465 if set to true, hidden files are skipped(Windows only)500 skip hidden files (Windows only) 466 501 467 502 --nosystem 468 if set to true, system files are skipped(Windows only)503 skip system files (Windows only) 469 504 470 505 --maxdepth … … 525 560 case '--nodotfiles': 526 561 $GLOBALS['nodotfiles'] = true; 562 break; 563 564 case '--fixbom': 565 $GLOBALS['fixbom'] = true; 527 566 break; 528 567 … … 572 611 573 612 if ($_SERVER['argc']>1) { 574 include "../_thirdparty/console_getopt/Getopt.php";613 include "../_thirdparty/console_getopt/Getopt.php"; 575 614 576 615 if ($windows) { 577 $longoptions = array("eofstripwhite", "eofnewline", "eolstripwhite", "help", "noarchive", "nohidden", "nosystem", "nodotfiles", "maxdepth=", "excluderegex=" );616 $longoptions = array("eofstripwhite", "eofnewline", "eolstripwhite", "help", "noarchive", "nohidden", "nosystem", "nodotfiles", "maxdepth=", "excluderegex=", "fixbom"); 578 617 } 579 618 else { 580 $longoptions = array("eofstripwhite", "eofnewline", "eolstripwhite", "help", "nodotfiles", "maxdepth=", "excluderegex=" );619 $longoptions = array("eofstripwhite", "eofnewline", "eolstripwhite", "help", "nodotfiles", "maxdepth=", "excluderegex=", "fixbom"); 581 620 } 582 621 -
CKEditor/tags/3.1.1/_dev/releaser/ckreleaser.release
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x/_dev/releaser/ckreleaser.release (added) merged: 5204
- Property svn:mergeinfo changed
-
CKEditor/tags/3.1.1/_dev/releaser/release.bat
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x/_dev/releaser/release.bat (added) merged: 5204
- Property svn:mergeinfo changed
-
CKEditor/tags/3.1.1/_source/plugins/dialog/plugin.js
r5180 r5208 806 806 expand : !!contents.expand, 807 807 padding : contents.padding, 808 style : contents.style || 'width: 100%; height: 100%;'808 style : contents.style || 'width: 100%;' + ( CKEDITOR.env.ie6Compat ? '' : 'height: 100%;' ) 809 809 }, pageHtml ); 810 810 -
CKEditor/tags/3.1.1/_source/plugins/div/dialogs/div.js
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x/_source/plugins/div/dialogs/div.js (added) merged: 5204
- Property svn:mergeinfo changed
-
CKEditor/tags/3.1.1/_source/plugins/div/plugin.js
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x/_source/plugins/div/plugin.js (added) merged: 5204
- Property svn:mergeinfo changed
-
CKEditor/tags/3.1.1/_source/plugins/showborders/plugin.js
- Property svn:mergeinfo changed
/CKEditor/branches/versions/3.1.x/_source/plugins/showborders/plugin.js (added) merged: 5204
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.
