I do have a web part page in my communication site. I did activated the publishing feature of both site collection and site feature. But, I am not able to see content editor web part. Users want to add scripts
Here is the attached:
you are in a Modern site (Communication site).
By default, scripting is disabled, that why this kind of web part are not available. To get this webpart you need to allow custom script on the site.
To do that 2 solution,
OR
use PowerShell to allow script only on one site collecction with the cmdlets :
Set-SPOsite -DenyAddAndCustomizePages 0
To do that, you must havee GLobal admin persmission for SharePoint
Have a look at this link : Missing web part and features in office 365
I could reproduce this issue on my communication site.
As a workaround, you can open the site with SharePoint Designer 2013, find the page and edit it in Advanced Mode, then add your code under the line "<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
", like the below: