eWebEditor Home >> eWebEditor Manual V11.2 >> Developer Guide >> Integration

3.3.3 Callby Pop-up Windows

Version newer than v2.7.5, has added function of calling by pop-up windows, which can realize the function of opening the editor through a hyperlinked pop-up windows and saving the editing contents as the designated form domain.

Under root directory of eWebEditor, file's names are popup.htm. The parameters for introduction of interface are provided as follows:

l   style : style name

l   form : form name for returning or setting value

l   field : textarea item name for returning or setting value

 

Call form as the follows:

/ewebeditor/popup.htm?style=coolblue&form=myform&field=myfield

 

Example:

<HTML>

<BODY>

<Script Language=JavaScript>

function eWebEditorPopUp(style, form, field) {

  var oPopUp = window.open("popup.htm?style="+style+"&form="+form+"&field="+field, "PopUp"+form+field, "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");

}

</Script>

<FORM ACTION="" METHOD="" NAME="myForm">

<TEXTAREA NAME="myField" COLS="50" ROWS="5"></TEXTAREA>

<INPUT TYPE="BUTTON" VALUE="HTML Editor" ONCLICK="eWebEditorPopUp('popup', 'myForm', 'myField')">

</FORM>

</BODY>

</HTML>