Fixing The Rich Text Editor Modal In Sitecore

September 18, 2021

By David Austin

Fixing The Rich Text Editor Modal In Sitecore

In Sitecore, depending on your screen size as well as whether you have your browser zoomed-in, you may have seen a circumstance occur where, when a Rich Text Editor either in the Experience Editor or Content Editor, you can't see the Accept or Reject buttons at the bottom of the screen. It may look something like the following.

Sitecore rich text field with design and html tabs.

The modal that the editor popus up in is just ever so slightly out of frame. Add in the scroll bars aren't always present and you're stuck, unless you know how to zoom out. Why doesn't the modal doesn't automatically adjust to the size of the window? Good question.

Let's fix it.

The Fix

Now sadly there is no simple patch file I can provide to resolve this issue. You actually have to open up the following file and edit it directly.

Open file: /sitecore/shell/Controls/Rich Text Editor/EditorPage.aspx

Look for the following bit of code, it'll be right near the top.

<!DOCTYPE html>
<html style="overflow: hidden; width: 100%; height: 100%">
<head runat="server">
    <title>Sitecore</title>

Change the overflow parameter in the <html> tag from hidden to auto, as shown below.

<html style="overflow: auto; width: 100%; height: 100%">

Happy editing!

Image of Fishtank employee David Austin

David Austin

Development Team Lead | Sitecore Technology MVP x 3

David is a decorated Development Team Lead with Sitecore Technology MVP and Coveo MVP awards, as well as Sitecore CDP & Personalize Certified. He's worked in IT for 25 years; everything ranging from Developer to Business Analyst to Group Lead helping manage everything from Intranet and Internet sites to facility management and application support. David is a dedicated family man who loves to spend time with his girls. He's also an avid photographer and loves to explore new places.