Changeset 225

Show
Ignore:
Timestamp:
2007-03-27 11:04:26 (17 months ago)
Author:
fredck
Message:

Updated the branch with trunk r224.
Added the BBCode plugin sample.

Location:
FCKeditor/branches/features/dataprocessor
Files:
9 added
2 removed
30 modified
5 copied

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/dataprocessor/editor/css/fck_internal.css

    r132 r225  
    2626html 
    2727{ 
    28         min-height:100%; 
     28        min-height: 100%; 
    2929} 
    3030 
     
    7070        background-image: url(images/fck_anchor.gif); 
    7171        background-repeat: no-repeat; 
    72         padding-left:18px; 
     72        padding-left: 18px; 
    7373} 
    7474 
     
    8181        background-image: url(images/fck_anchor.gif); 
    8282        background-repeat: no-repeat; 
    83         padding-left:18px; 
     83        padding-left: 18px; 
    8484} 
    8585 
     
    100100} 
    101101 
    102 input[type="hidden"] 
     102/* Hidden fields */ 
     103.FCK__InputHidden 
    103104{ 
    104         display: inline; 
    105         width:20px; 
    106         height:20px; 
    107         border:1px dotted #FF0000 ; 
    108         background-image: url(behaviors/hiddenfield.gif); 
     105        width: 19px; 
     106        height: 18px; 
     107        background-image: url(images/fck_hiddenfield.gif); 
    109108        background-repeat: no-repeat; 
     109        vertical-align: text-bottom; 
     110        background-position: center center; 
    110111} 
    111  
    112 input[type="hidden"]:after 
    113 { 
    114         padding-left: 20px; 
    115         content: "" ; 
    116 } 
  • FCKeditor/branches/features/dataprocessor/editor/dialog/fck_hiddenfield.html

    r132 r225  
    2222 * Hidden Field dialog window. 
    2323--> 
    24 <html> 
    25         <head> 
    26                 <title>Hidden Field Properties</title> 
    27                 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
    28                 <meta content="noindex, nofollow" name="robots"> 
    29                 <script src="common/fck_dialog_common.js" type="text/javascript"></script> 
    30                 <script type="text/javascript"> 
     24<html xmlns="http://www.w3.org/1999/xhtml"> 
     25<head> 
     26        <title>Hidden Field Properties</title> 
     27        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
     28        <meta content="noindex, nofollow" name="robots" /> 
     29        <script src="common/fck_dialog_common.js" type="text/javascript"></script> 
     30        <script type="text/javascript"> 
    3131 
    3232var oEditor = window.parent.InnerDialogLoaded() ; 
     33var FCK = oEditor.FCK ; 
    3334 
    3435// Gets the document DOM 
    35 var oDOM = oEditor.FCK.EditorDocument ; 
     36var oDOM = FCK.EditorDocument ; 
    3637 
    37 var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ; 
     38// Get the selected flash embed (if available). 
     39var oFakeImage = FCK.Selection.GetSelectedElement() ; 
     40var oActiveEl ; 
     41 
     42if ( oFakeImage ) 
     43{ 
     44        if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckinputhidden') ) 
     45                oActiveEl = FCK.GetRealElement( oFakeImage ) ; 
     46        else 
     47                oFakeImage = null ; 
     48} 
    3849 
    3950window.onload = function() 
     
    4253        oEditor.FCKLanguageManager.TranslatePage(document) ; 
    4354 
    44         if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'hidden' ) 
     55        if ( oActiveEl ) 
    4556        { 
    4657                GetE('txtName').value           = oActiveEl.name ; 
    4758                GetE('txtValue').value          = oActiveEl.value ; 
    4859        } 
    49         else 
    50                 oActiveEl = null ; 
    5160 
    5261        window.parent.SetOkButton( true ) ; 
     
    5867        if ( !oActiveEl ) 
    5968        { 
    60                 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 
     69                oActiveEl = FCK.EditorDocument.createElement( 'INPUT' ) ; 
    6170                oActiveEl.type = 'hidden' ; 
    62                 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; 
     71 
     72                oFakeImage = null ; 
    6373        } 
    6474 
     
    6676        SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 
    6777 
     78        if ( !oFakeImage ) 
     79        { 
     80                oFakeImage      = oEditor.FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oActiveEl ) ; 
     81                oFakeImage.setAttribute( '_fckinputhidden', 'true', 0 ) ; 
     82                oFakeImage      = FCK.InsertElementAndGetIt( oFakeImage ) ; 
     83        } 
     84        else 
     85                oEditor.FCKUndo.SaveUndoStep() ; 
     86 
     87        oEditor.FCKFlashProcessor.RefreshView( oFakeImage, oActiveEl ) ; 
     88 
    6889        return true ; 
    6990} 
    7091 
    71                 </script> 
    72         </head> 
    73         <body style="OVERFLOW: hidden" scroll="no"> 
    74                 <table height="100%" width="100%"> 
    75                         <tr> 
    76                                 <td align="center"> 
    77                                         <table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%"> 
    78                                                 <tr> 
    79                                                         <td> 
    80                                                                 <span fckLang="DlgHiddenName">Name</span><br> 
    81                                                                 <input type="text" size="20" id="txtName" style="WIDTH: 100%"> 
    82                                                         </td> 
    83                                                 </tr> 
    84                                                 <tr> 
    85                                                         <td> 
    86                                                                 <span fckLang="DlgHiddenValue">Value</span><br> 
    87                                                                 <input type="text" size="30" id="txtValue" style="WIDTH: 100%"> 
    88                                                         </td> 
    89                                                 </tr> 
    90                                         </table> 
    91                                 </td> 
    92                         </tr> 
    93                 </table> 
    94         </body> 
     92        </script> 
     93</head> 
     94<body style="overflow: hidden" scroll="no"> 
     95        <table height="100%" width="100%"> 
     96                <tr> 
     97                        <td align="center"> 
     98                                <table border="0" class="inhoud" cellpadding="0" cellspacing="0" width="80%"> 
     99                                        <tr> 
     100                                                <td> 
     101                                                        <span fcklang="DlgHiddenName">Name</span><br /> 
     102                                                        <input type="text" size="20" id="txtName" style="width: 100%" /> 
     103                                                </td> 
     104                                        </tr> 
     105                                        <tr> 
     106                                                <td> 
     107                                                        <span fcklang="DlgHiddenValue">Value</span><br /> 
     108                                                        <input type="text" size="30" id="txtValue" style="width: 100%" /> 
     109                                                </td> 
     110                                        </tr> 
     111                                </table> 
     112                        </td> 
     113                </tr> 
     114        </table> 
     115</body> 
    95116</html> 
  • FCKeditor/branches/features/dataprocessor/editor/dialog/fck_link/fck_link.js

    r132 r225  
    2626var FCKLang             = oEditor.FCKLang ; 
    2727var FCKConfig   = oEditor.FCKConfig ; 
    28 var FCKRegexLib                 = oEditor.FCKRegexLib ; 
     28var FCKRegexLib = oEditor.FCKRegexLib ; 
    2929 
    3030//#### Dialog Tabs 
     
    5656var oRegex = new Object() ; 
    5757 
    58 oRegex.UriProtocol = new RegExp('') ; 
    59 oRegex.UriProtocol.compile( '^(((http|https|ftp|news):\/\/)|mailto:)', 'gi' ) ; 
    60  
    61 oRegex.UrlOnChangeProtocol = new RegExp('') ; 
    62 oRegex.UrlOnChangeProtocol.compile( '^(http|https|ftp|news)://(?=.)', 'gi' ) ; 
    63  
    64 oRegex.UrlOnChangeTestOther = new RegExp('') ; 
    65 //oRegex.UrlOnChangeTestOther.compile( '^(javascript:|#|/)', 'gi' ) ; 
    66 oRegex.UrlOnChangeTestOther.compile( '^((javascript:)|[#/\.])', 'gi' ) ; 
    67  
    68 oRegex.ReserveTarget = new RegExp('') ; 
    69 oRegex.ReserveTarget.compile( '^_(blank|self|top|parent)$', 'i' ) ; 
    70  
    71 oRegex.PopupUri = new RegExp('') ; 
    72 oRegex.PopupUri.compile( "^javascript:void\\(\\s*window.open\\(\\s*'([^']+)'\\s*,\\s*(?:'([^']*)'|null)\\s*,\\s*'([^']*)'\\s*\\)\\s*\\)\\s*$" ) ; 
    73  
    74 // Accesible popups 
    75 oRegex.OnClickPopup = new RegExp('') ; 
    76 oRegex.OnClickPopup.compile( "^\\s*onClick=\"\\s*window.open\\(\\s*this\\.href\\s*,\\s*(?:'([^']*)'|null)\\s*,\\s*'([^']*)'\\s*\\)\\s*;\\s*return\\s*false;*\\s*\"$" ) ; 
    77  
    78 oRegex.PopupFeatures = new RegExp('') ; 
    79 oRegex.PopupFeatures.compile( '(?:^|,)([^=]+)=(\\d+|yes|no)', 'gi' ) ; 
     58oRegex.UriProtocol = /^(((http|https|ftp|news):\/\/)|mailto:)/gi ; 
     59 
     60oRegex.UrlOnChangeProtocol = /^(http|https|ftp|news):\/\/(?=.)/gi ; 
     61 
     62oRegex.UrlOnChangeTestOther = /^((javascript:)|[#\/\.])/gi ; 
     63 
     64oRegex.ReserveTarget = /^_(blank|self|top|parent)$/i ; 
     65 
     66oRegex.PopupUri = /^javascript:void\(\s*window.open\(\s*'([^']+)'\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*\)\s*$/ ; 
     67 
     68// Accessible popups 
     69oRegex.OnClickPopup = /^\s*on[cC]lick="\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*"$/ ; 
     70 
     71oRegex.PopupFeatures = /(?:^|,)([^=]+)=(\d+|yes|no)/gi ; 
    8072 
    8173//#### Parser Functions 
     
    230222        // Accesible popups, the popup data is in the onclick attribute 
    231223        if ( !oPopupMatch ) { 
    232                 var onclick = oLink.getAttribute( 'onClick_fckprotectedatt' ) ; 
     224                var onclick = oLink.getAttribute( 'onclick_fckprotectedatt' ) ; 
    233225                oPopupMatch = oRegex.OnClickPopup.exec( onclick ) ; 
    234226                if( oPopupMatch ) 
     
    554546        if( GetE('cmbTarget').value == 'popup' ) 
    555547        { 
    556                 SetAttribute( oLink, 'onClick_fckprotectedatt', " onClick=\"" + BuildOnClickPopup() + "\"") ; 
     548                SetAttribute( oLink, 'onclick_fckprotectedatt', " onclick=\"" + BuildOnClickPopup() + "\"") ; 
    557549        } 
    558550        else 
     
    560552                // Check if the previous onclick was for a popup: 
    561553                // In that case remove the onclick handler. 
    562                 var onclick = oLink.getAttribute( 'onClick_fckprotectedatt' ) ; 
     554                var onclick = oLink.getAttribute( 'onclick_fckprotectedatt' ) ; 
    563555                if( oRegex.OnClickPopup.test( onclick ) ) 
    564                         SetAttribute( oLink, 'onClick_fckprotectedatt', '' ) ; 
     556                        SetAttribute( oLink, 'onclick_fckprotectedatt', '' ) ; 
    565557        } 
    566558 
  • FCKeditor/branches/features/dataprocessor/editor/dialog/fck_paste.html

    r177 r225  
    203203 
    204204                // Word likes to insert extra <font> tags, when using MSIE. (Wierd). 
    205                 html = html.replace( /<(H\d)><FONT[^>]*>(.*?)<\/FONT><\/\1>/gi, '<$1>$2</$1>' ); 
    206                 html = html.replace( /<(H\d)><EM>(.*?)<\/EM><\/\1>/gi, '<$1>$2</$1>' ); 
     205                html = html.replace( /<(H\d)><FONT[^>]*>(.*?)<\/FONT><\/\1>/gi, '<$1>$2<\/$1>' ); 
     206                html = html.replace( /<(H\d)><EM>(.*?)<\/EM><\/\1>/gi, '<$1>$2<\/$1>' ); 
    207207        } 
    208208        else 
  • FCKeditor/branches/features/dataprocessor/editor/filemanager/browser/default/browser.html

    r132 r225  
    119119oIcons.AvailableIconsArray = [ 
    120120        'ai','avi','bmp','cs','dll','doc','exe','fla','gif','htm','html','jpg','js', 
    121         'mdb','mp3','pdf','ppt','rdp','swf','swt','txt','vsd','xls','xml','zip' ] ; 
     121        'mdb','mp3','pdf','png','ppt','rdp','swf','swt','txt','vsd','xls','xml','zip' ] ; 
    122122 
    123123oIcons.AvailableIcons = new Object() ; 
  • FCKeditor/branches/features/dataprocessor/editor/lang/en-au.js

    r174 r225  
    345345 
    346346DlgPasteMsg2    : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", 
    347 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 
     347DlgPasteSec             : "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.", 
    348348DlgPasteIgnoreFont              : "Ignore Font Face definitions", 
    349349DlgPasteRemoveStyles    : "Remove Styles definitions", 
  • FCKeditor/branches/features/dataprocessor/editor/lang/en-ca.js

    r174 r225  
    345345 
    346346DlgPasteMsg2    : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", 
    347 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 
     347DlgPasteSec             : "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.", 
    348348DlgPasteIgnoreFont              : "Ignore Font Face definitions", 
    349349DlgPasteRemoveStyles    : "Remove Styles definitions", 
  • FCKeditor/branches/features/dataprocessor/editor/lang/en-uk.js

    r174 r225  
    345345 
    346346DlgPasteMsg2    : "Please paste inside the following box using the keyboard (<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.", 
    347 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 
     347DlgPasteSec             : "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.", 
    348348DlgPasteIgnoreFont              : "Ignore Font Face definitions", 
    349349DlgPasteRemoveStyles    : "Remove Styles definitions", 
  • FCKeditor/branches/features/dataprocessor/editor/lang/nb.js

    r174 r225  
    501501DlgAboutLicenseTab      : "Lisens", 
    502502DlgAboutVersion         : "versjon", 
    503 DlgAboutInfo            : "Oversatt av Siteman AS<br /><a target=\"_blank\" href=\"http://www.siteman.no\">www.siteman.no</a><br /><br />For mer informasjon gå til" 
     503DlgAboutInfo            : "For further information go to"       //MISSING 
    504504}; 
  • FCKeditor/branches/features/dataprocessor/editor/lang/no.js

    r174 r225  
    501501DlgAboutLicenseTab      : "Lisens", 
    502502DlgAboutVersion         : "versjon", 
    503 DlgAboutInfo            : "Oversatt av Siteman AS<br /><a target=\"_blank\" href=\"http://www.siteman.no\">www.siteman.no</a><br /><br />For mer informasjon gå til" 
     503DlgAboutInfo            : "For further information go to"       //MISSING 
    504504}; 
  • FCKeditor/branches/features/dataprocessor/editor/lang/th.js

    r174 r225  
    4848InsertImageLbl          : "รูปภาพ", 
    4949InsertImage                     : "แทรก/แก้ไข รูปภาพ", 
    50 InsertFlashLbl          : "Flash",      //MISSING 
    51 InsertFlash                     : "Insert/Edit Flash",  //MISSING 
     50InsertFlashLbl          : "ไฟล์ Flash", 
     51InsertFlash                     : "แทรก/แก้ไข ไฟล์ Flash", 
    5252InsertTableLbl          : "ตาราง", 
    5353InsertTable                     : "แทรก/แก้ไข ตาราง", 
     
    9090SpellCheck                      : "ตรวจการสะกดคำ", 
    9191UniversalKeyboard       : "คีย์บอร์ดหลากภาษา", 
    92 PageBreakLbl            : "Page Break", //MISSING 
    93 PageBreak                       : "Insert Page Break",  //MISSING 
     92PageBreakLbl            : "ใส่ตัวแบ่งหน้า Page Break", 
     93PageBreak                       : "แทรกตัวแบ่งหน้า Page Break", 
    9494 
    9595Form                    : "แบบฟอร์ม", 
     
    103103ImageButton             : "ปุ่มแบบรูปภาพ", 
    104104 
    105 FitWindow               : "Maximize the editor size",   //MISSING 
     105FitWindow               : "ขยายขนาดตัวอีดิตเตอร์", 
    106106 
    107107// Context Menu 
    108108EditLink                        : "แก้ไข ลิงค์", 
    109 CellCM                          : "Cell",       //MISSING 
    110 RowCM                           : "Row",        //MISSING 
    111 ColumnCM                        : "Column",     //MISSING 
     109CellCM                          : "ช่องตาราง", 
     110RowCM                           : "แถว", 
     111ColumnCM                        : "คอลัมน์", 
    112112InsertRow                       : "แทรกแถว", 
    113113DeleteRows                      : "ลบแถว", 
     
    118118MergeCells                      : "ผสานช่อง", 
    119119SplitCell                       : "แยกช่อง", 
    120 TableDelete                     : "Delete Table",       //MISSING 
     120TableDelete                     : "ลบตาราง", 
    121121CellProperties          : "คุณสมบัติของช่อง", 
    122122TableProperties         : "คุณสมบัติของตาราง", 
    123123ImageProperties         : "คุณสมบัติของรูปภาพ", 
    124 FlashProperties         : "Flash Properties",   //MISSING 
     124FlashProperties         : "คุณสมบัติของไฟล์ Flash", 
    125125 
    126126AnchorProp                      : "รายละเอียด Anchor", 
     
    146146NotImplemented          : "ไม่สามารถใช้งานคำสั่งได้", 
    147147UnknownToolbarSet       : "ไม่มีการติดตั้งชุดคำสั่งในแถบเครื่องมือ \"%1\" กรุณาติดต่อผู้ดูแลระบบ", 
    148 NoActiveX                       : "Your browser's security settings could limit some features of the editor. You must enable the option \"Run ActiveX controls and plug-ins\". You may experience errors and notice missing features.", //MISSING 
    149 BrowseServerBlocked : "The resources browser could not be opened. Make sure that all popup blockers are disabled.",     //MISSING 
    150 DialogBlocked           : "It was not possible to open the dialog window. Make sure all popup blockers are disabled.",  //MISSING 
     148NoActiveX                       : "โปรแกรมท่องอินเตอร์เน็ตของท่านไม่อนุญาติให้อีดิตเตอร์ทำงาน \"Run ActiveX controls and plug-ins\". หากไม่อนุญาติให้ใช้งาน ActiveX controls ท่านจะไม่สามารถใช้งานได้อย่างเต็มประสิทธิภาพ.", 
     149BrowseServerBlocked : "เปิดหน้าต่างป๊อบอัพเพื่อทำงานต่อไม่ได้ กรุณาปิดเครื่องมือป้องกันป๊อบอัพในโปรแกรมท่องอินเตอร์เน็ตของท่านด้วย", 
     150DialogBlocked           : "เปิดหน้าต่างป๊อบอัพเพื่อทำงานต่อไม่ได้ กรุณาปิดเครื่องมือป้องกันป๊อบอัพในโปรแกรมท่องอินเตอร์เน็ตของท่านด้วย", 
    151151 
    152152// Dialogs 
     
    157157DlgAdvancedTag          : "ขั้นสูง", 
    158158DlgOpOther                      : "<อื่นๆ>", 
    159 DlgInfoTab                      : "Info",       //MISSING 
    160 DlgAlertUrl                     : "Please insert the URL",      //MISSING 
     159DlgInfoTab                      : "อินโฟ", 
     160DlgAlertUrl                     : "กรุณาระบุ URL", 
    161161 
    162162// General Dialogs Labels 
     
    203203DlgImgPreview           : "หน้าเอกสารตัวอย่าง", 
    204204DlgImgAlertUrl          : "กรุณาระบุที่อยู่อ้างอิงออนไลน์ของไฟล์รูปภาพ (URL)", 
    205 DlgImgLinkTab           : "Link",       //MISSING 
     205DlgImgLinkTab           : "ลิ้งค์", 
    206206 
    207207// Flash Dialog 
    208 DlgFlashTitle           : "Flash Properties",   //MISSING 
    209 DlgFlashChkPlay         : "Auto Play",  //MISSING 
    210 DlgFlashChkLoop         : "Loop",       //MISSING 
    211 DlgFlashChkMenu         : "Enable Flash Menu",  //MISSING 
    212 DlgFlashScale           : "Scale",      //MISSING 
    213 DlgFlashScaleAll        : "Show all",   //MISSING 
    214 DlgFlashScaleNoBorder   : "No Border",  //MISSING 
    215 DlgFlashScaleFit        : "Exact Fit",  //MISSING 
     208DlgFlashTitle           : "คุณสมบัติของไฟล์ Flash", 
     209DlgFlashChkPlay         : "เล่นอัตโนมัติ Auto Play", 
     210DlgFlashChkLoop         : "เล่นวนรอบ Loop", 
     211DlgFlashChkMenu         : "ให้ใช้งานเมนูของ Flash", 
     212DlgFlashScale           : "อัตราส่วน Scale", 
     213DlgFlashScaleAll        : "แสดงให้เห็นทั้งหมด Show all", 
     214DlgFlashScaleNoBorder   : "ไม่แสดงเส้นขอบ No Border", 
     215DlgFlashScaleFit        : "แสดงให้พอดีกับพื้นที่ Exact Fit", 
    216216 
    217217// Link Dialog 
     
    230230DlgLnkAnchorByName      : "ชื่อ", 
    231231DlgLnkAnchorById        : "ไอดี", 
    232 DlgLnkNoAnchors         : "<ยังไม่มีจุดเชื่อมโยงภายในหน้าเอกสารนี้>",           //REVIEW : Change < and > with ( and ) 
     232DlgLnkNoAnchors         : "(ยังไม่มีจุดเชื่อมโยงภายในหน้าเอกสารนี้)",           //REVIEW : Change < and > with ( and ) 
    233233DlgLnkEMail                     : "อีเมล์ (E-Mail)", 
    234234DlgLnkEMailSubject      : "หัวเรื่อง", 
     
    263263DlnLnkMsgNoEMail        : "กรุณาระบุอีเมล์ (E-mail)", 
    264264DlnLnkMsgNoAnchor       : "กรุณาระบุจุดเชื่อมโยง (Anchor)", 
    265 DlnLnkMsgInvPopName     : "The popup name must begin with an alphabetic character and must not contain spaces", //MISSING 
     265DlnLnkMsgInvPopName     : "ชื่อของหน้าต่างป๊อบอัพ จะต้องขึ้นต้นด้วยตัวอักษรเท่านั้น และต้องไม่มีช่องว่างในชื่อ", 
    266266 
    267267// Color Dialog 
     
    272272 
    273273// Smiley Dialog 
    274 DlgSmileyTitle          : "แทรกสัญักษณ