eWebEditor Home >> eWebEditor Manual V8.0 >> Developer Guide >> Integration

3.3.1 Call by Standard

To integrate eWebEditor to your previous web applications, you basically just need to add one line of code in the following forms to the previous codes.

<iframe ID="eWebEditor1" src="/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>

Parameter explanation:

l          /ewebeditor.htm should be changed to your actual installation path.

l          Parametric id: corresponding form item name is the item name for submitting saved page. When call by several form item names please ensure the id is different. Details can be found in the following examples.

l          Parametric style: The style name for use can be standard style name or customized style name. If you use standard coolblue, the style name can be blank.

l          Width, height: The width and height can be set according to actual needs. eWebEditor will adjust automatically to adapt to it.

l          In the background management, you can get the best calling code for every style.

l          For more information on parameter, please see the parameter configuration instructions.

 

Example: Table Creation

 

Before applying eWebEditor, your newly added content table may be in the following form:

<textarea name="content1" rows=10 cols=50></textarea>

 

After applying eWebEditor, the current form will be:

<input type="hidden" name="content1" value="">

<iframe ID="eWebEditor1" src="/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>

Or:

<textarea name="content1" style="display:none"></textarea>

<iframe ID="eWebEditor1" src="/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>

 

Example: Table Modification

 

Your previous form may be:

<textarea name="content1" rows=10 cols=50><%=Server.HTMLEncode(s_Content)%></textarea>

 

And now it will be:

<input type="hidden" name="content1" value="<%=Server.HTMLEncode((s_Content)%>">

<iframe ID="eWebEditor1" src="/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>

Or:

<textarea name="content1" style="display:none"><%=Server.HTMLEncode((s_Content)%></textarea>

<iframe ID="eWebEditor1" src="/ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>