Changeset 1179

Show
Ignore:
Timestamp:
2007-12-05 10:28:42 (10 months ago)
Author:
martinkou
Message:

Merged the changesets from trunk since the creation of the floating dialog branch.

Location:
FCKeditor/branches/features/floating_dialog
Files:
54 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/floating_dialog/editor/css/fck_editorarea.css

    r961 r1179  
    4747a[href] 
    4848{ 
    49         color: -moz-hyperlinktext !important;   /* For Firefox... mark as important, otherwise it becomes black */ 
     49        color: -moz-hyperlinktext !important;           /* For Firefox... mark as important, otherwise it becomes black */ 
     50        text-decoration: -moz-anchor-decoration;        /* For Firefox 3, otherwise no underline will be used */ 
    5051} 
    5152 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_anchor.html

    r669 r1179  
    6969 
    7070        window.parent.SetOkButton( true ) ; 
     71        window.parent.SetAutoSize( true ) ; 
    7172} 
    7273 
     
    189190                </script> 
    190191        </head> 
    191         <body style="OVERFLOW: hidden" scroll="no"> 
     192        <body style="overflow: hidden"> 
    192193                <table height="100%" width="100%"> 
    193194                        <tr> 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_button.html

    r1054 r1179  
    5656 
    5757        window.parent.SetOkButton( true ) ; 
     58        window.parent.SetAutoSize( true ) ; 
    5859} 
    5960 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_checkbox.html

    r1054 r1179  
    5454 
    5555        window.parent.SetOkButton( true ) ; 
     56        window.parent.SetAutoSize( true ) ; 
    5657} 
    5758 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_form.html

    r1054 r1179  
    5454 
    5555        window.parent.SetOkButton( true ) ; 
     56        window.parent.SetAutoSize( true ) ; 
    5657} 
    5758 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_hiddenfield.html

    r778 r1179  
    6060 
    6161        window.parent.SetOkButton( true ) ; 
     62        window.parent.SetAutoSize( true ) ; 
    6263} 
    6364 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_listprop.html

    r1054 r1179  
    6767 
    6868        window.parent.SetOkButton( true ) ; 
     69        window.parent.SetAutoSize( true ) ; 
    6970} 
    7071 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_radiobutton.html

    r1054 r1179  
    5454 
    5555        window.parent.SetOkButton( true ) ; 
     56        window.parent.SetAutoSize( true ) ; 
    5657} 
    5758 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_replace.html

    r1054 r1179  
    4545        idMap['CheckCase'] = 'chkCase' + tabCode ; 
    4646        idMap['CheckWord'] = 'chkWord' + tabCode ; 
     47 
     48        if ( tabCode == 'Replace' ) 
     49                window.parent.SetAutoSize( true ) ; 
    4750} 
    4851 
     
    6164 
    6265        // Show the appropriate tab at startup. 
    63         if ( dialogArguments.CustomValue == 'Find' ) 
     66        if ( window.parent.name.search( 'Replace' ) == -1 ) 
     67        { 
    6468                window.parent.SetSelectedTab( 'Find' ) ; 
     69                window.parent.SetAutoSize( true ) ; 
     70        } 
    6571        else 
    6672                window.parent.SetSelectedTab( 'Replace' ) ; 
     
    108114function GetData( bookmark ) 
    109115{ 
    110         var currentNode = oEditor.FCK.EditorDocument.documentElement; 
    111         for( var i = 0 ; i < bookmark.length ; i++ ) 
    112         { 
    113                 if ( currentNode.childNodes.length > bookmark[i] ) 
    114                         currentNode = currentNode.childNodes.item( bookmark[i] ) ; 
    115                 else if ( currentNode.nodeType == 3 )   // text node 
     116        var cursor = oEditor.FCK.EditorDocument.documentElement ; 
     117        for ( var i = 0 ; i < bookmark.length ; i++ ) 
     118        { 
     119                var target = bookmark[i] ; 
     120                var currentIndex = -1 ; 
     121                if ( cursor.nodeType != 3 ) 
    116122                { 
    117                         var c = currentNode.nodeValue.charAt( bookmark[i] ) ; 
    118                         if ( i == bookmark.length - 1 ) 
    119                                 return c != "" ? c : null ; 
    120                         else 
     123                        for (var j = 0 ; j < cursor.childNodes.length ; j++ ) 
     124                        { 
     125                                var candidate = cursor.childNodes[j] ; 
     126                                if ( candidate.nodeType == 3 && 
     127                                                candidate.previousSibling && 
     128                                                candidate.previousSibling.nodeType == 3 ) 
     129                                        continue ; 
     130                                currentIndex++ ; 
     131                                if ( currentIndex == target ) 
     132                                { 
     133                                        cursor = candidate ; 
     134                                        break ; 
     135                                } 
     136                        } 
     137                        if ( currentIndex < target ) 
    121138                                return null ; 
    122139                } 
    123140                else 
    124                         return null; 
    125         } 
    126         return currentNode ; 
     141                { 
     142                        if ( i != bookmark.length - 1 ) 
     143                                return null ; 
     144                        while ( target >= cursor.length && cursor.nextSibling && cursor.nextSibling.nodeType == 3 ) 
     145                        { 
     146                                target -= cursor.length ; 
     147                                cursor = cursor.nextSibling ; 
     148                        } 
     149                        cursor = cursor.nodeValue.charAt( target ) ; 
     150                        if ( cursor == "" ) 
     151                                cursor = null ; 
     152                } 
     153        } 
     154        return cursor ; 
    127155} 
    128156 
     
    132160        // See if there's anything further down the tree. 
    133161        var next = bookmark.concat( [0] ) ; 
    134  
    135162        if ( GetData( next ) != null ) 
    136163                return next ; 
     
    253280                        { 
    254281                                if ( oEditor.FCKListsLib.BlockElements[ data.tagName.toLowerCase() ] ) 
     282                                { 
    255283                                        matcher.Reset(); 
     284                                        matchBookmark = null ; 
     285                                } 
    256286                        } 
    257287                        else if ( data.charAt != undefined ) 
     
    324354                while ( focus && focus.nodeType != 1 ) 
    325355                        focus = focus.parentNode ; 
     356 
    326357                if ( focus ) 
    327                 focus.scrollIntoView( false ) ; 
     358                { 
     359                        if ( oEditor.FCKBrowserInfo.IsSafari ) 
     360                                oEditor.FCKDomTools.ScrollIntoView( focus, false ) ; 
     361                        else 
     362                                focus.scrollIntoView( false ) ; 
     363                } 
     364 
    328365                return true; 
    329366        } 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_select.html

    r1054 r1179  
    7272 
    7373        window.parent.SetOkButton( true ) ; 
     74        window.parent.SetAutoSize( true ) ; 
    7475} 
    7576 
     
    116117                </script> 
    117118        </head> 
    118         <body style='OVERFLOW: hidden' scroll='no'> 
     119        <body style="overflow: hidden"> 
    119120                <table width="100%" height="100%"> 
    120121                        <tr> 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_smiley.html

    r1071 r1179  
    4242        // First of all, translate the dialog box texts 
    4343        oEditor.FCKLanguageManager.TranslatePage(document) ; 
     44 
     45        window.parent.SetAutoSize( true ) ; 
    4446} 
    4547 
     
    7375        </script> 
    7476</head> 
    75 <body scroll="no"> 
     77<body style="overflow: hidden"> 
    7678        <table cellpadding="2" cellspacing="2" align="center" border="0" width="100%" height="100%"> 
    7779                <script type="text/javascript"> 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_specialchar.html

    r715 r1179  
    7070        // First of all, translates the dialog box texts. 
    7171        oEditor.FCKLanguageManager.TranslatePage(document) ; 
     72 
     73        window.parent.SetAutoSize( true ) ; 
    7274} 
    7375 
    7476                </script> 
    75         </HEAD> 
    76         <BODY onload="setDefaults()" scroll="no"> 
     77        </head> 
     78        <body onload="setDefaults()" style="overflow: hidden"> 
    7779                <table cellpadding="0" cellspacing="0" width="100%" height="100%"> 
    7880                        <tr> 
     
    115117                        </tr> 
    116118                </table> 
    117         </BODY> 
    118 </HTML> 
     119        </body> 
     120</html> 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_textarea.html

    r1054 r1179  
    5454 
    5555        window.parent.SetOkButton( true ) ; 
     56        window.parent.SetAutoSize( true ) ; 
    5657} 
    5758 
     
    7475                </script> 
    7576        </head> 
    76         <body style='OVERFLOW: hidden' scroll='no'> 
     77        <body style="overflow: hidden"> 
    7778                <table height="100%" width="100%"> 
    7879                        <tr> 
  • FCKeditor/branches/features/floating_dialog/editor/dialog/fck_textfield.html

    r1054 r1179  
    5858 
    5959        window.parent.SetOkButton( true ) ; 
     60        window.parent.SetAutoSize( true ) ; 
    6061} 
    6162 
  • FCKeditor/branches/features/floating_dialog/editor/fckdialog.html

    r1177 r1179  
    4040// Sets the language direction. 
    4141window.document.dir = oEditor.FCKLang.Dir ; 
     42 
     43// IE does not set the window name in showModalDialog(), let's set it here. 
     44if ( window.dialogArguments.Editor.FCKBrowserInfo.IsIE ) 
     45        window.name = window.dialogArguments.DialogName ; 
    4246 
    4347var sTitle = window.dialogArguments.Title ; 
  • FCKeditor/branches/features/floating_dialog/editor/filemanager/connectors/php/config.php

    r1041 r1179  
    2626 
    2727// SECURITY: You must explicitly enable this "connector". (Set it to "true"). 
    28 // WARNING: don't just set "ConfigIsEnabled = true", you must be sure that only  
     28// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only  
    2929//              authenticated users can access this file or use some kind of session checking. 
    3030$Config['Enabled'] = false ; 
  • FCKeditor/branches/features/floating_dialog/editor/lang/ar.js

    r992 r1179  
    4646RemoveLink                      : "إزالة رابط", 
    4747Anchor                          : "إدراج/تحرير إشارة مرجعية", 
    48 AnchorDelete            : "Remove Anchor",      //MISSING 
     48AnchorDelete            : "إزالة إشارة مرجعية", 
    4949InsertImageLbl          : "صورة", 
    5050InsertImage                     : "إدراج/تحرير صورة", 
     
    7272DecreaseIndent          : "إنقاص المسافة البادئة", 
    7373IncreaseIndent          : "زيادة المسافة البادئة", 
    74 Blockquote                      : "Blockquote", //MISSING 
     74Blockquote                      : "اقتباس", 
    7575Undo                            : "تراجع", 
    7676Redo                            : "إعادة", 
     
    106106 
    107107FitWindow               : "تكبير حجم المحرر", 
    108 ShowBlocks              : "Show Blocks",        //MISSING 
     108ShowBlocks              : "مخطط تفصيلي", 
    109109 
    110110// Context Menu 
     
    113113RowCM                           : "صف", 
    114114ColumnCM                        : "عمود", 
    115 InsertRowAfter          : "Insert Row After",   //MISSING 
    116 InsertRowBefore         : "Insert Row Before",  //MISSING 
     115InsertRowAfter          : "إدراج صف بعد", 
     116InsertRowBefore         : "إدراج صف قبل", 
    117117DeleteRows                      : "حذف صفوف", 
    118 InsertColumnAfter       : "Insert Column After",        //MISSING 
    119 InsertColumnBefore      : "Insert Column Before",       //MISSING 
     118InsertColumnAfter       : "إدراج عمود بعد", 
     119InsertColumnBefore      : "إدراج عمود قبل", 
    120120DeleteColumns           : "حذف أعمدة", 
    121 InsertCellAfter         : "Insert Cell After",  //MISSING 
    122 InsertCellBefore        : "Insert Cell Before", //MISSING 
     121InsertCellAfter         : "إدراج خلية بعد", 
     122InsertCellBefore        : "إدراج خلية قبل", 
    123123DeleteCells                     : "حذف خلايا", 
    124124MergeCells                      : "دمج خلايا", 
    125 MergeRight                      : "Merge Right",        //MISSING 
    126 MergeDown                       : "Merge Down", //MISSING 
    127 HorizontalSplitCell     : "Split Cell Horizontally",    //MISSING 
    128 VerticalSplitCell       : "Split Cell Vertically",      //MISSING 
     125MergeRight                      : "دمج لليمين", 
     126MergeDown                       : "دمج للأسفل", 
     127HorizontalSplitCell     : "تقسيم الخلية أفقياً", 
     128VerticalSplitCell       : "تقسيم الخلية عمودياً", 
    129129TableDelete                     : "حذف الجدول", 
    130130CellProperties          : "خصائص الخلية", 
     
    333333 
    334334// Find and Replace Dialog 
    335 DlgFindAndReplaceTitle  : "Find and Replace",   //MISSING 
     335DlgFindAndReplaceTitle  : "بحث واستبدال", 
    336336 
    337337// Find Dialog 
     
    357357 
    358358DlgPasteMsg2    : "الصق داخل الصندوق بإستخدام زرّي (<STRONG>Ctrl+V</STRONG>) في لوحة المفاتيح، ثم اضغط زر  <STRONG>موافق</STRONG>.", 
    359 DlgPasteSec             : "Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window.",       //MISSING 
     359DlgPasteSec             : "نظراً لإعدادات الأمان الخاصة بمتصفحك، لن يتمكن هذا المحرر من الوصول لمحتوى حافظتك، لذا وجب عليك لصق المحتوى مرة أخرى في هذه النافذة.", 
    360360DlgPasteIgnoreFont              : "تجاهل تعريفات أسماء الخطوط", 
    361361DlgPasteRemoveStyles    : "إزالة تعريفات الأنماط", 
  • FCKeditor/branches/features/floating_dialog/editor/lang/es.js

    r992 r1179  
    4646RemoveLink                      : "Eliminar Vínculo", 
    4747Anchor                          : "Referencia", 
    48 AnchorDelete            : "Remove Anchor",      //MISSING 
     48AnchorDelete            : "Eliminar Referencia", 
    4949InsertImageLbl          : "Imagen", 
    5050InsertImage                     : "Insertar/Editar Imagen", 
     
    7272DecreaseIndent          : "Disminuir Sangría", 
    7373IncreaseIndent          : "Aumentar Sangría", 
    74 Blockquote                      : "Blockquote", //MISSING 
     74Blockquote                      : "Cita", 
    7575Undo                            : "Deshacer", 
    7676Redo                            : "Rehacer", 
     
    106106 
    107107FitWindow               : "Maximizar el tamaño del editor", 
    108 ShowBlocks              : "Show Blocks",        //MISSING 
     108ShowBlocks              : "Mostrar bloques", 
    109109 
    110110// Context Menu 
     
    113113RowCM                           : "Fila", 
    114114ColumnCM                        : "Columna", 
    115 InsertRowAfter          : "Insert Row After",   //MISSING 
    116 InsertRowBefore         : "Insert Row Before",  //MISSING 
     115InsertRowAfter          : "Insertar fila en la parte inferior", 
     116InsertRowBefore         : "Insertar fila en la parte superior", 
    117117DeleteRows                      : "Eliminar Filas", 
    118 InsertColumnAfter       : "Insert Column After",        //MISSING 
    119 InsertColumnBefore      : "Insert Column Before",       //MISSING 
     118InsertColumnAfter       : "Insertar columna a la derecha", 
     119InsertColumnBefore      : "Insertar columna a la izquierda", 
    120120DeleteColumns           : "Eliminar Columnas", 
    121 InsertCellAfter         : "Insert Cell After",  //MISSING 
    122 InsertCellBefore        : "Insert Cell Before", //MISSING 
     121InsertCellAfter         : "Insertar celda a la derecha", 
     122InsertCellBefore        : "Insertar celda a la izquierda", 
    123123DeleteCells                     : "Eliminar Celdas", 
    124124MergeCells                      : "Combinar Celdas", 
    125 MergeRight                      : "Merge Right",        //MISSING 
    126 MergeDown                       : "Merge Down", //MISSING 
    127 HorizontalSplitCell     : "Split Cell Horizontally",    //MISSING 
    128 VerticalSplitCell       : "Split Cell Vertically",      //MISSING 
     125MergeRight                      : "Combinar a la derecha", 
     126MergeDown                       : "Combinar hacia abajo", 
     127HorizontalSplitCell     : "Dividir la celda horizontalmente", 
     128VerticalSplitCell       : "Dividir la celda verticalmente", 
    129129TableDelete                     : "Eliminar Tabla", 
    130130CellProperties          : "Propiedades de Celda", 
     
    172172DlgGenNotSet            : "<No definido>", 
    173173DlgGenId                        : "Id", 
    174 DlgGenLangDir           : "Orientación de idioma", 
     174DlgGenLangDir           : "Orientación", 
    175175DlgGenLangDirLtr        : "Izquierda a Derecha (LTR)", 
    176176DlgGenLangDirRtl        : "Derecha a Izquierda (RTL)", 
    177