When TinyMCE processes Rich Text, you can enter the image address through the relative path of the website. In this way, TinyMCE can display images normally. In fact, this function is a basic function of the common HTML Rich Text control. Currently, TinyMCE can be expanded to directly upload local images and then display images in the text area.
Implementation ideas:
Use Ajax to upload images. This upload method can be more user-friendly for TinyMCE Image Upload extension,
For details, refer to the previous Jquery ajaxsubmit upload image. Integrate Ajax upload images into TinyMCE,
Modify the advimage plug-in of TinyMCE \ jscripts \ tiny_mce \ plugins under the tinymce directory.
People who know TinyMCE should know that TinyMCE is similar to FireFox. Developers can compile plug-ins suitable for their own needs.
Therefore, you only need to slightly modify the advimage plug-in. For advimage
The following code asynchronously submits jquery images added to image.htm in the directory:
The Code is as follows: