Forum Discussion

Anonymous's avatar
Anonymous
Nov 27, 2017

Is there a way to add a content editor web part to a modern page?

I know that you can create a web part page in the Site Pages library, I'm just wondering if there's a way to make it available on a modern page. It seems odd to me that Microsoft got rid of that web part... AND the script editor web part, both of which are highly used web parts. What is the reason for that?

4 Replies

  • I used this solution and it works well:

    http://www.constellationsolutions.com/how-to/sharepoint-modern-list-traffic-light-red-yellow-green-status-indicator-column/

    • Anonymous's avatar
      Anonymous

      If you take ALM in account this webpart would probably be better because you can manage your own sources seperately as seperate files and not embeded in another webpart.

      Read this: https://info.paitgroup.com/blog/perhaps-the-only-other-sharepoint-framework-web-part-you-will-ever-need, and the link to the github repository:  https://github.com/rob-windsor/ContentEditorSpfx

       

      This webpart uses SPFx 1.0 but you can easily upgrade this solution to SPFx 1.5.1 (latest version while writing) so you can make use of the 'skipFeatureDeployment' parameter which will allow you to scope this App Package tenant wide.

  • Anonymous's avatar
    Anonymous
    Don't have the answer for why, but they are eventually bringing that functionality possibly in future web part releases. However, it's fairly easy to create your own webparts to do alot of that functionality with the current spfx webparts without having to invest alot.

Resources