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

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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>