In the project, ueditor how to use more convenient? It's easy to think of putting ueditor into the user Control page and dragging it to where you need it.
Ueditor structure
Ueditor Use steps
First, modify the configuration file Ueditor.config.js, configure the Ueditor path
1 window. Ueditor_home_url = "/ueditor/" or "relative path relative to the site root" is a path such as "/myproject/ueditor/" that begins with a slash.
2 var URL = window. Ueditor_home_url | | Getuebasepath ()///Get Ueditor Path
3//test use if you don't know what the path is, you can test it by alert.
4//alert ("URL:" + URL);
5//alert ("window"). Ueditor_home_url: "+ window." Ueditor_home_url);
6//alert ("Getuebasepath ():" + Getuebasepath ());
Upload the path configuration of the picture. Here will upload the file into the site root directory upload folder, modify the configuration file, change the address to url+ ". /”
, Imagepath:url + ". /"//Photo correction address, quoted Fixedimagepath, if special needs, can be configured//,imagefieldname:" Upfile "//Picture The key of the data, if modify here, need to revise the corresponding parameter//,compressside:0//etc in the background corresponding file, determine the reference of the Maximagesidelength parameter Like.
0 is according to the longest edge, 1 is according to the width, 2 is according to the height//,maximagesidelength:900//uploads the picture maximum allowable edge length, surpasses will automatically wait for the scale, does not scale sets a relatively big value, more sets in image.html, Savepath: [' Upload ']//[' uploadfile ', ' upload2 ', ' upload3 ']//Picture saved in the server-side directory, the default is empty, when uploading the image to
The server requests a list of directories to save the Pictures///If the user does not want to send the request, you can set up a list of directory names that can correspond to the server side, such as: Savepath: [' upload1 ', ' upload2 '] Graffiti picture Configuration area, Scrawlurl:url + "net/scrawlup.ashx"//Graffiti upload address, Scrawlpath:url + ". /"//Photo correction address, with ImagePath//attachment upload configuration area, Fileurl:url +" Net/fileup.ashx " Attachment upload Submit address, Filepath:url + ". /"///accessory fixup address, with ImagePath//,filefieldname:" UPFIle "///Attachment submitted table Single-name, if modified here, you need to modify the corresponding parameters//remote crawl Configuration area in the background file//,catchremoteimageenable:true Whether to open remote image capture, default to open, Catcherurl:url + "net/getremoteimage.ashx"//Handle remote image capture address, catcher Path:url + ". /"///Photo correction address, with ImagePath//,catchfieldname:" Upfile "//submit to background remote picture URI collection, if modified here, need Modify the corresponding parameters in the background file//,separater: ' Ue_separate_ue '//Remote picture address string delimiter to the background//,localdomain:[]
Local top-level domain, when the remote image crawl, in addition to all other domain names under the image will be crawled to the local, the default does not crawl 127.0.0.1 and localhost//Picture online management configuration area , Imagemanagerurl:url + "net/imagemanager.ashx"//Picture online management processing address, Imagemanagerpath:url + ". /"//Photo correction address, with ImagePath//screenshot configuration area, SnapscreenHost:location.host Name//Screenshot of the server-side file where the site address or IP, please do not add http://, Snapscreenserverurl:url + "net/i Mageup.ashx "//ScreenScreenshot of the server-side save program, ueditor example code for "URL +" Server/upload/net/snapimgup.ashx "", Snapscreenpath:url + ". /", SnapscreenServerPort:location.port//Screenshot of the server port//,snapscree Nimgalign: '//screenshot of picture default layout way//word dump configuration area, Wordimageurl:url + "net/ Imageup.ashx "//word dump address, Wordimagepath:url +". /"////,wordimagefieldname:" upfile "//word dump table Single-name If modified here, need to modify corresponding parameters in the background corresponding file