MMCD: Going back to my original question regarding configuration files. Is there any way to use and configure this control 100% on the server without relying on any config files at all. By this, I mean we do not want to rely on any file that reside in the /CuteSoft_Client/CuteEditor/Configuration/ folder. We understand that resources such as images and dialog scripts need to be present in certain folders, but we must be able to remove the configuration folder and do it 100% on the server.
Here is a simple example.
Add the following code into the <appSettings> element of your application web.config file:
<add key="CuteEditorProviderType" value="ProjectName.MyProvider,ProjectName" />
C# code:
- public class MyProvider : CuteEditor.Impl.EditorProvider
- {
- public MyProvider(HttpContext context):base(context)
- {
- }
- public override CuteEditor.Impl.ConfigItem[] GetToolbarItems(CuteEditor.Editor editor, string type)
- {
- if(type=="toolbars")
- {
- ArrayList items=new ArrayList();
- CuteEditor.Impl.ConfigItem item;
-
- item=new CuteEditor.Impl.ConfigItem();
- item.Type="g_start";
- items.Add(item);
-
- item=new CuteEditor.Impl.ConfigItem();
- item.Command="bold";
- item.ImageName="bold";
- items.Add(item);
-
- item=new CuteEditor.Impl.ConfigItem();
- item.Type="g_end";
- items.Add(item);
-
- return (CuteEditor.Impl.ConfigItem[])items.ToArray(typeof(CuteEditor.Impl.ConfigItem));
- }
- return base.GetToolbarItems (editor, type);
- }
-
- }
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx