Hi,
I'm upgrading from v2.6.4 to v3.5.2 (using .NET 3.5.2), but hitting a problem with the toolbars in our ASP.NET 2.0 application...
Our system uses different toolbar configurations depending on where the editor is being used, however when I set editor.Toolbar="CHSummaryEditor" as a property of the editor through the code-behind (or as an attribute in the actual control within the aspx page) it produces an empty toolbar.
I have the following in the config.js file...
However, the javascript being produced by the control on the browser is is formatted as if "CHSummaryEditor" is a toolbar ITEM rather than a set...
If I put set the toolbar name directory in the config.js file and remove the Toolbar property from the control within ASP.NET, then it picks up the toolbar configuration correctly...
Any help would be greatly appreciated.
Cheers,
Tom
I'm upgrading from v2.6.4 to v3.5.2 (using .NET 3.5.2), but hitting a problem with the toolbars in our ASP.NET 2.0 application...
Our system uses different toolbar configurations depending on where the editor is being used, however when I set editor.Toolbar="CHSummaryEditor" as a property of the editor through the code-behind (or as an attribute in the actual control within the aspx page) it produces an empty toolbar.
I have the following in the config.js file...
CKEDITOR.editorConfig = function( config ){ config.toolbar_CHSummaryEditor = [ ['Source','Cut','Copy','Paste','-','SpellCheck','Find','Replace','-','Undo','Redo','-','Link','Unlink','Anchor'] , ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','FontFormat','-','FitWindow'] ] ; }
However, the javascript being produced by the control on the browser is is formatted as if "CHSummaryEditor" is a toolbar ITEM rather than a set...
if(typeof CKEDITOR != 'undefined') CKEDITOR.replace('ckEditor1',{"height" : "400", "htmlEncodeOutput" : true, "toolbar" : [["CHSummaryEditor"]], "width" : "90%"});
If I put set the toolbar name directory in the config.js file and remove the Toolbar property from the control within ASP.NET, then it picks up the toolbar configuration correctly...
CKEDITOR.editorConfig = function( config ){ config.toolbar = "CHSummaryEditor"; config.toolbar_CHSummaryEditor = [ ['Source','Cut','Copy','Paste','-','SpellCheck','Find','Replace','-','Undo','Redo','-','Link','Unlink','Anchor'] , ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','FontFormat','-','FitWindow'] ] ; }
Any help would be greatly appreciated.
Cheers,
Tom
Re: Custom Toolbar .NET
Cheers,
Tom
Re: Custom Toolbar .NET
I think this is a bug with the newest version of CKEditor.NET. Thanks for posting your workaround. Hopefully the control will get an update soon.
Zachary
Re: Custom Toolbar .NET
Reported in http://dev.ckeditor.com/ticket/7558
We'll take care if it in the next release.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Custom Toolbar .NET
Re: Custom Toolbar .NET
Zachary
Re: Custom Toolbar .NET
The issue described in this topic was fixed several months ago with the release of CKEditor for ASP.NET 3.5.3 (see ticket #7285 in the changelog).
Current version is CKEditor for ASP.NET 3.6.2 and we recommend to use the latest version.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!