Image Upload mit TinyMce in Asp.net
So könnt ihr in eurem TinyMce mit Hilfe Asp.net einen Bilder Upload Implementieren.
Ladet euch das TinySLUpload herunter und geht dann folgendermaßen vor:
Setup:
Whatever page your TinyMCE editor is on, please add the following init option:
relative_urls: false
this may not be needed, please see “Other Notes” below
Browse to /tiny_mce/plugins/advimage and do the following
- Overwrite js folder
- Overwrite lang folder
- Add FileUpload.ashx
- Add TinySLUpload.xap
- Overwrite image.htm
Open up image.htm and find the following:
<object type=”application/x-silverlight-2″ width=”100%” height=”275″>
<param name=”source” value=”TinySLUpload.xap”/>
<param name=”onError” value=”onSilverlightError” />
<param name=”background” value=”white” />
<param name=”windowless” value=”true” />
<param name=”minRuntimeVersion” value=”3.0.40624.0″ />
<param name=”autoUpgrade” value=”true” />
<param name=”initParams” value=”HandlerUri=http://localhost:52594/tiny_mce/plugins/advimage/FileUpload.ashx,ImagePath=http://localhost:52594/documents/editorImages/” />
<a href=”http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0″ style=”text-decoration:none”>
<img src=”http://go.microsoft.com/fwlink/?LinkId=108181″ alt=”Get Microsoft Silverlight” style=”border-style:none”/>
</a>
</object>
Edit the initParams values to match the URL location of your website
Open up your web.config file in your ASP.NET application and add the following key name to your <appSettings>
<add key=”EditorImagePath” value=”~/documents/editorImages/”/>
Note: whatever path you put in for the value above, please make sure it exists on your web server and it hasread/write permissions on it.
VISIT ONÂ http://tinyslupload.codeplex.com/releases/view/40332




Leave a Reply
Want to join the discussion?Feel free to contribute!