Editing wide tables in AEM Guides Editor 2.0

✨ This content is AI generated and could be inaccurate. Generative AI Terms

This article explains how to resolve difficulties editing wide tables in AEM Guides Editor 2.0, where the editor page cannot be widened as in previous versions.

Description description

Environment

Adobe Experience Manager (AEM) Guides Editor 2.0 on Windows and Mac, using the Chrome browser.

Symptoms

  • Table content is truncated and difficult to view or edit when working with wide tables in Editor 2.0.
  • The editor does not allow widening the page, a feature available in Editor 1.0, making it challenging to work with extra wide tables.
  • The issue occurs on both Windows and Mac operating systems in the Chrome browser.
  • Using the lock feature scales the table to fit the page, but this must be done manually each time.
  • Custom scrollbar implementations may result in text that is not clearly readable.

No error messages are shown; the issue is related to the editor’s layout and usability for wide tables.

Cause

The default layout of AEM Guides Editor 2.0 uses a fixed-width, centered column, restricting the visible area for wide tables. The ability to widen the editor page, available in Editor 1.0, is not present by default in Editor 2.0. Custom CSS can override this behavior to restore full-width editing.

Resolution resolution

Follow the steps below to resolve the issue.

  1. Apply a custom stylesheet to override editor width.

    • Use the AEM Guides Extension Framework to deploy a custom stylesheet.

    • Create a cq:ClientLibraryFolder in your codebase.

    • Add the following property to the folder:

      • Name: categories
      • Type: String[ ]
      • Value: apps.fmdita.xml_editor.page_overrides

    Add a CSS file (for example, guides-extension.css) under this folder with the following content:

    code language-css
    /*
     * Author view (Editor 2.0): OOTB uses a fixed 50rem centered column.
     * Use full width on wide / full-screen layouts.
     */
    .xml-markup-author-view .author-page {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    

    Create a css.txt file in the same folder and add the CSS filename (for example, guides-extension.css) to it.

  2. Deploy and test the customization.

    • Deploy the client library using the AEM Guides Extension Framework as described in the Editor Extension Framework documentation.
    • Test the editor to confirm that wide tables are now fully visible and the authoring area uses the available screen width.
  3. Alternative workarounds

    • If custom scrollbars are implemented at the table level, ensure that text readability is not compromised. Adjust CSS as needed to improve clarity.
    • The lock feature can be used as a manual workaround to fit tables to the page, but this does not persist across sessions.
recommendation-more-help
experience-cloud-kcs-help-kbarticles