samigascon wrote: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!!
samigascon wrote: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 use editor inside jquery ui tabs, when i change tab and come back to the first tab the edito is "freeze" (not editable) i must click on "source mode" to "unfreeze".
I solved by this trick:
$('.subtabs').bind('tabsselect', function(event, ui) {
textarea = $("#" + ui.panel.id + " textarea")[0]
if (textarea != null) {
var editor = CKEDITOR.instances[textarea.id];
if (editor != null) {
var data = editor.getData();
editor.setMode('source');
editor.setData(data, function() {
this.checkDirty(); // true
});
editor.setMode('wysiwyg');
}
}
});
gennaro wrote:I use editor inside jquery ui tabs, when i change tab and come back to the first tab the edito is "freeze" (not editable) i must click on "source mode" to "unfreeze".
I solved by this trick:
$('.subtabs').bind('tabsselect', function(event, ui) {
textarea = $("#" + ui.panel.id + " textarea")[0]
if (textarea != null) {
var editor = CKEDITOR.instances[textarea.id];
if (editor != null) {
var data = editor.getData();
editor.setMode('source');
editor.setData(data, function() {
this.checkDirty(); // true
});
editor.setMode('wysiwyg');
}
}
});
The same trick, without "getdata" first and "setdata" after, unfreeze the editor but lost data. It's very bad but works , i hope in a better solution this work is beautiful.
The pure js version does not have this problem this problem, i try also the server "wrapper" syrinix version and it does not have this problem, but i prefer fredck for more stable interation with updatepanel (syrinix doesnt work without revision), now i havent time to spend but as soon as possible I try to do more testing.
Besides all the new configurations, there's a new convenience property named "RegisterPlugin_TableResize", for quickly installing the new 'tableresize' extraPlugin. (You can set this inline, with no code at all)
However I do recommend using the CustomConfig property with a custom config js file, and set extra plugins from there. This is what I do, and I actually make a lot of changes from that file, so it won't crowd my code, and I also dont have duplicate code this way. ( But be careful not to change the original config.js. You do not have to touch this file ever. )
Maybe in the next version I'll implement a global config for the customConfig through app.config, if there will be a request for it.
I previously had trouble getting CKEditor to behave well within update panel, but your control resolved this problem perfectly. However I am now unsure how to get the CKFinder integration working again with your control. Previously I did this in javascript, but not really sure how to do this with your control.
lmeyers wrote:I previously had trouble getting CKEditor to behave well within update panel, but your control resolved this problem perfectly. However I am now unsure how to get the CKFinder integration working again with your control. Previously I did this in javascript, but not really sure how to do this with your control.
About CKFinder - I never tried to use that one, I'm using my own custom file browser, but I could tell you this: You could either use the ClientID property of the CKE control which returns the [id] of the textarea and in turn the CKEditor itself, or you could use the ObjectID property, which returns the reference to the CKEditor object itself (it actually returns CKEDITOR.instances.[id here]).
So according to your code, you could do it like this: CKFinder.setupCKEditor( <%= CKEditor1.ObjectID %> , '../' ) ;
And of course, "CKEditor1" is the name of the control, which should be public so the "page side" could access it. (.aspx.cs code is protected against the actual .aspx)
Hi, I spent two days trying to solve the updatepanel and validation request puzzle, tks god I found this post before I shift+delete the ckeditor folder, excellent work One suggestion, an example of asp.net page with ur control would be a huge plus to newbies like me. I was stupid enough to waste 2 hours because I didn't include ckeditor.js at page header... Also, wish the author could start a blog to let us to follow, u have no idea how hard to find this post. Somehow, if I use asp, .net, asp.net as keyword to search in this forum, it returns empty.. What is wrong with the ckeditor team anyway? Not support .net control, and don't pay attention to such hard working post? To ckeditor team: U might have issue with Microsoft, but don't try to create more issues with users Again, tks for developing this control, kudos
joelu wrote:Hi, I spent two days trying to solve the updatepanel and validation request puzzle, tks god I found this post before I shift+delete the ckeditor folder, excellent work One suggestion, an example of asp.net page with ur control would be a huge plus to newbies like me. I was stupid enough to waste 2 hours because I didn't include ckeditor.js at page header... Also, wish the author could start a blog to let us to follow, u have no idea how hard to find this post. Somehow, if I use asp, .net, asp.net as keyword to search in this forum, it returns empty.. What is wrong with the ckeditor team anyway? Not support .net control, and don't pay attention to such hard working post? To ckeditor team: U might have issue with Microsoft, but don't try to create more issues with users Again, tks for developing this control, kudos
I am using the 3.4.1 library with the 3.4.1 updated .net control.
I am using it inside an update panel and using the AJAX toolkit (11119...older version due to legacy apps here at work). I have a web form with a handful of controls. Some text boxes, a drop down list, labels, AJAX calendar extenders, and the ckeditor .net control available from here.
Everything seems to work great for the most part. However, every once in a while all the controls on my form freeze up completely. Sometimes I can get them to come back by giving focus to the calendar extender and selecting a new date or flipping months, etc. The problem seems to occur right after giving focus to the ckeditor control and typing something. I have a couple of ModalPopupExtender's that I'm using to display panels for user input. These are displayed when a linkbutton are clicked. Giving focus to the ckeditor then clicking the linkbutton freezes everything up almost every time.
This is happening in IE7 and IE8. Firefox seems to work like a champ. But unfortunately our corporate standard is IE.
Anyone have any ideas what could be going on here?
dwdrumz wrote:I am using the 3.4.1 library with the 3.4.1 updated .net control.
I am using it inside an update panel and using the AJAX toolkit (11119...older version due to legacy apps here at work). I have a web form with a handful of controls. Some text boxes, a drop down list, labels, AJAX calendar extenders, and the ckeditor .net control available from here.
Everything seems to work great for the most part. However, every once in a while all the controls on my form freeze up completely. Sometimes I can get them to come back by giving focus to the calendar extender and selecting a new date or flipping months, etc. The problem seems to occur right after giving focus to the ckeditor control and typing something. I have a couple of ModalPopupExtender's that I'm using to display panels for user input. These are displayed when a linkbutton are clicked. Giving focus to the ckeditor then clicking the linkbutton freezes everything up almost every time.
This is happening in IE7 and IE8. Firefox seems to work like a champ. But unfortunately our corporate standard is IE.
Anyone have any ideas what could be going on here?
I'm having a problem with this control and when there is some form of AJAX postback on my forms. The CKEditor textbox changes to be readonly. This happens with 3.4, 3.4.1, and 3.4.2-svn so I've narrowed it down to being the actual control having problems with how .net reposts pages. Any ideas? Am I missing a setting or do I need some special code behind handling of the CKEditor server control when doing AJAX?
DavidIQ wrote:I'm having a problem with this control and when there is some form of AJAX postback on my forms. The CKEditor textbox changes to be readonly. This happens with 3.4, 3.4.1, and 3.4.2-svn so I've narrowed it down to being the actual control having problems with how .net reposts pages. Any ideas? Am I missing a setting or do I need some special code behind handling of the CKEditor server control when doing AJAX?
Maybe attach a sample project which reproduces the problem so we can take a look?
After spending the entire day trying to figure this out I traced it back to the presentation part of our usercontrol. The CKEditor control was OUTSIDE of the UpdatePanel causing this error. Once I moved it into the UpdatePanel all was well and the control continues responding as expected after an AJAX postback.
Just thought I'd share in case someone else has this problem.
I'm having a problem with this control and when there is some form of AJAX postback on my forms. The CKEditor textbox changes to be readonly. This happens with 3.4, 3.4.1, and 3.4.2-svn so I've narrowed it down to being the actual control having problems with how .net reposts pages. Any ideas? Am I missing a setting or do I need some special code behind handling of the CKEditor server control when doing AJAX?
I was experiencing this issue as well and then I somehow noticed that this was the behaviour in IE 8. Firefox and Safari do not have this issue. In my case, it is not just the editor that changes to readonly, but all of the controls on the page become readonly (checkboxes seem unnaffected though) Unfortunately, I am not sure where to look to try and solve this issue.
If anyone has any ideas on where to begin, I would be more than happy to try and suss this out.
DavidIQ wrote:After spending the entire day trying to figure this out I traced it back to the presentation part of our usercontrol. The CKEditor control was OUTSIDE of the UpdatePanel causing this error. Once I moved it into the UpdatePanel all was well and the control continues responding as expected after an AJAX postback.
Just thought I'd share in case someone else has this problem.
Thanks for a great control. I am just beginning to use it and would like some suggestions on how best to acomplish this task:
The website has a master page plus two content pages. The first content page has the CKEditor on it so a user can enter text, images, etc; in fact, can design a small web page. When the "submit" button is pressed, I want to copy the entire contents of the CKEditor text area into the content placeholder of the second web page. Is this possible?
rkulp wrote:Thanks for a great control. I am just beginning to use it and would like some suggestions on how best to acomplish this task:
The website has a master page plus two content pages. The first content page has the CKEditor on it so a user can enter text, images, etc; in fact, can design a small web page. When the "submit" button is pressed, I want to copy the entire contents of the CKEditor text area into the content placeholder of the second web page. Is this possible?
You cannot dynamically place text or html inside placeholders. You need to create a Literal control, either by code or by design, and set its Text property to the html data. You can replace the placeholder with literal, or put a literal inside it, or insert the literal inside by runtime code.
danielgindi wrote: You cannot dynamically place text or html inside placeholders. You need to create a Literal control, either by code or by design, and set its Text property to the html data. You can replace the placeholder with literal, or put a literal inside it, or insert the literal inside by runtime code.
So, does this mean that I can put in a text box that fills the content placeholder and then copy the CKEditor1.value to the text box? Is there a better way?
danielgindi wrote: You cannot dynamically place text or html inside placeholders. You need to create a Literal control, either by code or by design, and set its Text property to the html data. You can replace the placeholder with literal, or put a literal inside it, or insert the literal inside by runtime code.
So, does this mean that I can put in a text box that fills the content placeholder and then copy the CKEditor1.value to the text box? Is there a better way?
danielgindi wrote: No textbox there's a control called Literal. Its not a client side control, it exists only on the server side. Whatever you put inside of it goes transparently to the client side, replacing the asp:Literal tags
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
I use editor inside jquery ui tabs, when i change tab and come back to the first tab the edito is "freeze" (not editable) i must click on "source mode" to "unfreeze".
I solved by this trick:
Re: Asp.Net Server Control! - CKE 3.3 update
Re: Asp.Net Server Control! - CKE 3.3 update
Thanks for your work
Re: Asp.Net Server Control! - CKE 3.3 update
There's an update for the 3.4.
Besides all the new configurations, there's a new convenience property named "RegisterPlugin_TableResize", for quickly installing the new 'tableresize' extraPlugin. (You can set this inline, with no code at all)
However I do recommend using the CustomConfig property with a custom config js file, and set extra plugins from there.
This is what I do, and I actually make a lot of changes from that file, so it won't crowd my code, and I also dont have duplicate code this way.
( But be careful not to change the original config.js. You do not have to touch this file ever. )
Maybe in the next version I'll implement a global config for the customConfig through app.config, if there will be a request for it.
Re: CKEditor Asp.Net Server Control! - CKE 3.4 update
var editor = CKEDITOR.replace( 'editor1' );
CKFinder.setupCKEditor( editor, '../' ) ;
Thanks in advance,
Lauren
Re: CKEditor Asp.Net Server Control! - CKE 3.4 update
Hi!
I'm glad I could help!
About CKFinder - I never tried to use that one, I'm using my own custom file browser, but I could tell you this:
You could either use the ClientID property of the CKE control which returns the [id] of the textarea and in turn the CKEditor itself, or you could use the ObjectID property, which returns the reference to the CKEditor object itself (it actually returns CKEDITOR.instances.[id here]).
So according to your code, you could do it like this:
CKFinder.setupCKEditor( <%= CKEditor1.ObjectID %> , '../' ) ;
And of course, "CKEditor1" is the name of the control, which should be public so the "page side" could access it. (.aspx.cs code is protected against the actual .aspx)
Hope I helped!
Re: CKEditor Asp.Net Server Control! - CKE 3.4 update
One suggestion, an example of asp.net page with ur control would be a huge plus to newbies like me. I was stupid enough to waste 2 hours because I didn't include ckeditor.js at page header...
Also, wish the author could start a blog to let us to follow, u have no idea how hard to find this post. Somehow, if I use asp, .net, asp.net as keyword to search in this forum, it returns empty..
What is wrong with the ckeditor team anyway? Not support .net control, and don't pay attention to such hard working post? To ckeditor team: U might have issue with Microsoft, but don't try to create more issues with users
Again, tks for developing this control, kudos
Re: CKEditor Asp.Net Server Control! - CKE 3.4 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Hi,
first of all, thank you for this excellent ASP.NET control.
I need help integrating old FCKEditor's File manager and uploader with this server control (or CKEditor directly).
I guess it's possible because I found some examples for PHP integration, but could not make sense of it.
http://www.mixedwaves.com/2010/02/integ ... n-ckeditor
I can't seem to get FileBrowser paths properties right.
Folder ckeditor is in root of my webapp, and I've placed FCKeditor's filemanager in plugins subfolder (ckeditor/plugins/filemanager).
I'm stuck for 2 days already, and any help from a more experienced developer would be greatly appreciated.
If you know any other free control or CKEditor plugin that could be used as file browser/uploader for CKEditor please recommend it.
Thanks in advance.
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
I am using it inside an update panel and using the AJAX toolkit (11119...older version due to legacy apps here at work). I have a web form with a handful of controls. Some text boxes, a drop down list, labels, AJAX calendar extenders, and the ckeditor .net control available from here.
Everything seems to work great for the most part. However, every once in a while all the controls on my form freeze up completely. Sometimes I can get them to come back by giving focus to the calendar extender and selecting a new date or flipping months, etc. The problem seems to occur right after giving focus to the ckeditor control and typing something. I have a couple of ModalPopupExtender's that I'm using to display panels for user input. These are displayed when a linkbutton are clicked. Giving focus to the ckeditor then clicking the linkbutton freezes everything up almost every time.
This is happening in IE7 and IE8. Firefox seems to work like a champ. But unfortunately our corporate standard is IE.
Anyone have any ideas what could be going on here?
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Maybe attach a sample project which reproduces the problem so we can take a look?
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
And that was a good suggestion (to make a sample project). I now see that it's something weird we're doing on our own pages...
Now to try and de-nub someone else's wonky handling of postbacks
Thanks for the suggestion!
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
After spending the entire day trying to figure this out I traced it back to the presentation part of our usercontrol. The CKEditor control was OUTSIDE of the UpdatePanel causing this error. Once I moved it into the UpdatePanel all was well and the control continues responding as expected after an AJAX postback.
Just thought I'd share in case someone else has this problem.
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
The .dll is not existing in the regular folder.
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
You will find it in bin/Release inside the zip file
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
I was experiencing this issue as well and then I somehow noticed that this was the behaviour in IE 8. Firefox and Safari do not have this issue.
In my case, it is not just the editor that changes to readonly, but all of the controls on the page become readonly (checkboxes seem unnaffected though)
Unfortunately, I am not sure where to look to try and solve this issue.
If anyone has any ideas on where to begin, I would be more than happy to try and suss this out.
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
This doesn't help?
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
The website has a master page plus two content pages. The first content page has the CKEditor on it so a user can enter text, images, etc; in fact, can design a small web page. When the "submit" button is pressed, I want to copy the entire contents of the CKEditor text area into the content placeholder of the second web page. Is this possible?
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
You cannot dynamically place text or html inside placeholders. You need to create a Literal control, either by code or by design, and set its Text property to the html data. You can replace the placeholder with literal, or put a literal inside it, or insert the literal inside by runtime code.
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
So, does this mean that I can put in a text box that fills the content placeholder and then copy the CKEditor1.value to the text box? Is there a better way?
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Re: CKEditor Asp.Net Server Control! - CKE 3.4.1 update
Issue when PostBackTrigger is used
thanks for this awesome work!
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
Attachments: