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...
danielgindi wrote: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
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...
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):
CKEDITOR.plugins.add('media', { init: function(editor) { //plugin code goes here //var pluginName = 'media'; // CKEDITOR.dialog.add(pluginName, this.path + 'dialogs/media.js'); //editor.addCommand(pluginName, new CKEDITOR.dialogCommand(pluginName)); editor.addCommand('media', { exec: function(editor) { alert('Executing a command for the editor name "' + editor.name + '"!'); } }); editor.ui.addButton('Media', { label: 'Insérer un média', command: 'media', icon: this.path + 'media.png' }); } });and here my code in ckeditor/config.cs :
CKEDITOR.editorConfig = function(config) { // Define changes to default configuration here. For example: // config.language = 'fr'; config.uiColor = '#BAD0E6'; config.extraPlugins = 'media'; config.toolbar = [ ['Bold', 'Italic', 'Underline', 'Strike'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Table', 'Smiley', 'SpecialChar'], ['SpellChecker', 'Scayt'], '/', ['Styles', 'Format', 'Font', 'FontSize'], ['Maximize'], ['Source', 'Image', 'Preview'], ['Media'] ]; };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!
http://somewebsite.com/ckeditor/ckeditor.js
http://somewebsite.com/ckeditor/plugins ... ?t=A4SD49Y
http://somewebsite.com/ckeditor/ckeditor.js
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
viewtopic.php?f=11&t=18744
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.