Changeset 202
- Timestamp:
- 2007-03-10 14:14:31 (22 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 1 added
- 2 removed
- 7 modified
-
editor/css/behaviors/hiddenfield.gif (deleted)
-
editor/css/behaviors/hiddenfield.htc (deleted)
-
editor/css/fck_internal.css (modified) (4 diffs)
-
editor/css/images/fck_hiddenfield.gif (added)
-
editor/dialog/fck_hiddenfield.html (modified) (4 diffs)
-
editor/_source/internals/fck_contextmenu.js (modified) (1 diff)
-
editor/_source/internals/fckdocumentprocessor.js (modified) (1 diff)
-
editor/_source/internals/fck_ie.js (modified) (2 diffs)
-
_test/manual/fckeditingarea/test1.html (modified) (1 diff)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/css/fck_internal.css
r132 r202 26 26 html 27 27 { 28 min-height: 100%;28 min-height: 100%; 29 29 } 30 30 … … 70 70 background-image: url(images/fck_anchor.gif); 71 71 background-repeat: no-repeat; 72 padding-left: 18px;72 padding-left: 18px; 73 73 } 74 74 … … 81 81 background-image: url(images/fck_anchor.gif); 82 82 background-repeat: no-repeat; 83 padding-left: 18px;83 padding-left: 18px; 84 84 } 85 85 … … 100 100 } 101 101 102 input[type="hidden"] 102 /* Hidden fields */ 103 .FCK__InputHidden 103 104 { 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); 109 108 background-repeat: no-repeat; 109 vertical-align: text-bottom; 110 background-position: center center; 110 111 } 111 112 input[type="hidden"]:after113 {114 padding-left: 20px;115 content: "" ;116 } -
FCKeditor/trunk/editor/dialog/fck_hiddenfield.html
r132 r202 22 22 * Hidden Field dialog window. 23 23 --> 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"> 31 31 32 32 var oEditor = window.parent.InnerDialogLoaded() ; 33 var FCK = oEditor.FCK ; 33 34 34 35 // Gets the document DOM 35 var oDOM = oEditor.FCK.EditorDocument ;36 var oDOM = FCK.EditorDocument ; 36 37 37 var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ; 38 // Get the selected flash embed (if available). 39 var oFakeImage = FCK.Selection.GetSelectedElement() ; 40 var oActiveEl ; 41 42 if ( oFakeImage ) 43 { 44 if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckinputhidden') ) 45 oActiveEl = FCK.GetRealElement( oFakeImage ) ; 46 else 47 oFakeImage = null ; 48 } 38 49 39 50 window.onload = function() … … 42 53 oEditor.FCKLanguageManager.TranslatePage(document) ; 43 54 44 if ( oActiveEl && oActiveEl.tagName == 'INPUT' && oActiveEl.type == 'hidden')55 if ( oActiveEl ) 45 56 { 46 57 GetE('txtName').value = oActiveEl.name ; 47 58 GetE('txtValue').value = oActiveEl.value ; 48 59 } 49 else50 oActiveEl = null ;51 60 52 61 window.parent.SetOkButton( true ) ; … … 58 67 if ( !oActiveEl ) 59 68 { 60 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ;69 oActiveEl = FCK.EditorDocument.createElement( 'INPUT' ) ; 61 70 oActiveEl.type = 'hidden' ; 62 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; 71 72 oFakeImage = null ; 63 73 } 64 74 … … 66 76 SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 67 77 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 68 89 return true ; 69 90 } 70 91 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> 95 116 </html> -
FCKeditor/trunk/editor/_source/internals/fck_contextmenu.js
r132 r202 203 203 AddItems : function( menu, tag, tagName ) 204 204 { 205 if ( tagName == 'I NPUT' && tag.type == 'hidden')205 if ( tagName == 'IMG' && tag.getAttribute( '_fckinputhidden' ) ) 206 206 { 207 207 menu.AddSeparator() ; -
FCKeditor/trunk/editor/_source/internals/fckdocumentprocessor.js
r194 r202 222 222 } 223 223 } 224 225 // INPUT:hidden Processor. 226 FCKDocumentProcessor.AppendNew().ProcessDocument = function( document ) 227 { 228 var aInputs = document.getElementsByTagName( 'INPUT' ) ; 229 230 var oInput ; 231 var i = aInputs.length - 1 ; 232 while ( i >= 0 && ( oInput = aInputs[i--] ) ) 233 { 234 if ( oInput.type == 'hidden' ) 235 { 236 var oImg = FCKDocumentProcessor_CreateFakeImage( 'FCK__InputHidden', oInput.cloneNode(true) ) ; 237 oImg.setAttribute( '_fckinputhidden', 'true', 0 ) ; 238 239 oInput.parentNode.insertBefore( oImg, oInput ) ; 240 oInput.parentNode.removeChild( oInput ) ; 241 } 242 } 243 } -
FCKeditor/trunk/editor/_source/internals/fck_ie.js
r200 r202 36 36 // The behaviors should be pointed using the FullBasePath to avoid security 37 37 // errors when using a differente BaseHref. 38 sStyle = 39 '<style type="text/css" _fcktemp="true">' + 40 'INPUT { behavior: url(' + sBasePath + 'css/behaviors/hiddenfield.htc) ; }' ; 38 sStyle = '<style type="text/css" _fcktemp="true">' ; 41 39 42 40 if ( FCKConfig.ShowBorders ) … … 44 42 45 43 // Disable resize handlers. 46 sStyle += 'INPUT,TEXTAREA,SELECT,.FCK__Anchor,.FCK__PageBreak ' ;44 sStyle += 'INPUT,TEXTAREA,SELECT,.FCK__Anchor,.FCK__PageBreak,.FCK__InputHidden' ; 47 45 48 46 if ( FCKConfig.DisableObjectResizing ) -
FCKeditor/trunk/_test/manual/fckeditingarea/test1.html
r132 r202 79 79 var _BehaviorsStyle = '<style type="text/css" _fcktemp="true">' ; 80 80 81 _BehaviorsStyle += 'INPUT { behavior: url(' + sBasePath + 'editor/css/behaviors/hiddenfield.htc) ; } ' ;82 83 81 _BehaviorsStyle += 'TABLE { behavior: url(' + sBasePath + 'editor/css/behaviors/showtableborders.htc) ; }' ; 84 82 -
FCKeditor/trunk/_whatsnew.html
r201 r202 104 104 element is now considered a block container if EnterMode=p|br. It acts like a simple 105 105 block only if EnterMode=div.</li> 106 <li>Hidden fields will now show up as an icon in IE, instead of a normal text field. 107 They are also selectable and draggable, in all browsers.</li> 106 108 </ul> 107 109 <h3>