From blaine at qs1489.pair.com Fri Aug 1 14:49:00 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Fri, 01 Aug 2008 18:49:00 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin user.php,1.208,1.209 Message-ID: <20080801184901.0C4B4F740E@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv97260 Modified Files: user.php Log Message: Added optional parm to the CUSTOM_userCreate function that is used to detect being called from the Admin->user Batch Add feature vs the registration form Required a new parm to be added to function USER_createAccount() Index: user.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/user.php,v retrieving revision 1.208 retrieving revision 1.209 diff -C2 -d -r1.208 -r1.209 *** user.php 8 Jul 2008 18:42:54 -0000 1.208 --- user.php 1 Aug 2008 18:48:58 -0000 1.209 *************** *** 1066,1072 **** if (($ucount == 0) && ($ecount == 0)) { ! // user doesn't already exist $uid = USER_createAccount ($userName, $emailAddr, '', ! $fullName); $result = USER_createAndSendPassword ($userName, $emailAddr, $uid); --- 1066,1072 ---- if (($ucount == 0) && ($ecount == 0)) { ! // user doesn't already exist - pass in optional true for $batchimport parm $uid = USER_createAccount ($userName, $emailAddr, '', ! $fullName,'','','',true); $result = USER_createAndSendPassword ($userName, $emailAddr, $uid); From blaine at qs1489.pair.com Fri Aug 1 14:49:12 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Fri, 01 Aug 2008 18:49:12 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-custom.php, 1.40, 1.41 lib-user.php, 1.46, 1.47 Message-ID: <20080801184912.B6417F740E@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv97301 Modified Files: lib-custom.php lib-user.php Log Message: Added optional parm to the CUSTOM_userCreate function that is used to detect being called from the Admin->user Batch Add feature vs the registration form Required a new parm to be added to function USER_createAccount() Index: lib-user.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-user.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** lib-user.php 5 May 2008 20:04:38 -0000 1.46 --- lib-user.php 1 Aug 2008 18:49:09 -0000 1.47 *************** *** 238,250 **** * NOTE: Does NOT send out password emails. * ! * @param string $username user name (mandatory) ! * @param string $email user's email address (mandatory) ! * @param string $passwd password (optional, see above) ! * @param string $fullname user's full name (optional) ! * @param string $homepage user's home page (optional) ! * @return int new user's ID * */ ! function USER_createAccount ($username, $email, $passwd = '', $fullname = '', $homepage = '', $remoteusername = '', $service = '') { global $_CONF, $_TABLES; --- 238,251 ---- * NOTE: Does NOT send out password emails. * ! * @param string $username user name (mandatory) ! * @param string $email user's email address (mandatory) ! * @param string $passwd password (optional, see above) ! * @param string $fullname user's full name (optional) ! * @param string $homepage user's home page (optional) ! * @param boolean $batchimport set to true when called from importuser() in admin/users.php (optional) ! * @return int new user's ID * */ ! function USER_createAccount ($username, $email, $passwd = '', $fullname = '', $homepage = '', $remoteusername = '', $service = '',$batchimport=false) { global $_CONF, $_TABLES; *************** *** 324,328 **** // call custom registration function and plugins if ($_CONF['custom_registration'] && (function_exists ('CUSTOM_userCreate'))) { ! CUSTOM_userCreate ($uid); } PLG_createUser ($uid); --- 325,329 ---- // call custom registration function and plugins if ($_CONF['custom_registration'] && (function_exists ('CUSTOM_userCreate'))) { ! CUSTOM_userCreate ($uid,$batchimport); } PLG_createUser ($uid); Index: lib-custom.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-custom.php,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** lib-custom.php 31 May 2008 19:49:36 -0000 1.40 --- lib-custom.php 1 Aug 2008 18:49:09 -0000 1.41 *************** *** 137,140 **** --- 137,143 ---- Sample is provided under /system with the distribution. + Note3: Optional parm $bulkimport added so that if your using the [Batch Add] feature, + you can execute different logic if required. + Functions have been provided that are called from the Core Geeklog user and admin functions - This works with User Moderation as well *************** *** 148,152 **** /* Update any fields in the core GL tables for this user as needed */ /* Called when user is first created */ ! function CUSTOM_userCreate ($uid) { global $_CONF, $_TABLES; --- 151,155 ---- /* Update any fields in the core GL tables for this user as needed */ /* Called when user is first created */ ! function CUSTOM_userCreate ($uid,$bulkimport=false) { global $_CONF, $_TABLES; From blaine at qs1489.pair.com Fri Aug 1 14:55:49 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Fri, 01 Aug 2008 18:55:49 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.693,1.694 Message-ID: <20080801185549.B6B48F740E@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv98144 Modified Files: history Log Message: Add comment for a couple of my changes Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.693 retrieving revision 1.694 diff -C2 -d -r1.693 -r1.694 *** history 29 Jul 2008 19:06:41 -0000 1.693 --- history 1 Aug 2008 18:55:40 -0000 1.694 *************** *** 3,7 **** ??? ??, 2008 (1.5.1) ------------ ! - Fix for date formatting in RSS fields (bug #0000696) [mystral_kk] - A small tweak to the Professional theme's commentbar to make the "Post a --- 3,8 ---- ??? ??, 2008 (1.5.1) ------------ ! - Change for CUSTOM_usercreate to support passing in $batchimport, ! set true if called via the Admin->Users Batch_Add [Blaine] - Fix for date formatting in RSS fields (bug #0000696) [mystral_kk] - A small tweak to the Professional theme's commentbar to make the "Post a *************** *** 48,51 **** --- 49,53 ---- Other remote users will have to use the form username at servicename for their username [Dirk] + - Fix to template.class to better hanndle full path being passed in [Blaine] - Updated PLG_uninstall to supress errors for table drop. [bug 0000668] [Mike] - Fixed INST_checkTableExists for MS SQL Support. [bug 0000668] [Mike] From mjervis at qs1489.pair.com Fri Aug 1 15:51:45 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 19:51:45 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.694,1.695 Message-ID: <20080801195145.E142CF740E@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv6096/public_html/docs Modified Files: history Log Message: Renamed remove() to gl_cfg_remove bug 0000681. Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.694 retrieving revision 1.695 diff -C2 -d -r1.694 -r1.695 *** history 1 Aug 2008 18:55:40 -0000 1.694 --- history 1 Aug 2008 19:51:43 -0000 1.695 *************** *** 3,6 **** --- 3,8 ---- ??? ??, 2008 (1.5.1) ------------ + + - Moved remove() (config javascript) to gl_cfg_remove (bug #0000681) [Mike] - Change for CUSTOM_usercreate to support passing in $batchimport, set true if called via the Admin->Users Batch_Add [Blaine] From mjervis at qs1489.pair.com Fri Aug 1 15:51:47 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 19:51:47 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/javascript configmanager.js, 1.2, 1.3 Message-ID: <20080801195147.D603CF7410@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/javascript In directory qs1489.pair.com:/tmp/cvs-serv6096/public_html/javascript Modified Files: configmanager.js Log Message: Renamed remove() to gl_cfg_remove bug 0000681. Index: configmanager.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/javascript/configmanager.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configmanager.js 30 Dec 2007 03:06:54 -0000 1.2 --- configmanager.js 1 Aug 2008 19:51:43 -0000 1.3 *************** *** 69,73 **** } ! function remove(self){ cell = self.parentNode.parentNode; cell.parentNode.removeChild(cell); --- 69,73 ---- } ! function gl_cfg_remove(self){ cell = self.parentNode.parentNode; cell.parentNode.removeChild(cell); From mjervis at qs1489.pair.com Fri Aug 1 15:51:47 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 19:51:47 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/javascript configmanager.js, 1.2, 1.3 Message-ID: <20080801195147.D603CF7410@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/javascript In directory qs1489.pair.com:/tmp/cvs-serv6096/public_html/javascript Modified Files: configmanager.js Log Message: Renamed remove() to gl_cfg_remove bug 0000681. Index: configmanager.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/javascript/configmanager.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configmanager.js 30 Dec 2007 03:06:54 -0000 1.2 --- configmanager.js 1 Aug 2008 19:51:43 -0000 1.3 *************** *** 69,73 **** } ! function remove(self){ cell = self.parentNode.parentNode; cell.parentNode.removeChild(cell); --- 69,73 ---- } ! function gl_cfg_remove(self){ cell = self.parentNode.parentNode; cell.parentNode.removeChild(cell); From mjervis at qs1489.pair.com Fri Aug 1 15:51:47 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 19:51:47 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/config config_element.thtml, 1.6, 1.7 Message-ID: <20080801195147.0B731F7411@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/config In directory qs1489.pair.com:/tmp/cvs-serv6096/public_html/layout/professional/admin/config Modified Files: config_element.thtml Log Message: Renamed remove() to gl_cfg_remove bug 0000681. Index: config_element.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/config/config_element.thtml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** config_element.thtml 27 Jan 2008 09:02:15 -0000 1.6 --- config_element.thtml 1 Aug 2008 19:51:44 -0000 1.7 *************** *** 1,4 **** ! --- 1,4 ---- ! From mjervis at qs1489.pair.com Fri Aug 1 16:25:21 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 20:25:21 +0000 Subject: [geeklog-cvs] Geeklog-1.x/language english.php, 1.341, 1.342 english_utf-8.php, 1.125, 1.126 Message-ID: <20080801202521.B7A10F740E@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/language In directory qs1489.pair.com:/tmp/cvs-serv10355/language Modified Files: english.php english_utf-8.php Log Message: Bug #0000692, Censormode is not just on and off. Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/language/english.php,v retrieving revision 1.341 retrieving revision 1.342 diff -C2 -d -r1.341 -r1.342 *** english.php 27 Jul 2008 09:11:29 -0000 1.341 --- english.php 1 Aug 2008 20:25:19 -0000 1.342 *************** *** 1852,1856 **** 15 => array('By Number' => 'sortnum', 'Alphabetically' => 'alpha'), 16 => array('No Login required' => 0, 'Advanced Search only' => 1, 'Simple + Advanced Search' => 2), ! 17 => array('Comments Enabled' => 0, 'Comments Disabled' => -1) ); --- 1852,1857 ---- 15 => array('By Number' => 'sortnum', 'Alphabetically' => 'alpha'), 16 => array('No Login required' => 0, 'Advanced Search only' => 1, 'Simple + Advanced Search' => 2), ! 17 => array('Comments Enabled' => 0, 'Comments Disabled' => -1), ! 18 => array('Disabled' => 0, 'Enabled (Exact Match)' => 1, 'Enabled (Word Beginning)' => 2, 'Enabled (Word Fragment)' => 3) ); Index: english_utf-8.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/language/english_utf-8.php,v retrieving revision 1.125 retrieving revision 1.126 diff -C2 -d -r1.125 -r1.126 *** english_utf-8.php 27 Jul 2008 09:11:29 -0000 1.125 --- english_utf-8.php 1 Aug 2008 20:25:19 -0000 1.126 *************** *** 1852,1856 **** 15 => array('By Number' => 'sortnum', 'Alphabetically' => 'alpha'), 16 => array('No Login required' => 0, 'Advanced Search only' => 1, 'Simple + Advanced Search' => 2), ! 17 => array('Comments Enabled' => 0, 'Comments Disabled' => -1) ); --- 1852,1857 ---- 15 => array('By Number' => 'sortnum', 'Alphabetically' => 'alpha'), 16 => array('No Login required' => 0, 'Advanced Search only' => 1, 'Simple + Advanced Search' => 2), ! 17 => array('Comments Enabled' => 0, 'Comments Disabled' => -1), ! 18 => array('Disabled' => 0, 'Enabled (Exact Match)' => 1, 'Enabled (Word Beginning)' => 2, 'Enabled (Word Fragment)' => 3) ); From mjervis at qs1489.pair.com Fri Aug 1 16:25:22 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Fri, 01 Aug 2008 20:25:22 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs config.html, 1.90, 1.91 history, 1.695, 1.696 Message-ID: <20080801202523.0C334F7410@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv10355/public_html/docs Modified Files: config.html history Log Message: Bug #0000692, Censormode is not just on and off. Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.90 retrieving revision 1.91 diff -C2 -d -r1.90 -r1.91 *** config.html 4 Jul 2008 20:58:32 -0000 1.90 --- config.html 1 Aug 2008 20:25:19 -0000 1.91 *************** *** 1337,1341 ****
story_text_no_brlang_todays_featured_articleNote: Themes made for Geeklog 1.5.0 should be compatible with Geeklog 1.5.1. ! We only made a few optional additions and a few adjustments for special setups ! (e.g. multi-language sites, right-to-left languages) which are detailed ! below.
Note: Themes made for Geeklog 1.5.0 are mostly compatible with Geeklog 1.5.1. We only made one mandatory change (for the Configuration admin panel) - all the other changes listed below are optional or adjustments for special setups (e.g. multi-language sites, right-to-left languages). See details below.
! !The JavaScript code used for the Configuration admin panel used a generic name which caused conflicts with other JavaScript code. You should update the file admin/config/config_element.thtml to make sure your theme works with Geeklog 1.5.1.
{page_title}
! changed so that it now only contains the actual page title or the site's
! slogan (in earlier versions, it contained both the site's name and either
! the page title or the site's slogan). This was done so that the combination
! {page_title}{page_site_splitter}{site_name} could be used
! to place the page title before the site's name for better SEO. If you prefer
--- 227,235 ----
{page_title}
! (in header.thtml) changed so that it now only contains the actual
! page title or the site's slogan (in earlier versions, it contained both the
! site's name and either the page title or the site's slogan). This was done
! so that the combination {page_title}{page_site_splitter}{site_name}
! could be used to place the page title before the site's name for better SEO. If you prefer
***************
*** 251,254 ****
--- 252,260 ----
no changes in functionality and other commentbar layouts will continue to
work as before.{story_text_no_br} variable to refer to the story
+ text. Template files that use {story_introtext} here will
+ continue to work as before.. ! // 5. Convert any
to \n. This must not be done earlier because the \n would then get compressed. var htmlIterator = new FCKHtmlIterator( innerHTML ) ; var results = [] ; --- 809,823 ---- var innerHTML = block.innerHTML.Trim() ; ! // 1. Delete ANSI whitespaces immediately before and after
because ! // they are not visible. ! // 2. Mark down any
nodes here so they can be turned into \n in ! // the next step and avoid being compressed. ! innerHTML = innerHTML.replace( /[ \t\r\n]*(
]*>)[ \t\r\n]*/gi, '
' ) ; ! // 3. Compress other ANSI whitespaces since they're only visible as one ! // single space previously. // 4. Convert to spaces since is no longer needed in. ! // 5. Convert any
to \n. This must not be done earlier because ! // the \n would then get compressed. var htmlIterator = new FCKHtmlIterator( innerHTML ) ; var results = [] ; *************** *** 816,827 **** if ( !isTag ) value = value.replace( /([ \t\n\r]+| )/g, ' ' ) ; ! else if ( isTag && value == '
' ) value = '\n' ; results.push( value ) ; } ) ; ! // Assigning innerHTML toin IE causes all linebreaks to be reduced to spaces. ! // Assigning outerHTML toin IE doesn't work if theisn't contained in another node ! // since the node reference is changed after outerHTML assignment. // So, we need some hacks to workaround IE bugs here. if ( FCKBrowserInfo.IsIE ) --- 826,839 ---- if ( !isTag ) value = value.replace( /([ \t\n\r]+| )/g, ' ' ) ; ! else if ( isTag && value == '
' ) value = '\n' ; results.push( value ) ; } ) ; ! // Assigning innerHTML toin IE causes all linebreaks to be ! // reduced to spaces. ! // Assigning outerHTML toin IE doesn't work if theisn't ! // contained in another node since the node reference is changed after ! // outerHTML assignment. // So, we need some hacks to workaround IE bugs here. if ( FCKBrowserInfo.IsIE ) *************** *** 829,841 **** var temp = doc.createElement( 'div' ) ; temp.appendChild( newBlock ) ; ! newBlock.outerHTML = '\n' + results.join( '' ) + '' ; newBlock = temp.removeChild( temp.firstChild ) ; } else newBlock.innerHTML = results.join( '' ) ; return newBlock ; }, /** * Apply an inline style to a FCKDomRange. * --- 841,933 ---- var temp = doc.createElement( 'div' ) ; temp.appendChild( newBlock ) ; ! newBlock.outerHTML = '\n' + results.join( '' ) + '' ; newBlock = temp.removeChild( temp.firstChild ) ; } else newBlock.innerHTML = results.join( '' ) ; + return newBlock ; }, /** + * Merge ablock with a previousblock, if available. + */ + _CheckAndMergePre : function( previousBlock, preBlock ) + { + // Check if the previous block and the current block are next + // to each other. + if ( previousBlock != FCKDomTools.GetPreviousSourceElement( preBlock, true ) ) + return ; + + // Merge the previousblock contents into the current+ // block. + // + // Another thing to be careful here is that currentBlock might contain + // a '\n' at the beginning, and previousBlock might contain a '\n' + // towards the end. These new lines are not normally displayed but they + // become visible after merging. + var innerHTML = previousBlock.innerHTML.replace( /\n$/, '' ) + '\n\n' + + preBlock.innerHTML.replace( /^\n/, '' ) ; + + // Buggy IE normalizes innerHTML from, breaking whitespaces. + if ( FCKBrowserInfo.IsIE ) + preBlock.outerHTML = '' + innerHTML + '' ; + else + preBlock.innerHTML = innerHTML ; + + // Remove the previousblock. + // + // The preBlock must not be moved or deleted from the DOM tree. This + // guarantees the FCKDomRangeIterator in _ApplyBlockStyle would not + // get lost at the next iteration. + FCKDomTools.RemoveNode( previousBlock ) ; + }, + + _CheckAndSplitPre : function( newBlock ) + { + var lastNewBlock ; + + var cursor = newBlock.firstChild ; + + // We are not splitting
at the beginning of the block, so + // we'll start from the second child. + cursor = cursor && cursor.nextSibling ; + + while ( cursor ) + { + var next = cursor.nextSibling ; + + // If we have two
s, and they're not at the beginning or the end, + // then we'll split up the contents following them into another block. + // Stop processing if we are at the last child couple. + if ( next && next.nextSibling && cursor.nodeName.IEquals( 'br' ) && next.nodeName.IEquals( 'br' ) ) + { + // Remove the first
. + FCKDomTools.RemoveNode( cursor ) ; + + // Move to the node after the second
. + cursor = next.nextSibling ; + + // Remove the second
. + FCKDomTools.RemoveNode( next ) ; + + // Create the block that will hold the child nodes from now on. + lastNewBlock = FCKDomTools.InsertAfterNode( lastNewBlock || newBlock, FCKDomTools.CloneElement( newBlock ) ) ; + + continue ; + } + + // If we split it, then start moving the nodes to the new block. + if ( lastNewBlock ) + { + cursor = cursor.previousSibling ; + FCKDomTools.MoveNode(cursor.nextSibling, lastNewBlock ) ; + } + + cursor = cursor.nextSibling ; + } + }, + + /** * Apply an inline style to a FCKDomRange. * *************** *** 857,863 **** var block ; var doc = range.Window.document ; ! ! var preBlocks = [] ; ! var convertedPreBlocks = [] ; while( ( block = iterator.GetNextParagraph() ) ) // Only one = --- 949,953 ---- var block ; var doc = range.Window.document ; ! var previousPreBlock ; while( ( block = iterator.GetNextParagraph() ) ) // Only one = *************** *** 866,882 **** var newBlock = this.BuildElement( doc ) ; // Move everything from the current node to the new one. ! var newBlockIsPre = newBlock.nodeName.IEquals( 'pre' ) ; ! var blockIsPre = block.nodeName.IEquals( 'pre' ) ; ! if ( newBlockIsPre && !blockIsPre ) ! { newBlock = this._ToPre( doc, block, newBlock ) ; ! preBlocks.push( newBlock ) ; ! } ! else if ( !newBlockIsPre && blockIsPre ) ! { newBlock = this._FromPre( doc, block, newBlock ) ; - convertedPreBlocks.push( newBlock ) ; - } else // Convering from a regular block to another regular block. FCKDomTools.MoveChildren( block, newBlock ) ; --- 956,971 ---- var newBlock = this.BuildElement( doc ) ; + // Check if we are changing from/to. + var newBlockIsPre = newBlock.nodeName.IEquals( 'pre' ) ; + var blockIsPre = block.nodeName.IEquals( 'pre' ) ; + + var toPre = newBlockIsPre && !blockIsPre ; + var fromPre = !newBlockIsPre && blockIsPre ; + // Move everything from the current node to the new one. ! if ( toPre ) newBlock = this._ToPre( doc, block, newBlock ) ; ! else if ( fromPre ) newBlock = this._FromPre( doc, block, newBlock ) ; else // Convering from a regular block to another regular block. FCKDomTools.MoveChildren( block, newBlock ) ; *************** *** 885,930 **** block.parentNode.insertBefore( newBlock, block ) ; FCKDomTools.RemoveNode( block ) ; - } ! // Merge adjacentblocks for #1229. ! for ( var i = 0 ; i < preBlocks.length - 1 ; i++ ) ! { ! // Check if the next block in HTML equals the nextblock generated. ! if ( FCKDomTools.GetNextSourceElement( preBlocks[i], true, [], [], true ) != preBlocks[i+1] ) ! continue ; ! ! // Merge the upperblock's content into the lowerblock. ! // Remove the upperblock. ! preBlocks[i+1].innerHTML = preBlocks[i].innerHTML + '\n\n' + preBlocks[i+1].innerHTML ; ! FCKDomTools.RemoveNode( preBlocks[i] ) ; ! } ! ! // Split convertedblocks for #1229. ! for ( var i = 0 ; i < convertedPreBlocks.length ; i++ ) ! { ! var currentBlock = convertedPreBlocks[i] ; ! var lastNewBlock = null ; ! for ( var j = 0 ; j < currentBlock.childNodes.length ; j++ ) { ! var cursor = currentBlock.childNodes[j] ; ! ! // If we have two
s, and they're not at the beginning or the end, ! // then we'll split up the contents following them into another block. ! if ( cursor.nodeName.IEquals( 'br' ) && j != 0 && j != currentBlock.childNodes.length - 2 ! && cursor.nextSibling && cursor.nextSibling.nodeName.IEquals( 'br' ) ) ! { ! FCKDomTools.RemoveNode( cursor.nextSibling ) ; ! FCKDomTools.RemoveNode( cursor ) ; ! j-- ; // restart at current index at next iteration ! lastNewBlock = FCKDomTools.InsertAfterNode( lastNewBlock || currentBlock, doc.createElement( currentBlock.nodeName ) ) ; ! continue ; ! } ! ! if ( lastNewBlock ) ! { ! FCKDomTools.MoveNode( cursor, lastNewBlock ) ; ! j-- ; // restart at current index at next iteration ! } } } --- 974,987 ---- block.parentNode.insertBefore( newBlock, block ) ; FCKDomTools.RemoveNode( block ) ; ! // Complete other tasks after inserting the node in the DOM. ! if ( newBlockIsPre ) { ! if ( previousPreBlock ) ! this._CheckAndMergePre( previousPreBlock, newBlock ) ; // Merge successiveblocks. ! previousPreBlock = newBlock ; } + else if ( fromPre ) + this._CheckAndSplitPre( newBlock ) ; // Split
in successives. } Index: fckdomrangeiterator.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/classes/fckdomrangeiterator.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fckdomrangeiterator.js 5 May 2008 00:35:23 -0000 1.2 --- fckdomrangeiterator.js 10 Aug 2008 16:46:25 -0000 1.3 *************** *** 137,141 **** // point. (#1717) if ( nodeName != 'br' ) ! this._NextNode = currentNode ; } --- 137,141 ---- // point. (#1717) if ( nodeName != 'br' ) ! this._NextNode = FCKDomTools.GetNextSourceNode( currentNode, true, null, lastNode ) ; } Index: fckpanel.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/classes/fckpanel.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fckpanel.js 5 May 2008 00:35:23 -0000 1.5 --- fckpanel.js 10 Aug 2008 16:46:25 -0000 1.6 *************** *** 67,75 **** { var oIFrame = this._IFrame = this._Window.document.createElement('iframe') ; oIFrame.src = 'javascript:void(0)' ; oIFrame.allowTransparency = true ; oIFrame.frameBorder = '0' ; oIFrame.scrolling = 'no' ; ! oIFrame.width = oIFrame.height = 0 ; FCKDomTools.SetElementStyles( oIFrame, { --- 67,76 ---- { var oIFrame = this._IFrame = this._Window.document.createElement('iframe') ; + FCKTools.ResetStyles( oIFrame ); oIFrame.src = 'javascript:void(0)' ; oIFrame.allowTransparency = true ; oIFrame.frameBorder = '0' ; oIFrame.scrolling = 'no' ; ! oIFrame.style.width = oIFrame.style.height = '0px' ; FCKDomTools.SetElementStyles( oIFrame, { *************** *** 278,283 **** var iWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ; var iHeight = eMainNode.offsetHeight ; ! me._IFrame.width = iWidth ; ! me._IFrame.height = iHeight ; }, 0 ) ; --- 279,284 ---- var iWidth = eMainNode.offsetWidth || eMainNode.firstChild.offsetWidth ; var iHeight = eMainNode.offsetHeight ; ! me._IFrame.style.width = iWidth + 'px' ; ! me._IFrame.style.height = iHeight + 'px' ; }, 0 ) ; *************** *** 304,308 **** // It is better to set the sizes to 0, otherwise Firefox would have // rendering problems. ! this._IFrame.width = this._IFrame.height = 0 ; this._IsOpened = false ; --- 305,309 ---- // It is better to set the sizes to 0, otherwise Firefox would have // rendering problems. ! this._IFrame.style.width = this._IFrame.style.height = '0px' ; this._IsOpened = false ; Index: fckdocumentfragment_gecko.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fckdocumentfragment_gecko.js 5 May 2008 00:35:23 -0000 1.2 --- fckdocumentfragment_gecko.js 10 Aug 2008 16:46:25 -0000 1.3 *************** *** 40,43 **** --- 40,50 ---- }, + AppendHtml : function( html ) + { + var eTmpDiv = this.RootNode.ownerDocument.createElement( 'div' ) ; + eTmpDiv.innerHTML = html ; + FCKDomTools.MoveChildren( eTmpDiv, this.RootNode ) ; + }, + InsertAfterNode : function( existingNode ) { Index: fckeditingarea.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/classes/fckeditingarea.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fckeditingarea.js 5 May 2008 00:35:23 -0000 1.5 --- fckeditingarea.js 10 Aug 2008 16:46:25 -0000 1.6 *************** *** 97,105 **** oIFrame.frameBorder = 0 ; ! oIFrame.width = oIFrame.height = '100%' ; if ( FCK_IS_CUSTOM_DOMAIN && FCKBrowserInfo.IsIE ) { ! window._FCKHtmlToLoad = sOverrideError + html ; oIFrame.src = 'javascript:void( (function(){' + 'document.open() ;' + --- 97,105 ---- oIFrame.frameBorder = 0 ; ! oIFrame.style.width = oIFrame.style.height = '100%' ; if ( FCK_IS_CUSTOM_DOMAIN && FCKBrowserInfo.IsIE ) { ! window._FCKHtmlToLoad = html.replace( //i, '' + sOverrideError ) ; oIFrame.src = 'javascript:void( (function(){' + 'document.open() ;' + *************** *** 133,137 **** oDoc.open() ; ! oDoc.write( sOverrideError + html ) ; oDoc.close() ; } --- 133,137 ---- oDoc.open() ; ! oDoc.write( html.replace( //i, '' + sOverrideError ) ) ; oDoc.close() ; } *************** *** 151,166 **** { var editArea = this ; ! ( oIFrame.onreadystatechange = function() ! { ! if ( oIFrame.readyState == 'complete' ) ! { ! oIFrame.onreadystatechange = null ; ! editArea.Window._FCKEditingArea = editArea ; ! FCKEditingArea_CompleteStart.call( editArea.Window ) ; ! } ! // It happened that IE changed the state to "complete" after the ! // "if" and before the "onreadystatechange" assignement, making we ! // lost the event call, so we do a manual call just to be sure. ! } )() ; } else --- 151,171 ---- { var editArea = this ; ! ! // Using a IE alternative for DOMContentLoaded, similar to the ! // solution proposed at http://javascript.nwbox.com/IEContentLoaded/ ! setTimeout( function() ! { ! try ! { ! editArea.Window.document.documentElement.doScroll("left") ; ! } ! catch(e) ! { ! setTimeout( arguments.callee, 0 ) ; ! return ; ! } ! editArea.Window._FCKEditingArea = editArea ; ! FCKEditingArea_CompleteStart.call( editArea.Window ) ; ! }, 0 ) ; } else *************** *** 247,250 **** --- 252,256 ---- { oDoc.body.innerHTML = this._BodyHTML ; + oDoc.body.offsetLeft ; // Don't remove, this is a hack to fix Opera 9.50, see #2264. this._BodyHTML = null ; } Index: fckenterkey.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/classes/fckenterkey.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fckenterkey.js 5 May 2008 00:35:23 -0000 1.2 --- fckenterkey.js 10 Aug 2008 16:46:25 -0000 1.3 *************** *** 44,58 **** [ 13 , 'Enter' ], [ SHIFT + 13, 'ShiftEnter' ], - [ 9 , 'Tab' ], [ 8 , 'Backspace' ], ! [ CTRL + 8 , 'CtrlBackspace' ], [ 46 , 'Delete' ] ] ) ; ! if ( tabSpaces > 0 ) { ! this.TabText = '' ; ! while ( tabSpaces-- > 0 ) this.TabText += '\xa0' ; } --- 44,62 ---- [ 13 , 'Enter' ], [ SHIFT + 13, 'ShiftEnter' ], [ 8 , 'Backspace' ], ! [ CTRL + 8 , 'CtrlBackspace' ], [ 46 , 'Delete' ] ] ) ; ! this.TabText = '' ; ! ! // Safari by default inserts 4 spaces on TAB, while others make the editor ! // loose focus. So, we need to handle it here to not include those spaces. ! if ( tabSpaces > 0 || FCKBrowserInfo.IsSafari ) { ! while ( tabSpaces-- ) this.TabText += '\xa0' ; + + oKeystrokeHandler.SetKeystrokes( [ 9, 'Tab' ] ); } *************** *** 164,167 **** --- 168,193 ---- } + // On IE, it is better for us handle the deletion if the caret is preceeded + // by a
(#1383). + if ( FCKBrowserInfo.IsIE ) + { + var previousElement = FCKDomTools.GetPreviousSourceElement( oRange.StartNode, true ) ; + + if ( previousElement && previousElement.nodeName.toLowerCase() == 'br' ) + { + // Create a range that starts after the
and ends at the + // current range position. + var testRange = oRange.Clone() ; + testRange.SetStart( previousElement, 4 ) ; + + // If that range is empty, we can proceed cleaning that
manually. + if ( testRange.CheckIsEmpty() ) + { + previousElement.parentNode.removeChild( previousElement ) ; + return true ; + } + } + } + var oStartBlock = oRange.StartBlock ; var oEndBlock = oRange.EndBlock ; *************** *** 505,512 **** } ! if ( FCKBrowserInfo.IsSafari ) FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; - else if ( FCKBrowserInfo.IsGeckoLike ) - ( eNextBlock || eNewBlock ).scrollIntoView( false ) ; oRange.Select() ; --- 531,536 ---- } ! if ( FCKBrowserInfo.IsGeckoLike ) FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; oRange.Select() ; *************** *** 591,598 **** eLineBreak.parentNode.insertBefore( dummy, eLineBreak.nextSibling ) ; ! if ( FCKBrowserInfo.IsSafari ) ! FCKDomTools.ScrollIntoView( dummy, false ) ; ! else ! dummy.scrollIntoView( false ) ; dummy.parentNode.removeChild( dummy ) ; --- 615,619 ---- eLineBreak.parentNode.insertBefore( dummy, eLineBreak.nextSibling ) ; ! FCKDomTools.ScrollIntoView( dummy, false ) ; dummy.parentNode.removeChild( dummy ) ; From blaine at qs1489.pair.com Sun Aug 10 12:46:30 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 10 Aug 2008 16:46:30 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/css fck_editorarea.css, 1.7, 1.8 Message-ID: <20080810164705.53323F7415@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/css In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/css Modified Files: fck_editorarea.css Log Message: Upgrade to FCKeditor ver 2.6.3 Index: fck_editorarea.css =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/css/fck_editorarea.css,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fck_editorarea.css 5 May 2008 00:35:24 -0000 1.7 --- fck_editorarea.css 10 Aug 2008 16:46:27 -0000 1.8 *************** *** 27,34 **** */ ! /* ! The "body" styles should match your editor web site, mainly regarding ! background color and font family and size. ! */ body --- 27,34 ---- */ ! /** ! * The "body" styles should match your editor web site, mainly regarding ! * background color and font family and size. ! */ body *************** *** 51,58 **** } ! /* ! Just uncomment the following block if you want to avoid spaces between ! paragraphs. Remember to apply the same style in your output front end page. ! */ /* --- 51,58 ---- } ! /** ! * Just uncomment the following block if you want to avoid spaces between ! * paragraphs. Remember to apply the same style in your output front end page. ! */ /* *************** *** 64,73 **** */ /* ! The following are some sample styles used in the "Styles" toolbar command. ! You should instead remove them, and include the styles used by the site ! you are using the editor in. */ .Bold { --- 64,91 ---- */ + /** + * Uncomment the following block, or only selected lines if appropriate, + * if you have some style items that would break the styles combo box. + * You can also write other CSS overrides inside the style block below + * as needed and they will be applied to inside the style combo only. + */ + /* ! .SC_Item *, .SC_ItemSelected * ! { ! margin: 0px !important; ! padding: 0px !important; ! text-indent: 0px !important; ! clip: auto !important; ! position: static !important; ! } */ + /** + * The following are some sample styles used in the "Styles" toolbar command. + * You should instead remove them, and include the styles used by the site + * you are using the editor in. + */ + .Bold { From blaine at qs1489.pair.com Sun Aug 10 12:46:28 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 10 Aug 2008 16:46:28 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses fck_othercommands.js, 1.7, 1.8 fckfitwindow.js, 1.4, 1.5 fckshowblocks.js, 1.2, 1.3 Message-ID: <20080810164658.F1E48F7410@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/_source/commandclasses Modified Files: fck_othercommands.js fckfitwindow.js fckshowblocks.js Log Message: Upgrade to FCKeditor ver 2.6.3 Index: fckshowblocks.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckshowblocks.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** fckshowblocks.js 5 May 2008 00:35:23 -0000 1.2 --- fckshowblocks.js 10 Aug 2008 16:46:26 -0000 1.3 *************** *** 45,48 **** --- 45,65 ---- body.className += ' FCK__ShowBlocks' ; + if ( FCKBrowserInfo.IsIE ) + { + try + { + FCK.EditorDocument.selection.createRange().select() ; + } + catch ( e ) + {} + } + else + { + var focus = FCK.EditorWindow.getSelection().focusNode ; + if ( focus.nodeType != 1 ) + focus = focus.parentNode ; + FCKDomTools.ScrollIntoView( focus, false ) ; + } + FCK.Events.FireEvent( 'OnSelectionChange' ) ; } Index: fck_othercommands.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fck_othercommands.js,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** fck_othercommands.js 5 May 2008 00:35:23 -0000 1.7 --- fck_othercommands.js 10 Aug 2008 16:46:26 -0000 1.8 *************** *** 312,315 **** --- 312,374 ---- } + FCKVisitLinkCommand = function() + { + this.Name = 'VisitLink'; + } + FCKVisitLinkCommand.prototype = + { + GetState : function() + { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; + var state = FCK.GetNamedCommandState( 'Unlink' ) ; + + if ( state == FCK_TRISTATE_OFF ) + { + var el = FCKSelection.MoveToAncestorNode( 'A' ) ; + if ( !el.href ) + state = FCK_TRISTATE_DISABLED ; + } + + return state ; + }, + + Execute : function() + { + var el = FCKSelection.MoveToAncestorNode( 'A' ) ; + var url = el.getAttribute( '_fcksavedurl' ) || el.getAttribute( 'href', 2 ) ; + + // Check if it's a full URL. + // If not full URL, we'll need to apply the BaseHref setting. + if ( ! /:\/\//.test( url ) ) + { + var baseHref = FCKConfig.BaseHref ; + var parentWindow = FCK.GetInstanceObject( 'parent' ) ; + if ( !baseHref ) + { + baseHref = parentWindow.document.location.href ; + baseHref = baseHref.substring( 0, baseHref.lastIndexOf( '/' ) + 1 ) ; + } + + if ( /^\//.test( url ) ) + { + try + { + baseHref = baseHref.match( /^.*:\/\/+[^\/]+/ )[0] ; + } + catch ( e ) + { + baseHref = parentWindow.document.location.protocol + '://' + parentWindow.parent.document.location.host ; + } + } + + url = baseHref + url ; + } + + if ( !window.open( url, '_blank' ) ) + alert( FCKLang.VisitLinkBlocked ) ; + } + } ; + // FCKSelectAllCommand var FCKSelectAllCommand = function() *************** *** 517,518 **** --- 576,634 ---- } }; + + var FCKDeleteDivCommand = function() + { + } + FCKDeleteDivCommand.prototype = + { + GetState : function() + { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; + + var node = FCKSelection.GetParentElement() ; + var path = new FCKElementPath( node ) ; + return path.BlockLimit && path.BlockLimit.nodeName.IEquals( 'div' ) ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; + }, + + Execute : function() + { + // Create an undo snapshot before doing anything. + FCKUndo.SaveUndoStep() ; + + // Find out the nodes to delete. + var nodes = FCKDomTools.GetSelectedDivContainers() ; + + // Remember the current selection position. + var range = new FCKDomRange( FCK.EditorWindow ) ; + range.MoveToSelection() ; + var bookmark = range.CreateBookmark() ; + + // Delete the container DIV node. + for ( var i = 0 ; i < nodes.length ; i++) + FCKDomTools.RemoveNode( nodes[i], true ) ; + + // Restore selection. + range.MoveToBookmark( bookmark ) ; + range.Select() ; + } + } ; + + // FCKRuleCommand + var FCKNbsp = function() + { + this.Name = 'Non Breaking Space' ; + } + + FCKNbsp.prototype = + { + Execute : function() + { + FCK.InsertHtml( ' ' ) ; + }, + + GetState : function() + { + return ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ? FCK_TRISTATE_DISABLED : FCK_TRISTATE_OFF ) ; + } + } ; Index: fckfitwindow.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckfitwindow.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckfitwindow.js 5 May 2008 00:35:23 -0000 1.4 --- fckfitwindow.js 10 Aug 2008 16:46:26 -0000 1.5 *************** *** 38,41 **** --- 38,46 ---- var eParent ; + // Save the current selection and scroll position. + var oRange = new FCKDomRange( FCK.EditorWindow ) ; + oRange.MoveToSelection() ; + var oEditorScrollPos = FCKTools.GetScrollPosition( FCK.EditorWindow ) ; + // No original style properties known? Go fullscreen. if ( !this.IsMaximized ) *************** *** 84,87 **** --- 89,93 ---- eEditorFrameStyle.position = "absolute"; + eEditorFrame.offsetLeft ; // Kludge for Safari 3.1 browser bug, do not remove. See #2066. eEditorFrameStyle.zIndex = FCKConfig.FloatingPanelsZIndex - 1; eEditorFrameStyle.left = "0px"; *************** *** 160,163 **** --- 166,173 ---- FCK.Focus() ; + + // Restore the selection and scroll position of inside the document. + oRange.Select() ; + FCK.EditorWindow.scrollTo( oEditorScrollPos.X, oEditorScrollPos.Y ) ; } From blaine at qs1489.pair.com Sun Aug 10 12:46:30 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 10 Aug 2008 16:46:30 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/dialog/common fck_dialog_common.js, 1.6, 1.7 Message-ID: <20080810164705.6062AF7416@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/common In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/dialog/common Modified Files: fck_dialog_common.js Log Message: Upgrade to FCKeditor ver 2.6.3 Index: fck_dialog_common.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/common/fck_dialog_common.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fck_dialog_common.js 5 May 2008 00:35:24 -0000 1.6 --- fck_dialog_common.js 10 Aug 2008 16:46:28 -0000 1.7 *************** *** 58,62 **** function GetCommonDialogCss( prefix ) { ! // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ; } --- 58,62 ---- function GetCommonDialogCss( prefix ) { ! // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor (see _dev/css_compression.txt). return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ; } *************** *** 188,219 **** sOptions += ",top=" + iTop ; ! // The "PreserveSessionOnFileBrowser" because the above code could be ! // blocked by popup blockers. ! if ( oEditor.FCKConfig.PreserveSessionOnFileBrowser && oEditor.FCKBrowserInfo.IsIE ) ! { ! // The following change has been made otherwise IE will open the file ! // browser on a different server session (on some cases): ! // http://support.microsoft.com/default.aspx?scid=kb;en-us;831678 ! // by Simone Chiaretta. ! var oWindow = oEditor.window.open( url, 'FCKBrowseWindow', sOptions ) ; ! ! if ( oWindow ) ! { ! // Detect Yahoo popup blocker. ! try ! { ! var sTest = oWindow.name ; // Yahoo returns "something", but we can't access it, so detect that and avoid strange errors for the user. ! oWindow.opener = window ; ! } ! catch(e) ! { ! alert( oEditor.FCKLang.BrowseServerBlocked ) ; ! } ! } ! else ! alert( oEditor.FCKLang.BrowseServerBlocked ) ; ! } ! else ! window.open( url, 'FCKBrowseWindow', sOptions ) ; } --- 188,192 ---- sOptions += ",top=" + iTop ; ! window.open( url, 'FCKBrowseWindow', sOptions ) ; } From blaine at qs1489.pair.com Sun Aug 10 12:46:32 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 10 Aug 2008 16:46:32 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_image fck_image.js, 1.8, 1.9 fck_image_preview.html, 1.5, 1.6 Message-ID: <20080810164705.38F43F741D@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_image In directory qs1489.pair.com:/tmp/cvs-serv4567/editor/dialog/fck_image Modified Files: fck_image.js fck_image_preview.html Log Message: Upgrade to FCKeditor ver 2.6.3 Index: fck_image.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_image/fck_image.js,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** fck_image.js 5 May 2008 00:35:24 -0000 1.8 --- fck_image.js 10 Aug 2008 16:46:29 -0000 1.9 *************** *** 448,451 **** --- 448,455 ---- function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg ) { + // Remove animation + window.parent.Throbber.Hide() ; + GetE( 'divUpload' ).style.display = '' ; + switch ( errorNumber ) { *************** *** 501,504 **** --- 505,512 ---- } + // Show animation + window.parent.Throbber.Show( 100 ) ; + GetE( 'divUpload' ).style.display = 'none' ; + return true ; } Index: fck_image_preview.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_image/fck_image_preview.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fck_image_preview.html 5 May 2008 00:35:24 -0000 1.5 --- fck_image_preview.html 10 Aug 2008 16:46:29 -0000 1.6 *************** *** 35,41 **** var FCKConfig = window.parent.FCKConfig ; ! // Sets the Skin CSS ! document.write( FCKTools.GetStyleHtml( FCKConfig.SkinDialogCSS ) ) ; ! document.write( FCKTools.GetStyleHtml( GetCommonDialogCss( '../' ) ) ) ; if ( window.parent.FCKConfig.BaseHref.length > 0 ) --- 35,41 ---- var FCKConfig = window.parent.FCKConfig ; ! // Set the preview CSS ! document.write( FCKTools.GetStyleHtml( FCKConfig.EditorAreaCSS ) ) ; ! document.write( FCKTools.GetStyleHtml( FCKConfig.EditorAreaStyles ) ) ; if ( window.parent.FCKConfig.BaseHref.length > 0 ) *************** *** 51,55 **** !