Ticket #738: 738.patch
File 738.patch, 1.9 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
75 75 are now properly sized in Opera.</li> 76 76 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1782">#1782</a>] Clicking on radio 77 77 buttons or checkboxes in the editor in IE will no longer cause lockups in IE.</li> 78 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/738">#738</a>] Button type can now 79 be changed after creation.</li> 78 80 </ul> 79 81 <p> 80 82 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/dialog/fck_button.html
47 47 GetE('txtName').value = oActiveEl.name ; 48 48 GetE('txtValue').value = oActiveEl.value ; 49 49 GetE('txtType').value = oActiveEl.type ; 50 51 GetE('txtType').disabled = true ;52 50 } 53 51 else 54 52 oActiveEl = null ; … … 68 66 oActiveEl.type = GetE('txtType').value ; 69 67 oActiveEl = oEditor.FCK.InsertElement( oActiveEl ) ; 70 68 } 69 else if ( oActiveEl && oActiveEl.type != GetE( 'txtType' ).value ) 70 { 71 var oNewEl = oEditor.FCK.EditorDocument.createElement( 'INPUT' ) ; 72 oNewEl.type = GetE( 'txtType' ).value ; 73 oActiveEl = oEditor.FCK.InsertElement( oNewEl ) ; 71 74 75 // FCKDialog.SelectionData is broken by now since we've deleted the previously selected element. 76 // So we need to reassign it. 77 if ( oEditor.FCKBrowserInfo.IsIE && oEditor.FCKDialog.SelectionData ) 78 { 79 var range = oEditor.FCK.EditorDocument.body.createControlRange() ; 80 range.add( oActiveEl ) ; 81 oEditor.FCKDialog.SelectionData = range ; 82 } 83 } 84 72 85 oActiveEl.name = GetE('txtName').value ; 73 86 SetAttribute( oActiveEl, 'value', GetE('txtValue').value ) ; 74 87