Editing Files

Two different file editing modes (Content and Code) are offered in Central for content files (e.g., topic, snippet) and some project files (e.g., target, condition tag set, variable set). By default, files such as these open in an easy-to-use light-weight editor. The Edit Code tab is for advanced users who prefer to edit in XML code directly. Both modes of the editor are equipped with basic editing tools. Some files, such as page layouts, can be opened in the Edit Code tab only.

Permission Required?

Editing content and project files is an activity available to users with the Author status. By default, users with Author status have the following permissions set:

  • If this is deselected, then viewing files in a read-only mode is allowed. On the left side of the page, the Files vertical three-dot menu is not available.

  • If this is deselected, the XHTML in the Code view is read-only.

    Editing code is regarded as a capability for an advanced user. If not done properly, the code can become malformed quickly. Administrators can prevent users from editing the code by deselecting the Edit Code permission.

In addition, AI Assist involves the following permissions:

  • This is required to integrate a ChatGPT account with a Central license in the license settings.

  • This is required to use AI Assist (and therefore ChatGPT) when modifying topics and snippets.

    Note Even if this permission is enabled, ChatGPT does not scan anything on your computer. The only information ChatGPT can acquire from you is what you enter manually into the prompt when using AI Assist. If your company has strict policies against AI or ChatGPT, simply do not use it.

For more information about permissions, see Setting User Permissions or Setting Team Permissions.

How to Edit an Existing File

  1. On the left side of the Central interface, click Projects.

  2. Select a project to open it.

  3. Click the Files tab at the top of the screen.

  4. (Optional) From the drop-down at the top of the interface, you can select a branch for the edits. See Branching.

    Using the Files page you can expand folders and select a file to view or edit.

  5. From the left side of the page, expand the existing folders to navigate to a file.

  6. Select a file. It displays on the right side of the page.

    Using the Files page you can expand folders and select a file to view or edit.

  7. Click the Edit button. The preview area turns into an editor, and the options at the top of the editor change to Edit Content and Edit Code so that you can edit the content or markup. Use the toolbar to manage the content. See Editing Features.

    After selecting a file you can edit it in Content or Code mode.

    Note Alternatively, you can right-click the file, and from the context menu, select Edit. This also puts the Files page in editing mode.

    Note You can toggle between the editing modes at any time. If you switch and then close or commit a file, then the next time you open the editor, it opens to the last mode you left off.

  8. Click Commit. (Or click Cancel, to back out of the process.)

  9. In the Create New Commit dialog, verify the new file path, and enter a Commit Message.

  10. Click Commit.

Editing Features

[Mini-TOC Proxy — Online — Depth1]

What’s Noteworthy?

Note For the authoring feature to work properly, your project must be single-bound to Central as the primary source control provider. The authoring feature does not support dual-bound projects.

Note If an author needs to work with the project in Flare after it is created in Central—because advanced features are needed for the project—the user needs to (1) have access to the project, and (2) open Flare and import the project from Central. If additional changes are made in Flare or Central, the work would need to be synchronized between the local and remote repositories. See Creating Projects and Importing Projects.

Note Since Central is a remote repository, those who use Flare after changes are made in Central, need to synchronize their remote and local repositories. See Source Control.

  • Central side Content is authored and committed to the project in Central.

  • Flare side To interact with updated content in the Flare application, use source control to pull changes from the remote repository and sync it to the local repository.

During the synchronization process, keep the following in mind.

  • If two authors are editing the same file, at the same time, but one is working in Flare and the other is working in Central, then there may be conflicts when trying to synchronize the repositories. These conflicts can be resolved using the source control features in Flare.

  • If two authors are both working in Central and are simultaneously editing the same file, then the first person to commit the file has precedence. When the second person commits their file, they will be alerted to the issue and prompted to refresh to get the latest files.

Note Keep the following in mind when loading files:

  • The file size limit is 5 MB. This limitation helps prevent issues.

  • If changes approach the limit, a message warns you.
  • If edits exceed the size limit (or if the file starts out already over the limit), an error displays. If you are on the Content tab, the error is triggered when you attempt to commit the changes or switch to the Code tab.

  • If you are on the Content tab and see the error message, you can make edits to reduce the file size and then commit the changes.

  • If you are on the Code tab and see the error message, you can still edit the file and commit the changes, but you cannot switch to the Content tab.