Before using CKEditor can not implement the upload image function, as long as I do not know how to use O ( ̄ε ̄*), and then change the ueditor~~, you can upload the image function ~\ (≧▽≦)/~~
Here is my step: go to the official website to download the latest version of Ueditor, extracted and placed in the file directory, as follows:
<script src= "~/content/ueditor/ueditor.all.js" ></script><script src= "~/Content/ueditor/ Ueditor.all.min.js "></script><script src=" ~/content/ueditor/ueditor.config.js "></script> <link href= "~/content/ueditor/themes/iframe.css" rel= "stylesheet"/><script type= "Text/javascript" > var editor = new Baidu.editor.ui.Editor ({ ueditor_home_url: '/content/ueditor/',//config editor path Iframecssurl : '/content/ueditor/themes/iframe.css ',//style path initialcontent: ' Welcome to Ueditor ',//Initialize editor content autoheightenabled : true,//Height Auto growth minframeheight:500//min height }); Editor.render (' Text ');</script><style>
<td> content:</td>
<td>
<textarea cols= "id=" "Content" Name= "Text" rows= "ten" ></textarea>
</td>
Add a folder inside the folder Upload,image
After doing these steps, you can implement the upload image function. But I have the following problem:
This error is after debugging:
Baidu no fruit, and then found that the Ueditor folder is not completely included in the project, and then do the following actions can be:
The use of MVC Ueditor (to implement the upload image function)