Is there any example that implement Ckeditor (browse server - upload) functions in asp.net? - asp.net

it's my first question to this nice site :) ... i use ckeditor.com in my asp.net web site and it have a great features but if any check the full feature example when inserting image you have two feature ( upload to server - browse server and choose image ) as shown in below image
http://i45.tinypic.com/2rmp5ds.jpg
My Questions :
1- Browse Server function integrate with another product called CKfinder .. i don't want to use it i search for such one but in asp.net and can be integrating with ckeditor ?
2- is there an example Upload image function that can save in SQL DB and can be integrated with ckeditor ?
Thanks in advance for your expected cooperations

I don know much about CK Editor, but I would like to suggest you to take a look at free text box, it has the same features and u can manage to upload photo as well.

You don't need to use Ckfinder. Just use below code in ckeditor.replace it will give you browse server button on image window and upload functionality by not integrating with any other plugin. These are all Ckeditor functions.
filebrowserImageBrowseUrl : your image loading path
filebrowserWindowWidth : '640',
filebrowserWindowHeight : '480',
filebrowserImageUploadUrl : '/uploader/upload.php?type=Images',

Related

IBM Business Automation Workflow. Validating File Size and Extension while Adding Files on the Document Widget

Using IBM Business Automation Workflow 22 (Case Builder).
I want to add custom code too the add custom code to the "Add Document" button, so it can limit the size to 10MB and only DOCX or PDF.
Add Document GUI Widget
I need a mix between this IBM Tutorial:
https://www.ibm.com/support/pages/node/1281268
And this post when he tried to limit the upload size and type. (Content Navigator)
How to customize addContentItemDialog to restrict files over 10mb upload in IBM Content Navigator
But sadly the code is not working for me.
Help is apreciated with a sample.
I'm trying to put javascript with Dojo similar to this tutorial.
https://www.ibm.com/support/pages/node/1281268

CKfinder is always displaying blank screen when trying to use browse server option

I am using ckeditor/ckfinder in my application to update the xml files content. While the update of xml content is working fine in this project, the browse server functionality is not working.
When I click on the browse server functionality it only display empty page.
Tried to set the baseurl and baseDir attribute for the image file but still it is giving the same blank screen.
What can be the reason behind this?
You need to tell you ckeditor where to find ckfinder for the browsing capabilities :
Try something like that:
CKFinder.setupCKEditor();
It looks for CKEditor instances to set it up your current loaded CKFinder
I've got some of problems with ckeditor, with mvc.net.
Not sure, you use it or using asp.net.
I give you code i use, and it's running, now :
var editor = CKEDITOR.replace('html_content_editor');
CKFinder.setupCKEditor(editor, '/Scripts/ckfinder/');
where html_content_editor is the id of my html text control
and '/Scripts/ckfinder' is the url of the content of all files and directories use for ckfinder.
And pay attention about setting in web.config.
In app.setting node, you have to use :
<add key="CKEditor.Directory.Path" value="D:\Tmps\Documents\" />

Creating Dynamic Web Page

I am trying to create a dynamic web page from a template.Then i want to create a menu item from it.
I am creating the page(testtest.aspx for example) and everything works fine but the created page doesn't include in project so i can't reach it because the page is not compiling.How can i do this programmatically ?
This is the code that generates the page
When i try to access the testest.aspx page i get this error:
How can i solve this ? Thank you very much
You are looking for loading aspx pages from a location other than file-system. ASP.Net has built-in mechanism for doing that using providers: VirtualPathProvider.
Details are here: http://msdn.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx
This will point you in the right direction: http://support.microsoft.com/kb/910441

Regarding CMS concept and html editor in asp.net

we create page through html editor in CMS project. when we design pages then we can add image through html editor. so i just want to know how automatically image path will be stored in my database table and image will upload in proper forlder. suppose i work with fckeditor.
fckeditor can automatically upload images in right folder and how images path will be saved in right table. do i need to parse the html and extract images and replace the image path with properly and atlast upload images programatically to right folder on server before saving the html to databased. please discuss this in detail because i never work with CMS before.
what is the best html editor for CMS and asp.net project.
also tell me what the best free open source CMS for asp.net.
thanks.

Let user review a file before uploading it

I am programming a control to allow the users of our intranet to upload multiple files into our system, but with some added functionality.
Imagine you as a user are uploading N files, when you add N files the intranet presents you a list like this:
File_name_1 ..... [View] [Remove] [Upload]
File_name_2 ..... [View] [Remove] [Upload]
.
.
.
File_name_n ..... [View] [Remove] [Upload]
[Remove all file] [Upload all files]
If you clic on the View button the file named "file_name_X" will be opened so you can review it and be sure it really is the file you want to upload.
Is this possible?, I am new on the Web programming world and all I found suggest the browsers do not allow you to access local file system from inside a web, but I am not sure.
One way to do this is that you actually upload initially but you only upload it to a "Staging" area. Thus it wouldn't have actually been committed to your system.
This is what Gravatar does which uploads the file and then lets you crop and adjust the image before saving it.
The only other way I've seen this done is using an ActiveX control for example in IE or some other browser extension mechanism.
Uploading files while presenting a good user interface, including progress reporting about the upload, is hard.
I suggest the Yahoo UI uploader widget: http://developer.yahoo.com/yui/uploader/
It's also the basis for the Flickr uploader, see the YUI blog post:
http://yuiblog.com/blog/2009/02/26/flickr-uploadr/
Larry
In IE the file input type will put the full path in the value attribute.

Resources