Web Editor
The Web Editor is a great way for anyone to get started routing without having to install any software (if your browser supports it.. check below!)
Browser/OS support
Unfortunately, the support for browsers to access files on your PC has been stuck for decades. It also depends on your Operating System.
Google Chrome and Microsoft Edge are the known browsers that work. Firefox is known to not work.
If you use something else, continue below to see if it's supported.
Open a project
A project is a folder on your PC. Follow the steps to open a project.
TIP
You can choose any folder if you are just testing. Or, skip ahead to this section where step-by-step instructions are given for creating a minimal project folder.
- Click on
Open project
on the Toolbar and select the project folder.
TIP
Alternatively, drag and drop the folder into the "Drag and drop a project folder here to open it" box.
- If asked for permissions to read and write to the file system, grant the permission.
- If you see any error, follow the instruction in the error message.
- You should be able to see the content of the folder listed if everything worked.
TIP
If you didn't open an actual Celer project, you will see the route fails to compile. This is expected and it's OK!
File Tree
The file listing on the right of the editor is the File Tree. You can click on a folder to expand/collapse it. Clicking on a file will let you edit that file.
You can hide the file tree in the settings (if it's taking too much space or some other reason):
- Click on
Settings
on the Toolbar. - Select the
Editor
category. - Under
Web Editor
. Use theShow file tree
switch to toggle the feature.
Saving to file system
If you have unsaved changes, you will see a "*" next to the file name. Click on Save
on the Toolbar to save the changes, or press Ctrl + S
.
By default, changes are automatically saved the changes when you stop typing. You can enable/disable it in the settings:
- Click on
Settings
on the Toolbar. - Select the
Editor
category. - Under
Web Editor
. Use theAuto-save
switch to toggle the feature.
WARNING
If the file is also edited outside of the web editor, those changes may be lost when saving!
Loading from file system
If you made changes in the files outside of the web editor, you can load the changes by clicking on the Load from file system
button on the Toolbar.
One example is creating a new file or folder from the operating system (since the web editor doesn't support creating new files).
TIP
Changes will only be loaded if the same file is not also edited in the web editor.
Unsupported operations
If you need to do any of the following:
- Moving files between folders
- Deleting a file or folder
The recommendation is to close the project (by clicking on Close project
or refresh the browser) , make the change from your operating system, then reopen the project.
Compiling the route
Whenever you stop typing, the route should automatically recompile. The icon will spin when the compiler is running. You can also click on it to manually trigger a compilation.