Javascript to format multiple page text into a tab section in SharePoint online modern page

Asuri Spandana 20 Reputation points

Hello Team, Can you please help me with a sample javascript code which can be placed in custom content editor webpart which will link to multiple page text to convert the individual page text to tab section UI i.e easy tabs format in SharePoint online page

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
942 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,805 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor

    Hi @Asuri Spandana,

    As far as I know, SharePoint online modern page will not support content editor webpart. As a workaround, I would recommend you to use spfx to custom web part. You could refer to the following steps to create the solution

    Here is the sample for more function

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.