ragscoon wrote:Is there any documentation on how to install this component in to Visual Studio so I can use it in my projects?
Ragscoon =<^_^>=
You've to take the the dll file (\bin\Release\FredCK.CKEditor.dll) and put it in your \bin directory in your solution. You then have to register the dll file, this could be done this way: <%@ Register Assembly="FredCK.CKEditor" Namespace="FredCK.CKEditor" TagPrefix="FredCK" %> (Put it right under "<%@ Page" on every page you want to use the editor)
You now have it as a control: <FredCK:CKEditor id="ckEditorBox2" runat="server" Width="99%" Height="400px" />
hey daniel. are you going to provide any details on how to use this control? i've done the following with no luck
1. added it to my sites bin folder 2. added a reference to the .dll 3. registered it on the page ---> <%@ Register Assembly="FredCK.CKeditor" Namespace="FredCK.CKeditor" TagPrefix="CKeditor" %> 4. added the control to the page ---> <ckEditor:ckeditor id="txtEditor" runat="server"></ckEditor:ckeditor>
I get the old 'ckEditor is undefined error'. any ideas are appreciated
No I'm not. Because if you come in here to take advantage of free code provided for you, you should at least read the notes that come with it, which says you can't change the structure of the CKEditor sources. Which means, that the CKEditor's actual code is not provided inside the dll, but needs to be provided separately, and if it is not in the default ~/ckeditor folder, then the path argument must be provided for the .Net control. I'm not gonna provide any documentation or help on the CK.Net control, because I've done enough work on the code itself, and on the inline documentation which you can easily read. Leave the docs for someone else.
danielgindi wrote:No I'm not. Because if you come in here to take advantage of free code provided for you, you should at least read the notes that come with it, which says you can't change the structure of the CKEditor sources. Which means, that the CKEditor's actual code is not provided inside the dll, but needs to be provided separately, and if it is not in the default ~/ckeditor folder, then the path argument must be provided for the .Net control. I'm not gonna provide any documentation or help on the CK.Net control, because I've done enough work on the code itself, and on the inline documentation which you can easily read. Leave the docs for someone else.
no need to be a dick, i was only asking a question. as far as i can see, the zip file you provided doesn't come with any notes that i can see hence my detailed explanation of what i had done and the error i got. If you don't want to help that's fine by me but at least leave the snide comments aside.
neilakoga wrote:hey daniel. are you going to provide any details on how to use this control? i've done the following with no luck
1. added it to my sites bin folder 2. added a reference to the .dll 3. registered it on the page ---> <%@ Register Assembly="FredCK.CKeditor" Namespace="FredCK.CKeditor" TagPrefix="CKeditor" %> 4. added the control to the page ---> <ckEditor:ckeditor id="txtEditor" runat="server"></ckEditor:ckeditor>
I get the old 'ckEditor is undefined error'. any ideas are appreciated
Note: Register Assembly="FredCK.CKeditor" should be Register Assembly="FredCK.CKEditor" cap-E etc..
Danielgindi have you tried the "Toolbar" property your self? I have tried some time now, testet in a "clean" setup etc. and it doesn't seems to work for me :S See, just when I try to set Toolbar="Basic", it shows an error:
Error 1 Cannot create an object of type 'System.Object' from its string representation 'Basic' for the 'Toolbar' property.
Does it work for you? - Do you, or anybody else, have any idea what might causing this?
It may be something in the conversion of the inline property to the actual property. I'll check it some time soon, and in the next update this will probably be fixed. Anyway, I'm modifyng the toolbar configurations through the config file. You can point the cke to a config file to load extra configurations without touching the original config file.
danielgindi wrote:It may be something in the conversion of the inline property to the actual property. I'll check it some time soon, and in the next update this will probably be fixed. Anyway, I'm modifyng the toolbar configurations through the config file. You can point the cke to a config file to load extra configurations without touching the original config file.
Now I recall what the problem is: Toolbar is a problametic configuration. It can be the name of a toolbar, and it can be an array of buttons... There is some thinking that needs to be done here, on how to best implement the toolbars stuff. Maybe the best is just to leave it as plain JS, I dunno...
could you update the server control to support the new features such as...
#3593 : The editing area is now enabled by contentEditable="true" instead of designMode="on" to allow creating uneditable content elements in all browsers.
#5485 : Adding the contentsLanguage configuration option to be able to set the language for the editor contents. (config.contentsLanguage = 'fr';)
think there are more stuff in 3.3, but these 2 look really neat to have in the server control
when the page is loaded (default tab is 1 which is where the editor is)
1. click on tab2 (so the editor is not displayed on page, this is not doing any postback) 2. then click back in tab1 (to have the editor displayed, this is not doing any postback) 3. click on 'link' in the editor you have error... Error: m is undefined Source File: http://somewebsite.com/ckeditor/ckeditor.js Line: 60
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]
and there are other errors too, but this only occurs when you click on tab2 (editor is not visible), then click back on tab1 (editor is visible)
there are no postbacking event when switching the tabs
if you just first load it, and its in tab1, clicking on any of the above functions in the editor as mentioned causes no errors, its only happening if you somehow (hide) the editor and then re-display it causing the errors
In the sample project you sent me, there was no problem at all, except that your ckeditor folder was missing files! Files like "config.js" should not be deleted OR changed. Any extra configuration should be specified in a different configuration file, or inline...
The difference between you and I is also that you have ran it on .Net 4.0, in which I did not touch yet. I'm running on 3.5. About 4.0 - I'm waiting for them to release the first wave of bug fixes and security fixes... But there should not be any problem, unless they have fundamentally changed the structure of their AJAX components.
Also what browser did you use? And can you try with Google Chrome to see what it says about your "scroll" problem? (Which is weird and I do not think it has anything to do with the AJAX...)
thank you sooo much with this control, i'm able to port my entire FCKEditor app over to CKEditor now...
for those who are interested of storing uploaded images/files/flash to a database, i have written an app that does this (using the connector by danielgindi)
thank you sooo much with this control, i'm able to port my entire FCKEditor app over to CKEditor now...
for those who are interested of storing uploaded images/files/flash to a database, i have written an app that does this (using the connector by danielgindi)
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...
I helped fix the AJAX integration back when it was completely broken in FCKEditor 2.x.
Recently I actually started a CKEditor.NET thread about my own plans, I wasn't aware of your version: viewtopic.php?f=11&t=18744
I'm very interested in the idea of packaging the whole CKEditor into a .dll so it does not need an install dir (all resources could be accessed through WebResource.axd or even through a custom HTTP handler).
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!)
Hi! I was thinking too about intergrating the CKE files inside the dll, but then I started using plugins... When you create plugins they have to be in the plugins folder. So this makes things much more complicated.
Re: Have made Asp.Net Server Control!
You sure helped improving this control!
Re: Have made Asp.Net Server Control!
Ragscoon =<^_^>=
Re: Have made Asp.Net Server Control!
You've to take the the dll file (\bin\Release\FredCK.CKEditor.dll) and put it in your \bin directory in your solution.
You then have to register the dll file, this could be done this way:
<%@ Register Assembly="FredCK.CKEditor" Namespace="FredCK.CKEditor" TagPrefix="FredCK" %>
(Put it right under "<%@ Page" on every page you want to use the editor)
You now have it as a control:
<FredCK:CKEditor id="ckEditorBox2" runat="server" Width="99%" Height="400px" />
Re: Have made Asp.Net Server Control!
I try to create a custom button and i think config.extraPlugins doesn't work..
my code for the plugins (/plugins/media/plugin.cs):
and here my code in ckeditor/config.cs :
it doesn't work when i insert the line of the extraPlugins :
without this line, it works well.
So, is the extraPlugins are really working ?
thanks
Re: Have made Asp.Net Server Control!
This is not the correct thread for this question.
Re: Have made Asp.Net Server Control!
1. added it to my sites bin folder
2. added a reference to the .dll
3. registered it on the page ---> <%@ Register Assembly="FredCK.CKeditor" Namespace="FredCK.CKeditor" TagPrefix="CKeditor" %>
4. added the control to the page ---> <ckEditor:ckeditor id="txtEditor" runat="server"></ckEditor:ckeditor>
I get the old 'ckEditor is undefined error'. any ideas are appreciated
Re: Have made Asp.Net Server Control!
Which means, that the CKEditor's actual code is not provided inside the dll, but needs to be provided separately, and if it is not in the default ~/ckeditor folder, then the path argument must be provided for the .Net control.
I'm not gonna provide any documentation or help on the CK.Net control, because I've done enough work on the code itself, and on the inline documentation which you can easily read. Leave the docs for someone else.
Re: Have made Asp.Net Server Control!
Finaly, i find my error, the plugins must be in ckEditor/plugins and not in ckEditor/_source/plugins..
that works well !
Thanks for this great package !
Re: Have made Asp.Net Server Control!
no need to be a dick, i was only asking a question. as far as i can see, the zip file you provided doesn't come with any notes that i can see hence my detailed explanation of what i had done and the error i got. If you don't want to help that's fine by me but at least leave the snide comments aside.
Re: Have made Asp.Net Server Control!
Re: Have made Asp.Net Server Control!
Thanks
Re: Have made Asp.Net Server Control!
Re: Have made Asp.Net Server Control!
I have just updated the version to 3.2, to reflect the 3.2 configurations.
Re: Have made Asp.Net Server Control!
Re: Have made Asp.Net Server Control!
neilakoga, you're probably using a web application. You can fix this issue by adding BasePath="~/ckeditor" to the control. Hope it helps.
Re: Have made Asp.Net Server Control!
Note:
Register Assembly="FredCK.CKeditor"
should be
Register Assembly="FredCK.CKEditor" cap-E etc..
Re: Have made Asp.Net Server Control!
I have tried some time now, testet in a "clean" setup etc. and it doesn't seems to work for me :S
See, just when I try to set Toolbar="Basic", it shows an error:
Error 1 Cannot create an object of type 'System.Object' from its string representation 'Basic' for the 'Toolbar' property.
Does it work for you?
- Do you, or anybody else, have any idea what might causing this?
Re: Have made Asp.Net Server Control!
Anyway, I'm modifyng the toolbar configurations through the config file. You can point the cke to a config file to load extra configurations without touching the original config file.
Re: Have made Asp.Net Server Control!
i thought this was already working???
Re: Have made Asp.Net Server Control!
Toolbar is a problametic configuration.
It can be the name of a toolbar, and it can be an array of buttons...
There is some thinking that needs to be done here, on how to best implement the toolbars stuff. Maybe the best is just to leave it as plain JS, I dunno...
Re: Have made Asp.Net Server Control!
Attachments:
Re: Have made Asp.Net Server Control!
ckeditor 3.3 is out
could you update the server control to support the new features such as...
#3593 : The editing area is now enabled by contentEditable="true" instead of designMode="on" to allow creating uneditable content elements in all browsers.
#5485 : Adding the contentsLanguage configuration option to be able to set the language for the editor contents. (config.contentsLanguage = 'fr';)
think there are more stuff in 3.3, but these 2 look really neat to have in the server control
thanks danielgindi
Re: Have made Asp.Net Server Control!
i have just tested 3.3 with your server control release on 2010-05-19
i noticed there are number of js problems with ver 3.3
here is how to generate the problems... (below is just a sample code)
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<cc1:TabPanel runat="server" ID="TabPanel1">
<ContentTemplate>
<asp:UpdatePanel ID="up_html_editor" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<cc2:CKEditor ID="html_editor" runat="server" Height="357px" Width="98%">
</ContentTemplate>
</asp:UpdatePanel>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel runat="server" ID="TabPanel2">
<ContentTemplate>
some stuff in tab 2
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
when the page is loaded (default tab is 1 which is where the editor is)
1. click on tab2 (so the editor is not displayed on page, this is not doing any postback)
2. then click back in tab1 (to have the editor displayed, this is not doing any postback)
3. click on 'link' in the editor you have error...
Error: m is undefined
Source File: http://somewebsite.com/ckeditor/ckeditor.js
Line: 60
4. click on 'find' and you have error like...
Error: y.getRanges()[0] is undefined
Source File: http://somewebsite.com/ckeditor/plugins ... ?t=A4SD49Y
Line: 8
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]
and there are other errors too, but this only occurs when you click on tab2 (editor is not visible), then click back on tab1 (editor is visible)
there are no postbacking event when switching the tabs
if you just first load it, and its in tab1, clicking on any of the above functions in the editor as mentioned causes no errors, its only happening if you somehow (hide) the editor and then re-display it causing the errors
hope this helps
sync
Re: Asp.Net Server Control! - CKE 3.3 update
In the sample project you sent me, there was no problem at all, except that your ckeditor folder was missing files! Files like "config.js" should not be deleted OR changed. Any extra configuration should be specified in a different configuration file, or inline...
The difference between you and I is also that you have ran it on .Net 4.0, in which I did not touch yet. I'm running on 3.5. About 4.0 - I'm waiting for them to release the first wave of bug fixes and security fixes...
But there should not be any problem, unless they have fundamentally changed the structure of their AJAX components.
Also what browser did you use? And can you try with Google Chrome to see what it says about your "scroll" problem? (Which is weird and I do not think it has anything to do with the AJAX...)
Re: Asp.Net Server Control! - CKE 3.3 update
i've just sent you a 3.5 project, it includes all the files in the ckeditor folder, except _source and _sample folders
I am using Firefox 3.6.3
I have tested in Chrome, and IE8 and they appear to be fine, no errors at all, only Firefox
like the screen dump i sent you with the styles being different when you switch from tab1 > tab 2 then back to tab 1 only happens in Firefox
sync
Re: Have made Asp.Net Server Control!
Re: Have made Asp.Net Server Control!
Re: Asp.Net Server Control! - CKE 3.3 update
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...
Re: Asp.Net Server Control! - CKE 3.3 update
Hi Daniel,
I helped fix the AJAX integration back when it was completely broken in FCKEditor 2.x.
Recently I actually started a CKEditor.NET thread about my own plans, I wasn't aware of your version: viewtopic.php?f=11&t=18744
I'm very interested in the idea of packaging the whole CKEditor into a .dll so it does not need an install dir (all resources could be accessed through WebResource.axd or even through a custom HTTP handler).
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!)
Re: Asp.Net Server Control! - CKE 3.3 update
I was thinking too about intergrating the CKE files inside the dll, but then I started using plugins... When you create plugins they have to be in the plugins folder. So this makes things much more complicated.