About the Local Editor

Note: This article refers to 2 different versions of the editor:

  • Regular Editor: The editor that's generally used to build Wix sites.
  • Local Editor: A specialized version of the Regular Editor that's used when developing a site in a local IDE.

The Local Editor is a tool for testing code added to a site in a local IDE using Git Integration & Wix CLI.

You can use the Local Editor to test code in real time and make changes to a site's design that you can sync with the IDE. For detailed instructions on this flow, see Test Code in the Local Editor.

Differences in the Local Editor

Working in the Local Editor is different from working in the Regular Editor. Please note the following changes:

  • The Publish button is replaced with the Save button.
  • Code files are read-only. To make changes to a site's code, use the local IDE.
  • Packages & Apps are read-only. To add, update, or delete packages and apps, use the local IDE.
  • The Wix IDE is disabled, use the local IDE instead.
  • If you duplicate a page on a site, the page's code isn't included in the copy.
  • Changes to collection fields are immediately reflected on the live site, even before you publish.

Making changes to site design

The Local Editor allows you to make changes to a site's design such as adding or modifying elements and pages. These changes generate a new UI version for the site which you need to sync with the IDE. Once the UI version is synced with the IDE, code files for newly added pages appear in the repo. Autocomplete is also enabled for any newly added page elements.

About UI versions

UI versions are snapshots of a site's design. Saving any design changes to a site including adding a new page or adding or modifying elements generates a new UI version. UI versions are generated in both the Local Editor and the Regular Editor. Wix uses UI versions to match the code in the IDE with a site's design. The current UI version for the code in a site's repo is indicated in the wix.config.json file.

Copy

See also

Did this help?