<display-name>defaultroot</display-name>
<servlet>
<servlet-name>debugjsp</servlet-name>
<description>Added to compile JSPs with debug info</description>
<servlet-class></servlet-class>
<init-param>
<param-name>classdebuginfo</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>debugjsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
Copy to WEB-INF/ in your application;
3. Copy the WEB-INF and the WEB-INF directory in your application;
4. Copy the packages under eWebEditor/WEB-INF/lib to your application's WEB-INF/lib;
Note: I package the class file under the original /WEB-INF/classes of the ewewebeditor, and I put it in the application lib to avoid confusion with other classes;
5. Add to the code you want to call the editor:
<IFRAME ID="eWebEditor1" name="content_html" src="../eWebEditor/?id=content&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
<input type="hidden" name="content" />
Join before </head>:
<script language="javascript">
function subchk() //
{
document.= window.content_html.getHTML();
}
</script>
This function is triggered when submitting the form
Copy the value from eWebEditor into your form and call it in your form:
<form name="form1" onsubmit=" subchk()">
6. Just restart the server.
2. Settings:
Interface modification: Generally, just modify the sum below the /WEB-INF directory. To edit the interface configuration file, if the menu is incomplete, you can modify the size inside.
====================================================
Upload image path settings:
//The default upload is xx/upload/, xx is your root directory
//Set the upload file saving path here, note that the path should start from ROOT===3======================================================================================================================================================================================================================================
//Modify this here requires modifying the corresponding WEB-INF/file <suploaddir>/upload/</suploaddir>
//Modify this requires modifying the corresponding file
//Modify this requires modifying the corresponding file
For example, to be uploaded to the root directory /upload/ below:
middle
String sUploadFilePath="/upload/";
middle
<suploaddir>/upload/</suploaddir>
middle
String sUploadFilePath="../upload/";//Set the image display address in the ewewebeditor editor after uploading the file
That's fine.
Modify the upload file size limit, in WEB-INF/
<sfilesize>2000</sfilesize>//Other file sizes
<sflashsize>500</sflashsize>//flash file size
<sremotesize>1000</sremotesize>//Posted content size
<simagesize>1000</simagesize>// Image file size
<smediasize>1000</smediasize>//Multimedia file size
Notes:
1. The file cannot be uploaded during deployment or debugging. You can modify it.
String sUploadFilePath="../upload/";value or modify characters in the file. After refreshing, it can be restored to upload after changing it;
2. If you use utf-8 encoding, you need to add content-Type=”text/html; charset=utf-8” to the head of the called jsp page. Do not use filter to implement unified "UTF-8" or encoding other than gb2312 for ewewebeditor;
<servlet>
<servlet-name>debugjsp</servlet-name>
<description>Added to compile JSPs with debug info</description>
<servlet-class></servlet-class>
<init-param>
<param-name>classdebuginfo</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>debugjsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
Copy to WEB-INF/ in your application;
3. Copy the WEB-INF and the WEB-INF directory in your application;
4. Copy the packages under eWebEditor/WEB-INF/lib to your application's WEB-INF/lib;
Note: I package the class file under the original /WEB-INF/classes of the ewewebeditor, and I put it in the application lib to avoid confusion with other classes;
5. Add to the code you want to call the editor:
<IFRAME ID="eWebEditor1" name="content_html" src="../eWebEditor/?id=content&style=standard" frameborder="0" scrolling="no" width="650" height="350"></IFRAME>
<input type="hidden" name="content" />
Join before </head>:
<script language="javascript">
function subchk() //
{
document.= window.content_html.getHTML();
}
</script>
This function is triggered when submitting the form
Copy the value from eWebEditor into your form and call it in your form:
<form name="form1" onsubmit=" subchk()">
6. Just restart the server.
2. Settings:
Interface modification: Generally, just modify the sum below the /WEB-INF directory. To edit the interface configuration file, if the menu is incomplete, you can modify the size inside.
====================================================
Upload image path settings:
//The default upload is xx/upload/, xx is your root directory
//Set the upload file saving path here, note that the path should start from ROOT===3======================================================================================================================================================================================================================================
//Modify this here requires modifying the corresponding WEB-INF/file <suploaddir>/upload/</suploaddir>
//Modify this requires modifying the corresponding file
//Modify this requires modifying the corresponding file
For example, to be uploaded to the root directory /upload/ below:
middle
String sUploadFilePath="/upload/";
middle
<suploaddir>/upload/</suploaddir>
middle
String sUploadFilePath="../upload/";//Set the image display address in the ewewebeditor editor after uploading the file
That's fine.
Modify the upload file size limit, in WEB-INF/
<sfilesize>2000</sfilesize>//Other file sizes
<sflashsize>500</sflashsize>//flash file size
<sremotesize>1000</sremotesize>//Posted content size
<simagesize>1000</simagesize>// Image file size
<smediasize>1000</smediasize>//Multimedia file size
Notes:
1. The file cannot be uploaded during deployment or debugging. You can modify it.
String sUploadFilePath="../upload/";value or modify characters in the file. After refreshing, it can be restored to upload after changing it;
2. If you use utf-8 encoding, you need to add content-Type=”text/html; charset=utf-8” to the head of the called jsp page. Do not use filter to implement unified "UTF-8" or encoding other than gb2312 for ewewebeditor;