come back to update my ckeditor and of course, the un-official asp.net control once again. Just need to thank you for all the efforts you spend on this project, excellent work. I almost gave up ckeditor, you are the day saver
Thanks a lot for making this control. I liked it so far, but i am having a little problem using Shared Spaces thing. Could you explain how to make shared toolbar for 2 controls step by step. As far as i understand there are 4 values: SharedSpacesBottom, SharedSpacesBottomClientID , SharedSpacesTop, SharedSpacesTopClientID(filled automaticly) and a CKSharedSpace control. The best i've done is made CKSharedSpace control visible, but with no buttons, and i am run out of ideas
RealPirate wrote:Thanks a lot for making this control. I liked it so far, but i am having a little problem using Shared Spaces thing. Could you explain how to make shared toolbar for 2 controls step by step. As far as i understand there are 4 values: SharedSpacesBottom, SharedSpacesBottomClientID , SharedSpacesTop, SharedSpacesTopClientID(filled automaticly) and a CKSharedSpace control. The best i've done is made CKSharedSpace control visible, but with no buttons, and i am run out of ideas
I have one issue: if I have a PostBacktrigger that is hit after a partial page update has been done, I get the following error:
"Line 19: error: object does not supprt property or method" at "return i&&new g(i.contentWindow.document)"
Any ideas? I have a attached a small project for reproducing the issue (you need to copy ckeditor to its base directory - was to huge for upload)
Thanks for your help, dpomt
I have the same issue here with an ASP.NET app. My structure is as follows:- Master Page containing UpdatePanel control. Content Page containing 3 CKEditor controls. The page causing the issue also has a file upload control. The LinkButton that fires the upload has to be registered with the MasterPage UpdatePanel to cause a full postback rather than async. I use
public void AddLinkButtonPostBack(LinkButton lnkbtn)
{
MasterScripts.RegisterPostBackControl(lnkbtn);
}
to register the LinkButton. The first time the button is clicked, I get the same error as above in IE. If you click the button a second time, it works.
If I try Firefox, the error console lists the error as i.contentWindow is null
I don't have any problems with other pages that use the same structure. It's only this one page that has a FileUpload control.
I tried the solution listed on this thread viewtopic.php?f=11&t=17971 by adding a client JS call when the upload button is clicked.
But that just duplicates the CKEditor controls on the page and it's not posting back. I just wonder if this might be that my button isn't doing a full postback.
Second issue is that I need to place an invisible CKEDitor server control at the page - it is not sufficient for the CKEditor to exist in the field template. You get "CKEDITOR undefined" if dummy CKEditor within aspx page is removed. This error did not exist in FCKEditor serve control.
I have a problem with the parameters which are Decimal type. F.x. I have have: Dialog_BackgroundCoverOpacity="0.5", but since my culture for the website is da-DK, this gets output as 0,5 in the JS, which ofc. makes CKE not to work. (We use , as decimal separator) Any chance, this could some how be fixed, so the .NET control always prints out JS in en-US culture? (Without me changing the webpages culture.)
Hello danielgindi, The newest version of the control and the editor (3.5.1) Doesn't work probably with updatepanels..
Well in general it seems to fail, sometimes the "editor area" is gone, and it is just blue (the color of the rest of the editor). And other times it f***s with the content, like: "<td> <strong>Mest læste nyheder</strong></td> </tr> "
Reonekot wrote:First, thanks for this .NET control!
I have a problem with the parameters which are Decimal type. F.x. I have have: Dialog_BackgroundCoverOpacity="0.5", but since my culture for the website is da-DK, this gets output as 0,5 in the JS, which ofc. makes CKE not to work. (We use , as decimal separator) Any chance, this could some how be fixed, so the .NET control always prints out JS in en-US culture? (Without me changing the webpages culture.)
cause i just tested the 'official' control and no way it works as nicely as yours, gives me more problems... (eg white page to begin with)
oh and i noticed the your 3.5.2 control, when ever i have a postback on the page, my editor flashes to the html mode and then it goes away.... this has not happened before in the older releases
@sync - in case of any troubles with the "official" ASP.NET control, please let us know and describe in details the problems you have experienced.
We did our best to make it as easy to integrate as possible, so if you see any problems, we'd really appreciate any tips what else could be improved. Thanks in advance!
cause i just tested the 'official' control and no way it works as nicely as yours, gives me more problems... (eg white page to begin with)
oh and i noticed the your 3.5.2 control, when ever i have a postback on the page, my editor flashes to the html mode and then it goes away.... this has not happened before in the older releases
Yes the HTML code is showing before leaving the page, because the older way of destroying the CKE by JS was not available anymore since CKE 3.5, it caused JS errors. So I had to revert to the 'official' method of destroying a CKE instance. I hope that we will find a better solution soon. I think that we will concentrate all efforts now on the official control, and try to solve all problems there
sweet as, i'll start integrating the 'official' control in the up coming weeks
2 questions i would like to ask
1. how can you specify custom config file at code behind of a page 2. do we need to set a base path where ck folder is stored as like your control (documentation does not say)
The editor works great on its very own, but when you put it into an modalpopup (ajaxcontroltoolkit) its fine on load, but if you need it to load on the 2nd postback it will generate errors as below
so in steps...
0. page is blank onload, only shows a button to click on (to pop up the modal popup) 1. click for modal popup (modal now shows) 2. click 'show editor' (you now have the errors below - not sure which one you may get)
Can you please say what browser & ver you are using? Also, please check if somehow MsAjax is trying to access from another domain and browser's security prevents access.
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Just need to thank you for all the efforts you spend on this project, excellent work. I almost gave up ckeditor, you are the day saver
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Thanks a lot for making this control. I liked it so far, but i am having a little problem using Shared Spaces thing.
Could you explain how to make shared toolbar for 2 controls step by step. As far as i understand there are 4 values: SharedSpacesBottom, SharedSpacesBottomClientID , SharedSpacesTop, SharedSpacesTopClientID(filled automaticly) and a CKSharedSpace control. The best i've done is made CKSharedSpace control visible, but with no buttons, and i am run out of ideas
Re: Issue when PostBackTrigger is used
Sorry, can't reproduce... I remember a similar bug with FireFox, a few versions ago... Are you using firefox?
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Attachments:
Re: Issue when PostBackTrigger is used
Issue happens here with IE 8.0.7600.16385.
Works without error in Firefox 3.6.19
Did you try to reproduce it with IE 8?
Re: Issue when PostBackTrigger is used
Re: Issue when PostBackTrigger is used
I have the same issue here with an ASP.NET app. My structure is as follows:-
Master Page containing UpdatePanel control.
Content Page containing 3 CKEditor controls.
The page causing the issue also has a file upload control. The LinkButton that fires the upload has to be registered with the MasterPage UpdatePanel to cause a full postback rather than async. I use
to register the LinkButton.
The first time the button is clicked, I get the same error as above in IE. If you click the button a second time, it works.
If I try Firefox, the error console lists the error as i.contentWindow is null
I don't have any problems with other pages that use the same structure. It's only this one page that has a FileUpload control.
I can post more code if required.
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
I tried the solution listed on this thread viewtopic.php?f=11&t=17971 by adding a client JS call when the upload button is clicked.
But that just duplicates the CKEditor controls on the page and it's not posting back. I just wonder if this might be that my button isn't doing a full postback.
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
how do i use the bugger?
<FredCK></FredCK> is clearly a fail
thanks for any advice
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
<FredCK:CKEditor ID="FCKeditor1" runat="server">
</FredCK:CKEditor>
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
My ckeditor is on an UpdatePanel and the Page has MasterPage.
Thanks for any advice
P.D.: Sorry about my english
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Hello danielgrindi,
I have another issue when using your server control within a ASP.NET DynamicData FieldTemplate.
Small sample project: http://www.qdrive.net/qdriver/file/2066 ... d8802e8e2d (run ASP.NET site and follow the instructions on the displayed web page to reproduce the issue).
First issue is, that I get the error (return i&&new g(i.contentWindow.document ==> object does not support property or method) [screen of error msg: http://www.qdrive.net/qdriver/file/2066 ... 15ec7fd6bc and http://www.qdrive.net/qdriver/file/2066 ... 536fd790de].
Second issue is that I need to place an invisible CKEDitor server control at the page - it is not sufficient for the CKEditor to exist in the field template. You get "CKEDITOR undefined" if dummy CKEditor within aspx page is removed. This error did not exist in FCKEditor serve control.
Best regards
DPOMT
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
@danielgindi - I've sent you a PM
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
I have a problem with the parameters which are Decimal type. F.x. I have have: Dialog_BackgroundCoverOpacity="0.5", but since my culture for the website is da-DK, this gets output as 0,5 in the JS, which ofc. makes CKE not to work. (We use , as decimal separator) Any chance, this could some how be fixed, so the .NET control always prints out JS in en-US culture? (Without me changing the webpages culture.)
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
The newest version of the control and the editor (3.5.1)
Doesn't work probably with updatepanels..
Well in general it seems to fail, sometimes the "editor area" is gone, and it is just blue (the color of the rest of the editor).
And other times it f***s with the content, like:
"&amp;amp;lt;td&amp;amp;gt; &amp;amp;lt;strong&amp;amp;gt;Mest l&amp;amp;amp;aelig;ste nyheder&amp;amp;lt;/strong&amp;amp;gt;&amp;amp;lt;/td&amp;amp;gt; &amp;amp;lt;/tr&amp;amp;gt; "
Any ideas?
Best Regards,
Jeppe
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Nice
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
found an issue with control 3.5.1 with editor 3.5.1
issue is that when you change the styleset it has js errors (firefox only)
attached is an sample (does not include ckeditor) *to big to attach
.net 4.0
CK3.5.1_3.5.zip
errors from error console (firefox)
Error: t is undefined
Source File: http://localhost:2630/CK3.5.1/ckeditor/ckeditor.js
Line: 81
Error: o.getById(m[p]) is null
Source File: http://localhost:2630/CK3.5.1/ckeditor/ckeditor.js
Line: 138
Error: n.getById(m[o]) is null
Source File: http://localhost:2630/CK3.5.1/ckeditor/ckeditor.js
Line: 139
Error: N is null
Source File: http://localhost:2630/CK3.5.1/ckeditor/ckeditor.js
Line: 96
Attachments:
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
great update!!!
CKEditor.3.5.2 Net.zip fixed the issue
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
the official .net control being out an all, how different is it from that one and the one you built here?
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
cause i just tested the 'official' control and no way it works as nicely as yours, gives me more problems... (eg white page to begin with)
oh and i noticed the your 3.5.2 control, when ever i have a postback on the page, my editor flashes to the html mode and then it goes away.... this has not happened before in the older releases
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
We did our best to make it as easy to integrate as possible, so if you see any problems, we'd really appreciate any tips what else could be improved. Thanks in advance!
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Yes the HTML code is showing before leaving the page, because the older way of destroying the CKE by JS was not available anymore since CKE 3.5, it caused JS errors. So I had to revert to the 'official' method of destroying a CKE instance.
I hope that we will find a better solution soon.
I think that we will concentrate all efforts now on the official control, and try to solve all problems there
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
2 questions i would like to ask
1. how can you specify custom config file at code behind of a page
2. do we need to set a base path where ck folder is stored as like your control (documentation does not say)
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
i've just tested the 'official' control, issues i encountered compared with the one here in this forum are...
.StylesSet (i get the below error)
(Error: missing } after property list
Source File: http://www.somewebsite.org
Line: 451, Column: 208
Source Code:
if(typeof CKEDITOR != 'undefined') CKEDITOR.replace('TabContainer1_TabPanel1_html_editor',{"customConfig" : "http://www.somewebsite.org/custom_config.js", "htmlEncodeOutput" : true, "stylesSet" : my_styles:../styles_combo.js?nbc=c2b06d93-c75f-4a68-8aef
.Toolbar (doesn't seem to work either with the custom config issue)
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
The editor works great on its very own, but when you put it into an modalpopup (ajaxcontroltoolkit)
its fine on load, but if you need it to load on the 2nd postback it will generate errors as below
so in steps...
0. page is blank onload, only shows a button to click on (to pop up the modal popup)
1. click for modal popup (modal now shows)
2. click 'show editor' (you now have the errors below - not sure which one you may get)
Found 2 errors with the 'official' control:
Error: Sys.InvalidOperationException: Component 'TabContainer2' was not found.
Source File: http://localhost:4423/CK3.5.2/ScriptRes ... ffbd2983fc
Line: 4599
Error: Sys.ScriptLoadFailedException: The script 'http://localhost:4423/CK3.5.2/ckeditor/ckeditor.js?t=B1GG4Z6' failed to load. Check for:
Inaccessible path.
Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
Source File: http://localhost:4423/CK3.5.2/ScriptRes ... ffbd2983fc
Line: 489
I've build a small demo to replicate the issue(s) *issue 2 sometimes appear not sure why*
CK3.5.2_4.0.zip .net 4.0
you will need to download the AjaxControlToolkit.dll - 4.0 from
http://ajaxcontroltoolkit.codeplex.com/ ... dId=116534
put it in bin folder to run the sample (too big i can't upload here, oh and also you will need ckeditor folder inside the sample too)
Attachments:
Re: CKEditor Asp.Net Server Control! - CKE 3.5 update
Also, please check if somehow MsAjax is trying to access from another domain and browser's security prevents access.