Show
Ignore:
Timestamp:
2007-05-18 17:59:45 (18 months ago)
Author:
fredck
Message:

Fixed #71 and #243 : The editor now takes care to not create invalid nested block elements, like creating <form> or <hr> inside <p>.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/dialog/fck_form.html

    r132 r308  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
     1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
    22<!-- 
    33 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 
     
    5858        if ( !oActiveEl ) 
    5959        { 
    60                 oActiveEl = oEditor.FCK.EditorDocument.createElement( 'FORM' ) ; 
    61                 oActiveEl = oEditor.FCK.InsertElementAndGetIt( oActiveEl ) ; 
    62                 oActiveEl.innerHTML = '&nbsp;' ; 
     60                oActiveEl = oEditor.FCK.InsertElement( 'form' ) ; 
     61 
     62                if ( oEditor.FCKBrowserInfo.IsGeckoLike ) 
     63                        oActiveEl.innerHTML = GECKO_BOGUS ; 
    6364        } 
    6465 
    6566        oActiveEl.name = GetE('txtName').value ; 
    66         SetAttribute( oActiveEl, 'action'       , GetE('txtAction').value ) ; 
     67        SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ; 
    6768        oActiveEl.method = GetE('txtMethod').value ; 
    6869