Overview
In this article, we will explain how to grant role-based upload access to the CKEditor using only the Database access and the XML configuration file.
This procedure is very useful when the customer doesn't have access to the HTML Editor Manager.
Prerequisites
- Access to a SuperUser account.
- Access to the DNN File structure.
Solution
- Open the SQL Console.
- Run the following query.
select RoleID from Roles where RoleName like '<RoleName>'
- Replace <RoleName> with the name of the role that you want to grant access to the CKEditor.
- Run the following query.
INSERT INTO CKE_Settings (SettingName, SettingValue) VALUES ('DNNCKP#<PortalId>#<RoleID>#uploadfileRoles#', -1)
- Replace <PortalId> with your PortalID.
- Replace <RoleID> with the ID collected on step 2.
- Clear the server cache.
- Access the Windows Server that host the DNN portal.
- Navigate to your portal folder and go to the folder containing the portal that you want to edit. (RootFolder/Portal folder/Portal ID folder)
- Open the Dnn.CKEditorSettings.xml file.
- Search for the following string for your role, for example the Administrator role"<BrowserRoles>0;Administrators;</BrowserRoles>".
- Append the RoleID to the BrowserRoles node.
- Example, if the role that you want to add has Role ID 4; Your node should look like this:
<BrowserRoles>0;Administrators;4;</BrowserRoles>
- Example, if the role that you want to add has Role ID 4; Your node should look like this:
- Save the file.
- Access the CKEditor using the updated role to make sure that the change was correctly applied.
Testing
- Access any account that is in the role that you've provided access to.
- Go to Edit mode and Edit an HTML Pro module.
- Go to Advanced Editor.
- Click Upload File
If you are able to upload a file, that means the above solution was successful.
Comments
0 comments
Please sign in to leave a comment.