eWebEditor Home >> eWebEditor Documentation >> Developer Guide >> Integration

Call by 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:

  • style : style name
  • form : form name for returning or setting value
  • 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>