Configure CuteEditor in Community Server 2007

Last post 03-06-2008, 1:37 PM by Adam. 3 replies.
Sort Posts: Previous Next
  •  03-06-2008, 9:39 AM 37625

    Configure CuteEditor in Community Server 2007

    I am trying to add the CuteEditor to a form in Community Server where I want to display different toolbars than normal.  Digging through the code, it looks like I should be able to do this:

    <CSControl:Editor runat="server" ID="Message" Width="500" Height="180">

    <EditorOptions>

    <CSControl:EditorOption runat="server" Name="AutoConfigure" Value="None"></CSControl:EditorOption>

    </EditorOptions>

    </CSControl:Editor>

    But the editor still shows up with the standard set of toolbar buttons.  Any thoughts?
     
     
    Thanks.
     
    --
    --Jeff
  •  03-06-2008, 10:23 AM 37634 in reply to 37625

    Re: Configure CuteEditor in Community Server 2007

    Jeff,
     
    In CS2007 integration:
     
    user.IsAdministrator uses the Toolbar Configuration File: CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSAdministrator.config.

    user.IsBlogAdministrator uses the Toolbar Configuration File :  CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSAdministrator.config.

    user.IsGalleryAdministrator uses the Toolbar Configuration File : CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSAdministrator.config.
     
    user.IsModerator uses the Toolbar Configuration File : CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSModerator.config.
     
    user.IsRegistered uses the Toolbar Configuration File : CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSRegistered.config. 
     
    Guest uses the Toolbar Configuration File of CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSGuest.config.
     
    Justg modify the above toolbar configuration file to meet your own requirements.
     
     
     
     
     
     

    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

  •  03-06-2008, 1:29 PM 37651 in reply to 37634

    Re: Configure CuteEditor in Community Server 2007

    The issue is that I don't want to differentiate the look of the editor by role, I want to do it by what page the editor is on.  So the post editor for forum posts will look one way (the standard way it is integrated like you mention), but the editor that I add to myspecialpage.aspx will look the same for everyone.  Is there any way to do this?
  •  03-06-2008, 1:37 PM 37652 in reply to 37651

    Re: Configure CuteEditor in Community Server 2007

    jeffesp,
     
    By default Cute Editor provider for CS shows different toolbar based on the user's role.
     
    If you want to change this behavior, you can modify the provider project.
     
    Open CuteEditorWraper.cs and modify the following code:
     
     
    if(user.IsAdministrator|| user.IsBlogAdministrator || user.IsGalleryAdministrator)
       {
        base.ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSAdministrator.config";
        base.SecurityPolicyFile="Administrator.config";
       }
       else if(user.IsModerator)
       {
        base.ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSModerator.config";
        base.SecurityPolicyFile="Moderator.config";
       }
       else if(user.IsRegistered)
       {
        base.ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSRegistered.config";
        base.SecurityPolicyFile="Registered.config";
       }
       else
       {
        base.ConfigurationPath="~/CuteSoft_Client/CuteEditor/Configuration/AutoConfigure/CSGuest.config";
        base.SecurityPolicyFile="Guest.config";
       }

    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

View as RSS news feed in XML