danielgindi wrote:I've tested again with .Net 3.5 and Firefox 3.6.3 (latest) - and everything seems to be fine... But still, the AjaxControlToolkit.dll you are working with is compiled for 4.0, and it is most likely that the combination of Firefox with some difference in Ajax's rendering is what's making all the noise...
Right now I can't reproduce the problem on my machine so this is quite a problem...
have just resent you a 3.5 version (too many folders got confused sorry)
serializer wrote: Sync's ckfilemanager also looks very interesting, I was after something like this. I'm also using an MS SQL database (using Linq to perform all of my querying). I'll have a look at the code and see if I can make it use a provider interface (so you could attach any data layer you liked!)
Would it be possible to fix CustomConfig so that we can use the site-relative root "~/" url format? I can specify "/js/ckeditor/config_XYZ.js" but not "~/js..." (well I can specify it, but it isn't translated and won't work)?
Great job making this... I was pulling my hair out trying to get this thing to work with AJAX!
sync wrote: 5. if you have alot of contents inside the editor which creates a scroll bar on the side, if you click the scroll bar, it creates this error... Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDOMNSHTMLDocument.designMode]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: http://somewebsite.com/ckeditor/ckeditor.js :: C :: line 88" data: no]
alfonsoml wrote:That's http://dev.fckeditor.net/ticket/5782 Make sure to test the nightly after a patch is applied to verify that the 3.3.1 version has these little bugs fixed.
alfonsoml wrote:I said that you should test it after a patch is applied to the code. Currently it has a proposed patch, but we must test that it works as expected.
my bad, in that case i'll wait for the next release
update panel dose not work with .net 2 ajax and after update with ajax CKEDITOR comes to a simple TEXTAREA with passed value. but it works in .net 3.5 ajax any help?
When i use this control and try to upload image i got this error please help me... HTTP Error 405.0 - Method Not Allowed The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
About .Net 2.0 Update Panels - I admit I did not test at all. The reason is I'm not a big fan of .Net's ajax, so everything ajax related I did based on feedback and example projects sent to by forum members.
Regarding image upload - I do not know which control you are using to upload images, but make sure you have permissions set up correctly for uploading, and check that if an HTTP Handler is required - it is configured correctly.
Thaks for your reply.. I am using CKEditor v3.3 control in my asp.net website which is available to download on 1st page of this discussion topic. (CKEditor.3.3.Net) I am using ckeditor's image option and click on upload button and then click on browse button and after selecting my image i click on send it to server button. But when i click on send it to server button i am getting this error.. This error come even when i don't use asp.net ajax. The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
if i am missing any settings in configuration or any permission please show me.
By "which control you are using" - I referred to the UPLOAD control. Because, in case you haven't noticed, CKE do NOT offer native upload functionality. You need to create a "connector" which talks to a server side handler, and configure CKE to use that connector.
Yes it will but unfortunately although I did develop both file browser and file uploader module that integrates with CKE, it is proprietary code of a company that I work with and developed it for. And I do not intend to write another one...
Please look at CKE's documentation to understand how to set the configuration to use your connector. About creating a connector - you can find many examples on the web. One of them is made by one of the forum members on this very page... A friend of ours, sync, has his own project going on, right here: http://ckfilemanager.codeplex.com/ This is a file manager that uploads to a database, great stuff!
when user inserts a picture and does a postback(save the article) the usercontrol containing the ckeditor disappears. It doesn't matter if the user types the path to an image manually or browses through file browser, and it only happens in chrome 5(latest versions of ie, opera and firefox are doing fine).
when user inserts a picture and does a postback(save the article) the usercontrol containing the ckeditor disappears. It doesn't matter if the user types the path to an image manually or browses through file browser, and it only happens in chrome 5(latest versions of ie, opera and firefox are doing fine).
I can't understand your problem. I'm working ONLY with chrome, dev channel, and using cke on all sorts of forms, and my cke never disappears because of an image... please post a sample project (without removing any cke files or dlls)
when user inserts a picture and does a postback(save the article) the usercontrol containing the ckeditor disappears. It doesn't matter if the user types the path to an image manually or browses through file browser, and it only happens in chrome 5(latest versions of ie, opera and firefox are doing fine).
I can't understand your problem. I'm working ONLY with chrome, dev channel, and using cke on all sorts of forms, and my cke never disappears because of an image... please post a sample project (without removing any cke files or dlls)
I've found the culprit, it seems that fred's ckeditor does a full page reload after image insert(IsPostBack = false), and I was doing some page resetting(myUserControl = null) in the !IsPostBack code, so it disappeared. Why does a full page reload happen when inserting image I don't know, at most it should do a postback but this I don't get...
I have used the normal version of CKEditor 3.3 with success. Trying to use this Asp.Net server control for the first time. I think I am missing a first step because my textarea appears as a textarea, not a CKEditor. Below is code from my ASPX page (I have the FredCK.CKEditor.dll in my /bin folder):
Thanks, Randy
<%@ Register Assembly="FredCK.CKEditor" Namespace="FredCK.CKEditor" TagPrefix="FredCK" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h2>This page is for testing the CKEditor 3.3 ASP.NET DLL</h2>
<p>
Enter some text here:
<FredCK:CKEditor ID="ckInfo" runat="server" Width="350" Height="140" />
<br />
</div>
</form>
</body>
</html>
Can anyone confirm whether the 'OK' button on Image properties(when inserting picture) causes the page to reload in Chrome 5? To me it only happens in Chrome, all other browsers just insert the image in the article. And it's not a postback that occurs but a full page reload...
vani wrote:Can anyone confirm whether the 'OK' button on Image properties(when inserting picture) causes the page to reload in Chrome 5? To me it only happens in Chrome, all other browsers just insert the image in the article. And it's not a postback that occurs but a full page reload...
Is there a function I can put a breakpoint on, to see what's going on after pressing the OK button(or Cancel for that matter) on the image insert form?
Now I'm almost 100% positive that it does cause a page_load on image insert in chrome 5. First I've tried to move the editor and it's code from a usercontrol to an aspx page and it still did a page_load. Then I created a fresh 3.5 project and created a page with just a textarea and a script to load the ckeditor, and believe it or not on image insert it did a page_load...
I have a page whose lifecycle is roughly as follows:
1. Initial Load (create instance of CKEditor, numerous other form controls) 2. Submit (AJAX Postback; save contents; display message (new Panel), CKEditor instance not rendered because a Panel containing it has been set Visible false) 3. LinkButton to AJAX Postback again (serves as a "copy what I just did but take me to the edit page so I can make changes before submitting" function)
1. and 2. work fine, but when I click the LinkButton in step 3, I get a javascript error: i.contentWindow is null [Break on this error] if(!A.equals(B)&&A.$.frameElement){var...disable:function(){this.setState(0); ckeditor.js (line 19)
and it aborts the postback
I think I can work around this by constructing a URL to pass parameters via GET, so the link is not a linkbutton but an actual hyperlink and therefore there's no postback, but it is annoying to have to do so.
after some days trying to make ckeditor+ckfinder work together with masterpages and ajax without breaking my menus... the only way has been using your control... 10 minutes setting it up, and everything working together (altought there are several javascript breaks on firebug... but at least, everything seems to work ok). So ... man I debt u some beers! Thanks for ur work!!
I compiled the asp.net server control available in this thread and added it to a asp.net application I am developing - it launches fine. What I'm not sure how to do is capture when someone clicks on the save button in ckeditor so that I can perform a LINQ-to-SQL update of the content to the back-end db. Suggestions? Thanks, Dave.
Re: Asp.Net Server Control! - CKE 3.3 update
have just resent you a 3.5 version (too many folders got confused sorry)
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
Would it be possible to fix CustomConfig so that we can use the site-relative root "~/" url format? I can specify "/js/ckeditor/config_XYZ.js" but not "~/js..." (well I can specify it, but it isn't translated and won't work)?
Great job making this... I was pulling my hair out trying to get this thing to work with AJAX!
Re: Have made Asp.Net Server Control!
Re: Have made Asp.Net Server Control!
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
my bad, in that case i'll wait for the next release
Re: Asp.Net Server Control! - CKE 3.3 update
update panel dose not work with .net 2 ajax and after update with ajax CKEDITOR comes to a simple TEXTAREA with passed value.
but it works in .net 3.5 ajax
any help?
Re: Asp.Net Server Control! - CKE 3.3 update
When i use this control and try to upload image i got this error please help me...
HTTP Error 405.0 - Method Not Allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
Re: Asp.Net Server Control! - CKE 3.3 update
About .Net 2.0 Update Panels - I admit I did not test at all.
The reason is I'm not a big fan of .Net's ajax, so everything ajax related I did based on feedback and example projects sent to by forum members.
Regarding image upload - I do not know which control you are using to upload images, but make sure you have permissions set up correctly for uploading, and check that if an HTTP Handler is required - it is configured correctly.
Re: Asp.Net Server Control! - CKE 3.3 update
Thaks for your reply..
I am using CKEditor v3.3 control in my asp.net website which is available to download on 1st page of this discussion topic. (CKEditor.3.3.Net) I am using ckeditor's image option and click on upload button and then click on browse button and after selecting my image i click on send it to server button. But when i click on send it to server button i am getting this error.. This error come even when i don't use asp.net ajax.
The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used.
if i am missing any settings in configuration or any permission please show me.
Re: Asp.Net Server Control! - CKE 3.3 update
Because, in case you haven't noticed, CKE do NOT offer native upload functionality. You need to create a "connector" which talks to a server side handler, and configure CKE to use that connector.
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
Yes it will but unfortunately although I did develop both file browser and file uploader module that integrates with CKE, it is proprietary code of a company that I work with and developed it for.
And I do not intend to write another one...
Please look at CKE's documentation to understand how to set the configuration to use your connector.
About creating a connector - you can find many examples on the web.
One of them is made by one of the forum members on this very page...
A friend of ours, sync, has his own project going on, right here: http://ckfilemanager.codeplex.com/
This is a file manager that uploads to a database, great stuff!
Re: Asp.Net Server Control! - CKE 3.3 update
when user inserts a picture and does a postback(save the article) the usercontrol containing the ckeditor disappears.
It doesn't matter if the user types the path to an image manually or browses through file browser, and
it only happens in chrome 5(latest versions of ie, opera and firefox are doing fine).
Re: Asp.Net Server Control! - CKE 3.3 update
I can't understand your problem.
I'm working ONLY with chrome, dev channel, and using cke on all sorts of forms, and my cke never disappears because of an image... please post a sample project (without removing any cke files or dlls)
Re: Asp.Net Server Control! - CKE 3.3 update
I've found the culprit, it seems that fred's ckeditor does a full page reload after image insert(IsPostBack = false), and I was doing some page resetting(myUserControl = null) in the !IsPostBack code, so it disappeared.
Why does a full page reload happen when inserting image I don't know, at most it should do a postback but this I don't get...
Sample code to get started
I have used the normal version of CKEditor 3.3 with success. Trying to use this Asp.Net server control for the first time. I think I am missing a first step because my textarea appears as a textarea, not a CKEditor. Below is code from my ASPX page (I have the FredCK.CKEditor.dll in my /bin folder):
Thanks,
Randy
Re: Asp.Net Server Control! - CKE 3.3 update
Make sure you have specified your CKE folder in the control attribute, or in the app config.
Re: Asp.Net Server Control! - CKE 3.3 update
Thanks for the quick response. (I only included the ckeditor.js in the file after first not seeing the editor on the page).
Anyways, I just realized that I didn't have my "ckeditor" virtual directory setup for this site. That explains why it wasn't showing
Thanks.
Re: Asp.Net Server Control! - CKE 3.3 update
To me it only happens in Chrome, all other browsers just insert the image in the article.
And it's not a postback that occurs but a full page reload...
Re: Asp.Net Server Control! - CKE 3.3 update
It does not cause a postback in my chrome 5..
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
Now I'm almost 100% positive that it does cause a page_load on image insert in chrome 5.
First I've tried to move the editor and it's code from a usercontrol to an aspx page and it still did a page_load.
Then I created a fresh 3.5 project and created a page with just a textarea and a script to load the ckeditor, and believe it or not on image insert it did a page_load...
Here is the link to the sample project: https://docs.google.com/leaf?id=0B3Zuqq9kTSqzZTI3NmRhNDAtYmYxZi00NDQ5LWI5MGQtNjBiNzg0MWZmYmFi&hl=en
...any thoughts appreciated.
Re: Asp.Net Server Control! - CKE 3.3 update
1. Initial Load (create instance of CKEditor, numerous other form controls)
2. Submit (AJAX Postback; save contents; display message (new Panel), CKEditor instance not rendered because a Panel containing it has been set Visible false)
3. LinkButton to AJAX Postback again (serves as a "copy what I just did but take me to the edit page so I can make changes before submitting" function)
1. and 2. work fine, but when I click the LinkButton in step 3, I get a javascript error:
i.contentWindow is null
[Break on this error] if(!A.equals(B)&&A.$.frameElement){var...disable:function(){this.setState(0);
ckeditor.js (line 19)
and it aborts the postback
I think I can work around this by constructing a URL to pass parameters via GET, so the link is not a linkbutton but an actual hyperlink and therefore there's no postback, but it is annoying to have to do so.
Re: Asp.Net Server Control! - CKE 3.3 update
after some days trying to make ckeditor+ckfinder work together with masterpages and ajax without breaking my menus... the only way has been using your control... 10 minutes setting it up, and everything working together (altought there are several javascript breaks on firebug... but at least, everything seems to work ok).
So ... man I debt u some beers! Thanks for ur work!!
Re: Asp.Net Server Control! - CKE 3.3 update
Thanks,
Dave.
Re: Asp.Net Server Control! - CKE 3.3 update
hi, guys if any one is really interested in ckeditor with asp.net and thus updating then
1. download my whole project from http://npcs2k7.110mb.com/CK_editor_.zip
2. or else view this webpage => http://www.codeproject.com/KB/edit/CK_EDITOR.aspx
Re: Asp.Net Server Control! - CKE 3.3 update
I will check it Thanks man