Modern CEWP by SPJS

Last updated: September 20, 2019 – v1.0.0.1

To ease the transition from classic to modern SharePoint experience in SharePoint online I have made a SPfx web part that replicates the behavior of the Content Editor Web Part.

It features a Content link and a HTML code option.

This is designed for Modern Pages in SharePoint online, and must be installed in the APP Catalog in the tenant administrator.

Download the web part here.

Post any questions below, or use the forum.


5 thoughts on “Modern CEWP by SPJS”

  1. Alex,

    Trying to use the Modern CEWP, but I am encountering “SCRIPT438: Object doesn’t support property or method’_renderView’. This is followed by HTTP403: FORBIDDEN – The server understood the request, but is refusing to fulfill it.

    Any help would be appreciated.

    Thanks, Frank

    1. Hi,
      I’m not sure exactly why this error is occurring, but the 403 message indicates that you don’t have the necessary rights to do whatever you are doing.

      If the web part has been installed and activated properly you can try with another user to see if it might be a permission issue.

      Are you trying to use it in SharePoint online or in on-premises installed SharePoint 2019? – it has only been tested in Office 365 because I only have access to that environment.


  2. Hi,

    as instructed here (, I created a new site via the admin panel and chose the “other option” in order to create a team site.

    The Installer_CEWP_code.html is displayed on the site but stuck on “Getting all lists in this site…” with the following error on the console:
    Uncaught ReferenceError: _spPageContextInfo is not defined at :4:26

    Am I still missing anything?


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.