Changeset 2273 for FCKeditor/trunk
- Timestamp:
- 2008-07-24 05:24:58 (4 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 4 removed
- 6 modified
- 12 copied
-
_dev/releaser/fckreleaser.php (modified) (10 diffs)
-
_samples/html/assets (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets)
-
_samples/html/assets/sample06.config.js (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample06.config.js)
-
_samples/html/assets/sample11_frame.html (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample11_frame.html)
-
_samples/html/assets/sample14.config.js (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample14.config.js)
-
_samples/html/assets/sample14.styles.css (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample14.styles.css)
-
_samples/html/assets/sample15.config.js (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample15.config.js)
-
_samples/html/assets/sample16.config.js (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample16.config.js)
-
_samples/html/assets/sample16.fla (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample16.fla)
-
_samples/html/assets/sample16.swf (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/sample16.swf)
-
_samples/html/assets/swfobject.js (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/assets/swfobject.js)
-
_samples/html/sample06.config.js (deleted)
-
_samples/html/sample06.html (modified) (1 diff)
-
_samples/html/sample11_frame.html (deleted)
-
_samples/html/sample11.html (modified) (1 diff)
-
_samples/html/sample14.config.js (deleted)
-
_samples/html/sample14.html (modified) (1 diff)
-
_samples/html/sample14.styles.css (deleted)
-
_samples/html/sample15.html (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/sample15.html)
-
_samples/html/sample16.html (copied) (copied from FCKeditor/branches/features/new_samples/_samples/html/sample16.html)
-
_samples/sampleslist.html (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/_dev/releaser/fckreleaser.php
r2270 r2273 1 #!/usr/bin/php -q1 #!/usr/bin/php -q 2 2 <?php 3 3 /* 4 4 * FCKreleaser - FCKeditor Releaser - http://www.fckeditor.net 5 * Copyright (C) 2003-200 7Frederico Caldeira Knabben5 * Copyright (C) 2003-2008 Frederico Caldeira Knabben 6 6 * 7 7 * == BEGIN LICENSE == … … 24 24 echo( "\n" ) ; 25 25 echo( 'FCKreleaser - FCKeditor Releaser' . "\n" ) ; 26 echo( 'Copyright 2003-2007Frederico Caldeira Knabben - All rights reserved' . "\n" ) ;26 echo( 'Copyright (C) 2003-2008 Frederico Caldeira Knabben - All rights reserved' . "\n" ) ; 27 27 echo( "\n" ) ; 28 28 … … 338 338 } 339 339 ?> 340 <?php340 <?php 341 341 342 342 … … 514 514 $processed = $this->_ProcessVars( $processed, $this->_Parameters ) ; 515 515 516 // Match "var" declarations. 517 $numVarMatches = preg_match_all( '/\bvar\b\s+((?:({(?:(?>[^{}]*)|(?2))*})|[^;])+?)(?=(?:\bin\b)|;)/', $processed, $varsMatches ) ; 516 $numVarMatches = preg_match_all( '/\bvar\b\s+([\w_][\w\d_]+)/', $processed, $varsMatches ) ; 518 517 519 518 if ( $numVarMatches > 0 ) … … 523 522 for ( $i = 0 ; $i < $numVarMatches ; $i++ ) 524 523 { 525 $varsMatch = $varsMatches[1][$i]; 526 527 // Removed all (...), [...] and {...} blocks from the var 528 // statement to avoid problems with commas inside them. 529 $varsMatch = preg_replace( '/(\((?:(?>[^\(\)]*)|(?1))*\))+/', '', $varsMatch ) ; 530 $varsMatch = preg_replace( '/(\[(?:(?>[^\[\]]*)|(?1))*\])+/', '', $varsMatch ) ; 531 $varsMatch = preg_replace( '/({(?:(?>[^{}]*)|(?1))*})+/', '', $varsMatch ) ; 532 533 $numVarNameMatches = preg_match_all( '/(?:^|,)\s*([^\s=,]+)/', $varsMatch, $varNameMatches ) ; 534 535 for ( $j = 0 ; $j < $numVarNameMatches ; $j++ ) 536 { 537 $vars[] = $varNameMatches[1][$j] ; 538 } 524 $vars[] = $varsMatches[1][$i] ; 539 525 } 540 526 … … 550 536 { 551 537 if ( strlen( $var) > 1 ) 552 $source = preg_replace( '/(?<!\w|\d|\.)' . preg_quote( $var ). '(?!\w|\d)/', $this->_GetVarName(), $source ) ;538 $source = preg_replace( '/(?<!\w|\d|\.)' . $var . '(?!\w|\d)/', $this->_GetVarName(), $source ) ; 553 539 } 554 540 … … 566 552 $var = $this->_VarPrefix . $this->_VarChars[ $this->_LastCharIndex++ ] ; 567 553 568 if ( preg_match( '/(?<!\w|\d|\.)' . preg_quote( $var ). '(?!\w|\d)/', $this->_Function ) )554 if ( preg_match( '/(?<!\w|\d|\.)' . $var . '(?!\w|\d)/', $this->_Function ) ) 569 555 return $this->_GetVarName() ; 570 556 else … … 589 575 590 576 ?> 591 592 577 <?php 593 578 … … 710 695 $parameters = preg_split( '/\s*,\s*/', trim( $match[1] ) ) ; 711 696 712 $hasfuncProcessor = isset( $GLOBALS['funcProcessor'] ) ; 713 714 if ( $hasfuncProcessor != TRUE ) 715 $GLOBALS['funcProcessor'] = new FCKFunctionProcessor( $match[0], $parameters, false ) ; 716 else 717 { 718 $GLOBALS['funcProcessor']->_Function = $match[0]; 719 $GLOBALS['funcProcessor']->_Parameters = $parameters; 720 } 721 722 $processed = $GLOBALS['funcProcessor']->Process() ; 723 724 $processed = substr_replace( $processed, '', 0, 8 ) ; 725 726 $processed = FCKJavaScriptCompressor::_ProcessFunctions( $processed ) ; 727 728 if ( $hasfuncProcessor != TRUE ) 729 unset( $GLOBALS['funcProcessor'] ) ; 730 731 return 'function'. $processed ; 732 } 733 } 734 735 ?> 736 697 $funcProcessor = new FCKFunctionProcessor( $match[0], $parameters, false ) ; 698 699 return $funcProcessor->Process() ; 700 } 701 } 702 703 ?> 737 704 <?php 738 705 … … 1094 1061 1095 1062 ?> 1096 1097 1063 <?php 1098 1064 -
FCKeditor/trunk/_samples/html/sample06.html
r1957 r2273 58 58 59 59 // Set the custom configurations file path (in this way the original file is mantained). 60 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/ sample06.config.js' ;60 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample06.config.js' ; 61 61 62 62 // Let's use a custom toolbar for this sample. -
FCKeditor/trunk/_samples/html/sample11.html
r1565 r2273 39 39 <div id="xToolbar"></div> 40 40 <hr /> 41 <iframe src=" sample11_frame.html" width="100%" height="300"></iframe>41 <iframe src="assets/sample11_frame.html" width="100%" height="300"></iframe> 42 42 </body> 43 43 </html> -
FCKeditor/trunk/_samples/html/sample14.html
r1957 r2273 53 53 // Instruct the editor to load our configurations from a custom file, leaving the 54 54 // original configuration file untouched. 55 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/ sample14.config.js' ;55 oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/assets/sample14.config.js' ; 56 56 57 57 oFCKeditor.Height = 300 ; -
FCKeditor/trunk/_samples/sampleslist.html
r1565 r2273 65 65 <option value="html/sample13.html">JavaScript : Sample 13 : Dinamically switching with a Textarea</option> 66 66 <option value="html/sample14.html">JavaScript : Sample 14 : XHTML 1.1</option> 67 <option value="html/sample15.html">JavaScript : Sample 15 : Legacy HTML 4 tags</option> 68 <option value="html/sample16.html">JavaScript : Sample 16 : Flash content editor</option> 67 69 <option value=""></option> 68 70 </optgroup> -
FCKeditor/trunk/_whatsnew.html
r2258 r2273 49 49 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2247">#2247</a>] The SHIFT+SPACE 50 50 keystroke will now produce a &nbsp; character.</li> 51 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2032">#2032</a>] Added HTML samples 52 for legacy HTML and Flash-embedded HTML code.</li> 51 53 </ul> 52 54 <p>