Overview
This article provides the steps to set the Advanced Editor as the default view when editing an HTML module. This workaround is used for users that would like to bypass the default inline editor to display the advanced editor only.
Prerequisites
- DNN Portal folder access
- Access to a Content Editor account or a SuperUser account.
- Make sure Popups are enabled (see bottom note in Testing).
Diagnosis
By default, DNN will open the standard HTML editor when clicking on an asset to modify:
Clicking on the advanced editor button will open it in a pop up:
Customers may, however, want to change this behavior to have the advanced editor open by default when clicking to modify an asset.
NOTES:
- This should work with the RadEditor and the CKEditor as it is the HTMLModule.ascx file that is being modified and not the specific provider files.
- Upgrading DNN will overwrite this modification, and the process will need to be redone.
Solution
- Go to your
PortalRoot\DesktopModules\HTML
folder and backup the original HtmlModule.ascx file located there. - Download and extract the HtmlModule.rar folder.
- Copy and paste the HtmlModule.ascx file from the extracted folder into the
PortalRoot\DesktopModules\HTML
folder.
Testing
To test that this change has been successful:
- Log in to your DNN instance.
- Click the Edit Mode button in the lower left-hand corner.
- Validate the change by clicking an HTML module. If successful, you will see the advanced editor pop up rather than the inline editor.
Note:
If you receive errors after applying this fix, please check if popups are enabled for your site by going into Settings > SQL Console and running the query.
SELECT * FROM PortalSettings WHERE SettingName = 'EnablePopups'
Make sure Popups are enabled by updating the setting with the query below.
UPDATE PortalSettings SET SettingValue = 'True' WHERE SettingName = 'EnablePopups'
Comments
1 comment
I am noting here that despite setting the EnablePopups values to true for all portals, I still see a console error. In the code, the EditUrl() method is still returning a regular URL without a wrapping javascript javascript:dnnModal.show function.
Please sign in to leave a comment.