DNN3.1.0 Trouble with Toolbar and Roles

Last post 10-20-2005, 8:38 AM by webpc. 17 replies.
Sort Posts: Previous Next
  •  09-20-2005, 2:57 PM 10801

    DNN3.1.0 Trouble with Toolbar and Roles

         I have been trying to fix this problem for about 4 hours now.
     
    First of all: No matter what I change I have only been able to get different toolbars to display for the Admin role.
     
    I have a user in the following roles: Registered Users, Content Managers, Test, and Members
    Changing any of the following settings does not affect the toolbar settings for this user it always displays a toolbar with only Bold, Italics, Underline, Left Justify, Center, and Right Justify.
     
          Test_AutoConfigure = "Full"
          Test_SecurityPolicyFile = "admin.config"
          Test_DisableItemList = ""
          Test_AllowPasteHtml = "true"
          Test_EditorOnPaste  = "default"
          Test_ReadOnly = "false"
          Test_ShowBottomBar ="true"
          Test_ShowHtmlMode = "true"
          Test_ShowPreviewMode = "true"
          Registered_AutoConfigure = "Full"
          Registered_SecurityPolicyFile = "admin.config"
          Registered_DisableItemList = ""
          Registered_AllowPasteHtml = "true"
          Registered_EditorOnPaste  = "default"
          Registered_ReadOnly = "false"
          Registered_ShowBottomBar ="true"
          Registered_ShowHtmlMode = "true"
          Registered_ShowPreviewMode = "true"
     
    My DotNetNuke.CEHtmlEditorProvider.dll file is dated 9/13/2005 which I believe is the current dll.
     
    Any help is greatly appreciated. Thanks
  •  09-20-2005, 3:19 PM 10807 in reply to 10801

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Try the following setting:
     
    <add name="CEHtmlEditorProvider"
            type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
            providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
            UseDNNRootImageDirectory="true"
            RemoveServerNamesFromUrl="true"
            UseRelativeLinks="true"
         RenderRichDropDown="true"
         UseSimpleAmpersand="false"
         CustomCulture=""
         ThemeType="Office2003_BlueTheme"
         DisableAutoFormatting="false"
         BreakElement="br"
         EditorWysiwygModeCss="1.css"
         EditorBodyStyle=""
         Admin_AutoConfigure = "Full"
         Admin_SecurityPolicyFile = "admin.config"
         Admin_TemplateItemList = ""
         Admin_DisableItemList = ""
         Admin_AllowPasteHtml  ="true"
         Admin_EditorOnPaste  = "default"
         Admin_ReadOnly = "false"
         Admin_ShowBottomBar ="true"
         Admin_ShowHtmlMode  ="true"
         Admin_ShowPreviewMode  ="true"
         Admin_EnableStripScriptTags  ="false" 
         Admin_EnableContextMenu    = "true"
         Admin_EnableContextMenuEditing  = "true"  
         Admin_EnableContextMenuFormat   = "true"
         Admin_EnableContextMenuInsert  = "true"
         Admin_EnableContextMenuInsertAdvanced  = "true"
         Admin_EnableContextMenuInsertFiles = "true"
         Admin_EnableContextMenuInsertForms = "true"
         Admin_EnableContextMenuRelative = "true"
         Admin_EnableContextMenuTags = "true"
         Admin_EnableContextMenuVerbs = "true"          
         
         Registered_AutoConfigure = "Simple"
         Registered_SecurityPolicyFile = "default.config"
         Registered_TemplateItemList = ""
         Registered_DisableItemList = ""
         Registered_AllowPasteHtml  ="true"
         Registered_EditorOnPaste  = "default"
         Registered_ReadOnly = "false"
         Registered_ShowBottomBar ="true"
         Registered_ShowHtmlMode  ="true"
         Registered_ShowPreviewMode  ="true"
         Registered_EnableStripScriptTags  ="false" 
         Registered_EnableContextMenu    ="true" 
         Registered_EnableContextMenuEditing  = "true"  
         Registered_EnableContextMenuFormat   = "true"
         Registered_EnableContextMenuInsert  = "true"
         Registered_EnableContextMenuInsertAdvanced  = "true"
         Registered_EnableContextMenuInsertFiles = "true"
         Registered_EnableContextMenuInsertForms = "true"
         Registered_EnableContextMenuRelative = "true"
         Registered_EnableContextMenuTags = "true"
         Registered_EnableContextMenuVerbs = "true"   
         
         Guest_AutoConfigure = "Simple"
         Guest_SecurityPolicyFile = "default.config"
         Guest_TemplateItemList = ""
         Guest_DisableItemList = ""
         Guest_AllowPasteHtml  ="true"
         Guest_EditorOnPaste  = "default"
         Guest_ReadOnly = "false"
         Guest_ShowBottomBar ="true"
         Guest_ShowHtmlMode  ="true"
         Guest_ShowPreviewMode  ="true"
         Guest_EnableStripScriptTags  ="false" 
         Guest_EnableContextMenu    ="true"  
         Guest_EnableContextMenuEditing  = "true"  
         Guest_EnableContextMenuFormat   = "true"
         Guest_EnableContextMenuInsert  = "true"
         Guest_EnableContextMenuInsertAdvanced  = "true"
         Guest_EnableContextMenuInsertFiles = "true"
         Guest_EnableContextMenuInsertForms = "true"
         Guest_EnableContextMenuRelative = "true"
         Guest_EnableContextMenuTags = "true"
         Guest_EnableContextMenuVerbs = "true"  
         
         Test_AutoConfigure = "Simple"
         Test_SecurityPolicyFile = "default.config"
         Test_TemplateItemList = ""
         Test_DisableItemList = ""
         Test_AllowPasteHtml  ="true"
         Test_EditorOnPaste  = "default"
         Test_ReadOnly = "false"
         Test_ShowBottomBar ="true"
         Test_ShowHtmlMode  ="true"
         Test_ShowPreviewMode  ="true"
         Test_EnableStripScriptTags  ="false" 
         Test_EnableContextMenu    ="true"  
         Test_EnableContextMenuEditing  = "true"  
         Test_EnableContextMenuFormat   = "true"
         Test_EnableContextMenuInsert  = "true"
         Test_EnableContextMenuInsertAdvanced  = "true"
         Test_EnableContextMenuInsertFiles = "true"
         Test_EnableContextMenuInsertForms = "true"
         Test_EnableContextMenuRelative = "true"
         Test_EnableContextMenuTags = "true"
         Test_EnableContextMenuVerbs = "true"        

         Content_Managers_AutoConfigure = "Simple"
         Content_Managers_SecurityPolicyFile = "default.config"
         Content_Managers_TemplateItemList = ""
         Content_Managers_DisableItemList = ""
         Content_Managers_AllowPasteHtml  ="true"
         Content_Managers_EditorOnPaste  = "default"
         Content_Managers_ReadOnly = "false"
         Content_Managers_ShowBottomBar ="true"
         Content_Managers_ShowHtmlMode  ="true"
         Content_Managers_ShowPreviewMode  ="true"
         Content_Managers_EnableStripScriptTags  ="false" 
         Content_Managers_EnableContextMenu    ="true"  
         Content_Managers_EnableContextMenuEditing  = "true"  
         Content_Managers_EnableContextMenuFormat   = "true"
         Content_Managers_EnableContextMenuInsert  = "true"
         Content_Managers_EnableContextMenuInsertAdvanced  = "true"
         Content_Managers_EnableContextMenuInsertFiles = "true"
         Content_Managers_EnableContextMenuInsertForms = "true"
         Content_Managers_EnableContextMenuRelative = "true"
         Content_Managers_EnableContextMenuTags = "true"
         Content_Managers_EnableContextMenuVerbs = "true"   
            />
     
    Also please check your DotNetNuke.CEHtmlEditorProvider.dll, the version # should be 1.0.2082.18766.
     
     

    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

  •  09-20-2005, 3:28 PM 10809 in reply to 10807

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    I checked the version. It is the same. I replaced my code in the web.config file with the code you posted. Now I get this error.
     
    A critical error has occurred.
    Check your provider configuration for errors! Could not find file "C:\Develop\DNN_3.1.0\1.css".
  •  09-20-2005, 3:31 PM 10811 in reply to 10809

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Sorry, please remove this line:
     
    EditorWysiwygModeCss="1.css"
     
     

    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

  •  09-20-2005, 4:13 PM 10821 in reply to 10811

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Thank you, I think this solution will work.
  •  10-12-2005, 1:19 AM 11662 in reply to 10821

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Hi, I am having pretty much the exact same issue, but was unable to resolve the issue with the suggestions provided here.  Note the following wrinkle:  this problem only occurs on one of the child portals in my installation.  The other portals all work fine.  This child portal does have several users/roles that do not exist for any of the other portals, so I suspect that this is part of the problem.  However, even when I log in as a host super user the menus won't show up properly in the problem portal. 
     
    Any suggestions?
  •  10-12-2005, 1:38 AM 11663 in reply to 11662

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Try:

    Add the following code into your web.config:

    In this example, the role name is "NewRoleName"
     
         NewRoleName_AutoConfigure = "Full"
         NewRoleName_SecurityPolicyFile = "default.config"
         NewRoleName_TemplateItemList = ""
         NewRoleName_DisableItemList = ""
         NewRoleName_AllowPasteHtml  ="true"
         NewRoleName_EditorOnPaste  = "default"
         NewRoleName_ReadOnly = "false"
         NewRoleName_ShowBottomBar ="true"
         NewRoleName_ShowHtmlMode  ="true"
         NewRoleName_ShowPreviewMode  ="true"
         NewRoleName_EnableStripScriptTags  ="false" 
         NewRoleName_EnableContextMenu    ="true"  
         NewRoleName_EnableContextMenuEditing  = "true"  
         NewRoleName_EnableContextMenuFormat   = "true"
         NewRoleName_EnableContextMenuInsert  = "true"
         NewRoleName_EnableContextMenuInsertAdvanced  = "true"
         NewRoleName_EnableContextMenuInsertFiles = "true"
         NewRoleName_EnableContextMenuInsertForms = "true"
         NewRoleName_EnableContextMenuRelative = "true"
         NewRoleName_EnableContextMenuTags = "true"
         NewRoleName_EnableContextMenuVerbs = "true"    
     
    Keep me posted.
     
     

    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

  •  10-12-2005, 1:24 PM 11680 in reply to 11663

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Your suggestion did the trick.  Thx
  •  10-14-2005, 3:40 PM 11739 in reply to 11663

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    I am having a similar issue.  The editor was working before the upgrade now after the upgrade the administrator and host users are seeing the full editor as before but any other  registered user who also has at least one other portal specific role (eg editor) is only getting to see the "bold|Italic|Left|Center|Right" menu unless I include a set of entries in the web.config for every role they are a member of. 

    If we have to do this it is going to make the web.config huge as in our setup we have about 4 different editor roles and then we have 10 other portals running off the same codebase all with a similar number of editor roles. Only a few of which overlap with the same name.  Also how do the different settings work out any conflicts?

    Antony
  •  10-17-2005, 9:06 PM 11781 in reply to 11739

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Antony,

    You can remove most of settings.  Then CuteEditor will use the default configurations.

    For example:
    <add name="CEHtmlEditorProvider"
            type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
            providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
            UseDNNRootImageDirectory="true"
            RemoveServerNamesFromUrl="true"
            UseRelativeLinks="true"
         RenderRichDropDown="true"
         UseSimpleAmpersand="false"
         CustomCulture=""
         ThemeType="Office2003_BlueTheme"
         DisableAutoFormatting="false"
         BreakElement="br"
         EditorWysiwygModeCss="1.css"
         EditorBodyStyle=""
         Admin_AutoConfigure = "Full"
         Admin_SecurityPolicyFile = "admin.config"
         Admin_TemplateItemList = ""
         Admin_DisableItemList = ""
         Admin_AllowPasteHtml  ="true"
         Admin_EditorOnPaste  = "default"
         Admin_ReadOnly = "false"
         Admin_ShowBottomBar ="true"
         Admin_ShowHtmlMode  ="true"
         Admin_ShowPreviewMode  ="true"
         Admin_EnableStripScriptTags  ="false" 
         Admin_EnableContextMenu    = "true"
         Admin_EnableContextMenuEditing  = "true"  
         Admin_EnableContextMenuFormat   = "true"
         Admin_EnableContextMenuInsert  = "true"
         Admin_EnableContextMenuInsertAdvanced  = "true"
         Admin_EnableContextMenuInsertFiles = "true"
         Admin_EnableContextMenuInsertForms = "true"
         Admin_EnableContextMenuRelative = "true"
         Admin_EnableContextMenuTags = "true"
         Admin_EnableContextMenuVerbs = "true"          
         
         Registered_AutoConfigure = "Simple"
         Registered_SecurityPolicyFile = "default.config"
         Registered_TemplateItemList = ""
         Registered_DisableItemList = ""
         Registered_AllowPasteHtml  ="true"
         Registered_EditorOnPaste  = "default"
         Registered_ReadOnly = "false"
         Registered_ShowBottomBar ="true"
         Registered_ShowHtmlMode  ="true"
         Registered_ShowPreviewMode  ="true"
         Registered_EnableStripScriptTags  ="false" 
         Registered_EnableContextMenu    ="true" 
         Registered_EnableContextMenuEditing  = "true"  
         Registered_EnableContextMenuFormat   = "true"
         Registered_EnableContextMenuInsert  = "true"
         Registered_EnableContextMenuInsertAdvanced  = "true"
         Registered_EnableContextMenuInsertFiles = "true"
         Registered_EnableContextMenuInsertForms = "true"
         Registered_EnableContextMenuRelative = "true"
         Registered_EnableContextMenuTags = "true"
         Registered_EnableContextMenuVerbs = "true"   
         
         Guest_AutoConfigure = "Simple"
         Guest_SecurityPolicyFile = "default.config"
         Guest_TemplateItemList = ""
         Guest_DisableItemList = ""
         Guest_AllowPasteHtml  ="true"
         Guest_EditorOnPaste  = "default"
         Guest_ReadOnly = "false"
         Guest_ShowBottomBar ="true"
         Guest_ShowHtmlMode  ="true"
         Guest_ShowPreviewMode  ="true"
         Guest_EnableStripScriptTags  ="false" 
         Guest_EnableContextMenu    ="true"  
         Guest_EnableContextMenuEditing  = "true"  
         Guest_EnableContextMenuFormat   = "true"
         Guest_EnableContextMenuInsert  = "true"
         Guest_EnableContextMenuInsertAdvanced  = "true"
         Guest_EnableContextMenuInsertFiles = "true"
         Guest_EnableContextMenuInsertForms = "true"
         Guest_EnableContextMenuRelative = "true"
         Guest_EnableContextMenuTags = "true"
         Guest_EnableContextMenuVerbs = "true"
      
            />
     
    Keep me posted.
     
     

    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

  •  10-18-2005, 9:14 AM 11794 in reply to 11781

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Hi Adam
    I don't think I explained my self clear enough.

    Prior to the recent upgrade in the web config we had 3 groups of settings in the CEHtmlEditorProvider section for Admin, Registered & Guest.  In the various portals we have about 40 roles that can edit parts of the portals these users are all registered users but also are members of various other roles each with it own portal specific role (eg. hreditor, fineditor, newseditor etc) that is used to allow the editing of specifc content some users have a combination of roles.  Prior to the upgrade if someone with one or more of the editor roles went into say a text module that they were allowed to edit, they would see the editor configured per the settings in the web.config for 'Registered_...'.

    After upgrading all these same users when they go into the same module it allows them to edit but the editor only shows 'bold|Italic|Left|Center|Right', which appears to be the toolbars in the 'Light.config' though the Auto configure settings in the web.config only refer to Full & Simple. 

    Now if I go and add a section in the web.config like the 'Registered' section for EVERY role the user is a member of, they will then see the full editor.  This means even after using the trimmed down settings we have to add 40 entries to the web.config and also add an entry each time a portal administrator adds another role that could be used for editing.  The result is a loss of control for the portal admins and increased overhead for support.

    Whilst it is nice to be able to granular control in the editor configuration we don't want to be forced into doing it for every role under every portal.  We still want the config to operate as it did before where we could include the 3 lots of config items like your example and if someone is a Registered User, but not an administrator they would pick up the 'registered_...' settings even if they were also members of other roles which allowed them to edit a module.

    Hope this clarifies things.

    Antony
  •  10-18-2005, 1:04 PM 11805 in reply to 11794

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    I agree that the granularity is a big improvement, but there is this one major shortcoming.
     
    A way around it is to allow the security to default or float to the nearest match. For instance I am a member of security groups  2, 3 and 4. If groups 1 and 2 were defined in web.config I should get the first match (group 2) as my security level instead of defaulting back to Guest because groups 3 and 4 aren't defined.

    Likewise if only group 5 was defined, I should default back to guest.
     
  •  10-18-2005, 2:56 PM 11814 in reply to 11805

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Antony and dmbrubac,

    Yes, what your guys said makes good sense.

    I am working on this issue and will get back to your guys as soon as possible.

     

    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

  •  10-18-2005, 3:30 PM 11816 in reply to 11814

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Adam
    Been thinking a bit about this and for what its worth here are my suggestion:

    if User has role Administrator or SuperUser then
        Use Admin_... settings
    elseif (User has Role specified as an editor for module) AND (Role has settings in config)
        Use Specific Role settings
    elseif User has Registered User role then
        Use Registered_... settings
    else
        Use Guest_... settings
    End

    The problem with the above is that if there is more than 1 Role (other than Admin/SuperUser) specified as an editor for a module a conflict could occur.  However, on the other side looking through our portals we don't have any modules with more than 1 Editor role.

    Any way my 2 cents

    Antony
  •  10-18-2005, 4:10 PM 11818 in reply to 11816

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Anotony,
     
    Thanks for the input.
    Please download the latest provider from here:
     
     
     

    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

  •  10-19-2005, 10:04 AM 11836 in reply to 11818

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Adam
    OK that works.  I take it works like the old one?
    Thanks
    Antony
  •  10-19-2005, 12:06 PM 11841 in reply to 11836

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Antony,
     
    Yes, If the user belongs to Role A, Role B and Role C, the editor will check the Role A setting first.

    If the Role A setting is defined in the web.config, the Role A setting will apply to the current user.

    If not, the editor will check the Role B setting.

    If the Role B setting is defined in the web.config, the Role B setting will apply to the current user.

    ................

    If the editor can't find the setting at all, the Guest setting will apply to the current user.

    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

  •  10-20-2005, 8:38 AM 11876 in reply to 11841

    Re: DNN3.1.0 Trouble with Toolbar and Roles

    Adam
    With the sorting of roles I take it that it is Alphabetical and not by Role ID?

View as RSS news feed in XML