No man, can't view it. However site works fine locally (when I click on "debug" in Visual Studio). I'm able to access events for ck editor, love it - such a great addition.
Can I blame it on my hosting then (it works locally, but not online)? As far as I'm aware they're allowing medium trust level for applications, would that be an issue?
You said I have a problem with setting up asp.net application -- do you know what the problem is?
first from my reply before this one. That was by replacing my own downloaded ckeditor source by the one from the demo. It seems that it is not possible to download your own source. Solved. edit: Related to the problem below.
The second problem that I had was that the reference to the script was wrong. The following is original on line 21 in the demo:
I think the issue with the s_ckEditorJS was coming from you running the web site as a virtual dirctory within IIS. I have added better support for this by changing s_ckEditorJS to "~/ckeditor/ckeditor.js" and then calling ResolveUrl on the value which is the proper thing to do.
I'm uploading a fix for this right now. Thanks for reporting the issue.
I have some problems with it - when I want Text value it represents null. Everything is ok, but it doesn't return Text back from textare
Under which circumstances are you not getting the Text value? I just tested this again, and ifI type some text in the editor and then change the language or theme with the asp.net drop down controls, the Text is properly getting set and can be retrieved via the Text property. If you check the value of the Text property on first page load and have not set the Text property to some starter value than you will get a NULL as you stated, but this is the way it should work.
Please provide more information to fully understand the situation you are experiencing this problem.
I have some problems with it - when I want Text value it represents null. Everything is ok, but it doesn't return Text back from textare
Under which circumstances are you not getting the Text value? I just tested this again, and ifI type some text in the editor and then change the language or theme with the asp.net drop down controls, the Text is properly getting set and can be retrieved via the Text property. If you check the value of the Text property on first page load and have not set the Text property to some starter value than you will get a NULL as you stated, but this is the way it should work.
Please provide more information to fully understand the situation you are experiencing this problem.
Hmmm, sorry, but first I have got to test something. It does work on single page, but on page with multiview - it doesn't work. It doesn't even work on child of MasterPages.
I checked it, and it doesn't run LoadPostData on it, while on clean page - it does.
Just want to make sure I understand what you're saying. You seem to indicate that when the control is being used in a page where there is a ASP.NET master page, the control is not loading the Text from a post back properly. Is that correct? I'll take a deeper look into this, but I am using this in a master page, dynamic theme environment just fine.
MattFromGA wrote:Just want to make sure I understand what you're saying. You seem to indicate that when the control is being used in a page where there is a ASP.NET master page, the control is not loading the Text from a post back properly. Is that correct? I'll take a deeper look into this, but I am using this in a master page, dynamic theme environment just fine.
More details please! Thanks
Yes, correct. It doesn't work in contentplaceholder, even on my masterpage. I searched through forums and I've founded, that some guy have got the same problem (with his own control), but it gone away, when he put this: Page.RegisterRequiresPostBack(Editor), into Page_PreRender. When I have added it to my code-behind contentpage it fires up the LoadPostData, but the Text from control is still null.
For test what i've done - i've made an empty default page in VS, and added to it, a button and your control, in code-behind i've added that text of this button have to change to text from control - it worked. Second page, was a content page built on masterpage, same button, and your control, but text was empty :/.
Well, i don't know if this help - i have to have ValidateRequest = false in my @Page, because without my page raise an error, that this content is not safe. But i have the same attribute in single page and this does work.
var Editor;
for (var i = 0; i < document.forms[0].length; i++) {
checkTemp = document.forms[0][i].id;
if (checkTemp.match(/nameOfYourEditor/)) Editor = document.getElementById(checkTemp);
}
CKEDITOR.replace( Editor.name );
Well, I'm sorry that you've lost a day to it. I did create a new master page and page that uses it in my demo site. It worked just fine out of the box. If you look at the code for the ASP.NET control I created, you'll see that it uses ClientID for the javascript code it generates to setup the editor.
The reference you make to calling RegisterRequiresPostBack has nothing to do with master pages. That call is specifically about ensuring that the ASP.NET library's __doPostBack javascript function is sent with the page. This control does not need __doPostBack to function. It will send its text back in a ASP.NET postback, but there is nothing about the editor that will trigger a post back like an ASP.NET button or a drop down with its AutoPostBack property set to true. Those controls do need the __doPostBack to be on the page in order for them to trigger a post back when the user does something with them (like press the button or select an item from a drop down).
I believe you are doing something else improperly in the master page environment. Just so that people new to this control can see it work for themselves, the demo site included in the code drop on codeplex now demos the control in a standard page, in a master page environment and as a user control being used in a page.
What is your company's solution to upload images in the editor?
I use CKEditor in my Syrinx CS, which is a full site package. It has a image/video upload solution that is custom to it. Basically, it uses an iframe within a popup browser window. The user uses regular file upload buttons and submits the form which is all in the iframe. When the upload is complete, the main window knows it and updates its display using javascript. It appears seamless because of the iframe and the fact that the mail page using the iframe doesnt refresh during this process.
What is your company's solution to upload images in the editor?
I use CKEditor in my Syrinx CS, which is a full site package. It has a image/video upload solution that is custom to it. Basically, it uses an iframe within a popup browser window. The user uses regular file upload buttons and submits the form which is all in the iframe. When the upload is complete, the main window knows it and updates its display using javascript. It appears seamless because of the iframe and the fact that the mail page using the iframe doesnt refresh during this process.
Hi, I've tried the control but I'm unable to get it to work I keep getting the following error: Line: 17 Error: 'CKEDITOR' is undefined. This happens when running a test page, any suggestions on a fix. Thanks
I tried it on VWD and it works but comes up with the same error:'CKEDITOR' is undefined. when I try to run it from a sub folder, has anyone come across the issue?
that error means that the browser is not able to download the ckeditor.js file properly. You are using a virtual directory which was causing an issue with the first version of the ASP.NET control. I wonder if you have downloaded the latest zip file?
You should review the CkEditor.cs file, and checkout the setupScripts method. Is the one line of code in there using page.ResolveUrl ? If not, you need to download the latest.
I have the SyrinxCkEditor integrated into my ASP.NET 3.5 VB application and can save the text by grabbing it on page postback. But I haven't been able to find any documentation on how to click the save button and have it perform the save? I'm thinking something like this: syx1.onClickSave Which would then call a subroutine which I could use to do something like this: dbTextContents = syx1.Text The postback works okay, but what if I don't want the data to be saved on every postback? Dave.
Re: New ASP.NET CK Editor v3 control available!
Im gonna test it today / tomorrow!
Thnx!
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
http://sergeio.co.uk/rus2eng/
Attachments:
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Can I blame it on my hosting then (it works locally, but not online)? As far as I'm aware they're allowing medium trust level for applications, would that be an issue?
You said I have a problem with setting up asp.net application -- do you know what the problem is?
Thanks man.
Re: New ASP.NET CK Editor v3 control available!
When I run youre test project then it is working fine. But when I run it on a page within a masterpage, firebug is giving me the following error:
and the following is given:
<textarea id='ctl00_ContentPlaceHolder1_ck1' name='ctl00_ContentPlaceHolder1_ck1'></textarea> <script type='text/javascript'> var t=""; var e = CKEDITOR.instances.ctl00_ContentPlaceHolder1_ck1; if(e != null)CKEDITOR.remove(e); CKEDITOR.replace('ctl00_ContentPlaceHolder1_ck1', {colorButton_enableMore:true,pasteFromWordIgnoreFontFace:false}).setData(t); </script> 66I don't know if it has something to do with masterpages?
Greetz Cezus
Re: New ASP.NET CK Editor v3 control available!
Solved 2 problems,
first from my reply before this one. That was by replacing my own downloaded ckeditor source by the one from the demo. It seems that it is not possible to download your own source. Solved.
edit: Related to the problem below.
The second problem that I had was that the reference to the script was wrong. The following is original on line 21 in the demo:
notice the forward slash "/" where the path begins with. After removing this "/" at the beginning it worked!
Hope this helpes?
Re: New ASP.NET CK Editor v3 control available!
I'm uploading a fix for this right now. Thanks for reporting the issue.
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Under which circumstances are you not getting the Text value? I just tested this again, and ifI type some text in the editor and then change the language or theme with the asp.net drop down controls, the Text is properly getting set and can be retrieved via the Text property. If you check the value of the Text property on first page load and have not set the Text property to some starter value than you will get a NULL as you stated, but this is the way it should work.
Please provide more information to fully understand the situation you are experiencing this problem.
Re: New ASP.NET CK Editor v3 control available!
Hmmm, sorry, but first I have got to test something. It does work on single page, but on page with multiview - it doesn't work.
It doesn't even work on child of MasterPages.
I checked it, and it doesn't run LoadPostData on it, while on clean page - it does.
(sorry for my bad english :/)
Re: New ASP.NET CK Editor v3 control available!
More details please!
Thanks
Re: New ASP.NET CK Editor v3 control available!
Yes, correct. It doesn't work in contentplaceholder, even on my masterpage. I searched through forums and I've founded, that some guy have got the same problem (with his own control), but it gone away, when he put this: Page.RegisterRequiresPostBack(Editor), into Page_PreRender. When I have added it to my code-behind contentpage it fires up the LoadPostData, but the Text from control is still null.
For test what i've done - i've made an empty default page in VS, and added to it, a button and your control, in code-behind i've added that text of this button have to change to text from control - it worked.
Second page, was a content page built on masterpage, same button, and your control, but text was empty :/.
Well, i don't know if this help - i have to have ValidateRequest = false in my @Page, because without my page raise an error, that this content is not safe. But i have the same attribute in single page and this does work.
Re: New ASP.NET CK Editor v3 control available!
var Editor; for (var i = 0; i < document.forms[0].length; i++) { checkTemp = document.forms[0][i].id; if (checkTemp.match(/nameOfYourEditor/)) Editor = document.getElementById(checkTemp); } CKEDITOR.replace( Editor.name );Re: New ASP.NET CK Editor v3 control available!
Well, I'm sorry that you've lost a day to it. I did create a new master page and page that uses it in my demo site. It worked just fine out of the box. If you look at the code for the ASP.NET control I created, you'll see that it uses ClientID for the javascript code it generates to setup the editor.
The reference you make to calling RegisterRequiresPostBack has nothing to do with master pages. That call is specifically about ensuring that the ASP.NET library's __doPostBack javascript function is sent with the page. This control does not need __doPostBack to function. It will send its text back in a ASP.NET postback, but there is nothing about the editor that will trigger a post back like an ASP.NET button or a drop down with its AutoPostBack property set to true. Those controls do need the __doPostBack to be on the page in order for them to trigger a post back when the user does something with them (like press the button or select an item from a drop down).
I believe you are doing something else improperly in the master page environment. Just so that people new to this control can see it work for themselves, the demo site included in the code drop on codeplex now demos the control in a standard page, in a master page environment and as a user control being used in a page.
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
Good luck!
Matt
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
I use CKEditor in my Syrinx CS, which is a full site package. It has a image/video upload solution that is custom to it. Basically, it uses an iframe within a popup browser window. The user uses regular file upload buttons and submits the form which is all in the iframe. When the upload is complete, the main window knows it and updates its display using javascript. It appears seamless because of the iframe and the fact that the mail page using the iframe doesnt refresh during this process.
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
I've tried the control but I'm unable to get it to work I keep getting the following error: Line: 17
Error: 'CKEDITOR' is undefined. This happens when running a test page, any suggestions on a fix.
Thanks
Re: New ASP.NET CK Editor v3 control available!
Re: New ASP.NET CK Editor v3 control available!
You should review the CkEditor.cs file, and checkout the setupScripts method. Is the one line of code in there using page.ResolveUrl ? If not, you need to download the latest.
Re: New ASP.NET CK Editor v3 control available!
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="CKTestNoMaster.aspx.vb" Inherits="CKTestNoMaster" %> <%@ Register Assembly="SyrinxCkEditor" Namespace="Syrinx.Gui.AspNet" TagPrefix="syx" %> <!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 language="javascript" type="text/javascript" src="ckeditor/ckeditor.js" /> </head> <body> <form id="form1" runat="server"> <div> <syx:CkEditor ID="editor1" runat="server" /> <script type="text/javascript" language="javascript"> CKEDITOR.replace('editor1', { filebrowserBrowseUrl: 'UploadCK.aspx', filebrowserUploadUrl: 'UploadCK.aspx', filebrowserImageBrowseUrl: 'UploadCK.aspx', filebrowserImageUploadUrl: 'UploadCK.aspx', filebrowserWindowWidth: 500, filebrowserWindowHeight: 300 }); </script> </div> </form> </body> </html>replace
Re: New ASP.NET CK Editor v3 control available!
syx1.onClickSave
Which would then call a subroutine which I could use to do something like this:
dbTextContents = syx1.Text
The postback works okay, but what if I don't want the data to be saved on every postback?
Dave.
Re: New ASP.NET CK Editor v3 control available!
viewtopic.php?t=15882
http://ckfilemanager.codeplex.com/releases/view/39131