Changeset 2139
- Timestamp:
- 2008-06-25 12:22:15 (7 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/dialog/fck_anchor.html (modified) (2 diffs)
-
editor/_source/internals/fck.js (modified) (4 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/dialog/fck_anchor.html
r1565 r2139 122 122 { 123 123 // Nothing was selected, so now just create a normal A 124 aNewAnchors.push( oEditor.FCK.InsertElement( 'a' ) ) ; 124 if ( FCKBrowserInfo.IsIE ) 125 aNewAnchors.push( oEditor.FCK.InsertElement( '<a name="' + FCKTools.HTMLEncode( sNewName ).replace( '"', '"' ) + '">' ) ) ; 126 else 127 { 128 var n ; 129 aNewAnchors.push( ( n = oEditor.FCK.InsertElement( 'a' ), n.name = sNewName, n ) ) ; 130 } 125 131 } 126 132 else … … 135 141 { 136 142 oAnchor = aNewAnchors[i] ; 137 138 // Set the name139 oAnchor.name = sNewName ;140 143 141 144 // IE does require special processing to show the Anchor's image -
FCKeditor/trunk/editor/_source/internals/fck.js
r2106 r2139 632 632 var sHtml ; 633 633 634 // Update the HTML in the view output to show. 634 // Update the HTML in the view output to show, also update 635 // FCKTempBin for IE to avoid #2263. 635 636 if ( bIsWysiwyg ) 636 637 { … … 640 641 641 642 sHtml = FCK.GetXHTML( FCKConfig.FormatSource ) ; 643 644 if ( FCKBrowserInfo.IsIE ) 645 FCKTempBin.ToHtml() ; 642 646 643 647 if ( sHtml == null ) … … 938 942 FCK.EditorDocument = FCK.EditingArea.Document ; 939 943 944 if ( FCKBrowserInfo.IsIE ) 945 FCKTempBin.ToElements() ; 946 940 947 FCK.InitializeBehaviors() ; 941 948 … … 1090 1097 this.Elements[ i++ ] = null ; 1091 1098 this.Elements.length = 0 ; 1099 }, 1100 1101 ToHtml : function() 1102 { 1103 for ( var i = 0 ; i < this.Elements.length ; i++ ) 1104 this.Elements[i] = this.Elements[i].outerHTML ; 1105 }, 1106 1107 ToElements : function() 1108 { 1109 var node = FCK.EditorDocument.createElement( 'div' ) ; 1110 for ( var i = 0 ; i < this.Elements.length ; i++ ) 1111 { 1112 if ( typeof( this.Elements[i] ) == 'string' ) 1113 { 1114 node.innerHTML = this.Elements[i] ; 1115 this.Elements[i] = node.firstChild ; 1116 } 1117 } 1092 1118 } 1093 1119 } ; -
FCKeditor/trunk/_whatsnew.html
r2138 r2139 50 50 editor/css/fck_editorarea.css on how to handle style items that would break the style combo. 51 51 </li> 52 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2263">#2263</a>] Fixed a JavaScript 53 error in IE which occurs when there are placeholder elements in the document and the user 54 has pressed the Source button.</li> 52 55 </ul> 53 56 <p>