How can we help you today?

How to Use the Import and Export Feature in ShortPoint Code Editor

The ShortPoint Code Editor Web Part features two convenient buttons that make it simple to add and reuse custom code across SharePoint pages. This article provides the steps on how to use the Import/Export feature.


TABLE OF CONTENTS


Prerequisites

  • Ensure the ShortPoint Code Editor Web Part is installed on your SharePoint site. For installation instructions, read our article on How to Install ShortPoint Code Editor in SharePoint.
  • You have the proper SharePoint permissions to edit the target Modern SharePoint page.

How to Import Custom Code

With one click of the Import button you can quickly add a copied custom code into the free ShortPoint Code Editor Web Part.

Step-by-step instructions

  1. Prepare your custom code and copy it to your clipboard.
  2. Edit the SharePoint page.
  3. Insert the ShortPoint Code Editor Web Part.
  4. Click Import. This will automatically populate your code into the appropriate HTML, CSS, and JavaScript fields.
  5. Modify or adjust settings.
  6. Republish the page to save the changes.


Import button



Note: When you click Import, a notification will appear asking if you want to overwrite the existing code in the ShortPoint Code Web Part. This safeguard prevents accidental code overwrites. Click OK to proceed with importing. 

overwrite notification

A confirmation message will appear once the code has been imported successfully. Hit OK to close the dialogue. import complete



How to Export Custom Code

You can reuse custom code from one SharePoint page on other pages by using the Export feature.

Step-by-step instructions

  1. Edit the SharePoint page that contains your existing custom code.
  2. Click the Edit properties button in the ShortPoint Code Editor Web Part.
  3. Click Export. This will automatically copy all HTML, CSS, and JavaScript code from the Code web part to your clipboard.
  4. Follow the import instructions above to add this code to your target page.
  5. Republish the page to save the changes.


Export code


With this time-saving feature, you can easily reuse custom code across any SharePoint page where the ShortPoint Code Editor Web Part is installed.


Related articles:



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 6 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more