IMP!
Advanced usage
Force view or edit mode
By default, when you open IMP! page locally, it loads in edit mode, and when you load it over http, in view mode. But you can force mode by adding special hash to filename. Like this for view mode:
....filename.html#view
In the next versions (since 0.3) this will be changed to:
...filename.html?mode=view
And for edit mode:
....filename.html#edit
In the next versions (since 0.3) this will be changed to:
...filename.html?mode=edit
There is also button in editor, which will switch to view mode. Use "back" button of your browser to return to editor. Switching to view mode before saving will erase all changes you've made so far!
Markdown download link
Since version 0.3, you can add ?mode=download
to page URL, and this will force download of markdown version of the page. If you want to allow users to download markdown version, you may add this somewhere:
[Download this in markdown format](?mode=download)
Change location of imp.js file and/or main style file
This is done in Advanced settings section. You can enter alternative path to both files. For example, you can link editor script from CDN, in order to keep it always up-to-date:
https://cdn.jsdelivr.net/gh/girobusan/imp@latest/dist/imp.js
The same for style.css
(not recommended):
https://cdn.jsdelivr.net/gh/girobusan/imp@latest/dist/style.css
Update your IMP! page to new version
You have to update only editor file. On the next save the html will be updated too.