1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
8 * Licensed under the terms of any of the following licenses at your
11 * - GNU General Public License Version 2 or later (the "GPL")
12 * http://www.gnu.org/licenses/gpl.html
14 * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15 * http://www.gnu.org/licenses/lgpl.html
17 * - Mozilla Public License Version 1.1 or later (the "MPL")
18 * http://www.mozilla.org/MPL/MPL-1.1.html
24 <html xmlns="http://www.w3.org/1999/xhtml">
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">
32 var dialog = window.parent ;
33 var oEditor = dialog.InnerDialogLoaded() ;
35 // Gets the document DOM
36 var oDOM = oEditor.FCK.EditorDocument ;
38 var oActiveEl = dialog.Selection.GetSelection().MoveToAncestorNode( 'FORM' ) ;
40 window.onload = function()
42 // First of all, translate the dialog box texts
43 oEditor.FCKLanguageManager.TranslatePage(document) ;
47 GetE('txtName').value = oActiveEl.name ;
48 GetE('txtAction').value = oActiveEl.getAttribute( 'action', 2 ) ;
49 GetE('txtMethod').value = oActiveEl.method ;
54 dialog.SetOkButton( true ) ;
55 dialog.SetAutoSize( true ) ;
56 SelectField( 'txtName' ) ;
63 oActiveEl = oEditor.FCK.InsertElement( 'form' ) ;
65 if ( oEditor.FCKBrowserInfo.IsGeckoLike )
66 oEditor.FCKTools.AppendBogusBr( oActiveEl ) ;
69 oActiveEl.name = GetE('txtName').value ;
70 SetAttribute( oActiveEl, 'action', GetE('txtAction').value ) ;
71 oActiveEl.method = GetE('txtMethod').value ;
78 <body style="overflow: hidden">
79 <table width="100%" style="height: 100%">
82 <table cellspacing="0" cellpadding="0" width="80%" border="0">
85 <span fcklang="DlgFormName">Name</span><br />
86 <input style="width: 100%" type="text" id="txtName" />
91 <span fcklang="DlgFormAction">Action</span><br />
92 <input style="width: 100%" type="text" id="txtAction" />
97 <span fcklang="DlgFormMethod">Method</span><br />
98 <select id="txtMethod">
99 <option value="get" selected="selected">GET</option>
100 <option value="post">POST</option>