https://github.com/binaryage/instaedit
https://github.com/binaryage/instaedit
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/binaryage/instaedit
- Owner: binaryage
- Created: 2012-05-21T19:21:40.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-19T02:37:25.000Z (over 13 years ago)
- Last Synced: 2025-05-27T16:49:50.636Z (8 months ago)
- Language: JavaScript
- Size: 2.21 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Instaedit - pixel perfect web editor
Instaedit is wysiwyg editor of your page content, designed for editing of websites based on github pages (like binaryage.com).
## Brief usage tutorial
### Markup origins of content on your site
Put data-content-origin attribute on top level element wrapping content of some of your site source code on github.
Eg.:
``
` Content of https://raw.github.com/binaryage/blog/gh-pages/_posts/2012-04-26-totalspaces-brings-back-grid-spaces.md`
``
# Add a content-script
Its a script which defines a way of applying changes. Code is executed in isolated scope with content variables defined in it - see content-script example - https://github.com/binaryage/instaedit/blob/master/demo/js/content-script.coffee - as you can see, coffee script is also supported, instaedit automatically recognizes the language by postfix - .coffee and .js.
And you should define it as a script
``
or meta in head
``
### Install a browser extension
You should install a browser extension because of restrictions in github api policy, if you want to just try instaedit, then you can add this code to your site

Copy from: https://github.com/binaryage/instaedit/blob/master/demo/index.html#L6
`Edit`
but you will loose a "commit" feature.
### Start editing
After clicking "Launch" button in extension

or Edit button on your site. You will see instaedit editor

### Edit a content-script
After clicking "Edit parser" button you will get another editor with your content script code in it. Editor will be informing you about syntax errors during editing. When you will be satisfied with new version then click "Apply" button. Instaedit compiler will compile the code and immediately start applying it on content - eventually you will can see you concrete mistakes in code via notifications on the right side of editor - like that

### Commit
If you want commit new version of site then click on commit button in extension. Extension will open tabs with "edit links" - as you can see here :

You should be signed to github and have appropriate privileges for editing. Extension will let you click on "Commit" button yourselves (you can check it one more time and make sure about changes)
### Still have troubles?
See our demo here - https://github.com/binaryage/instaedit/tree/master/demo
or feel free to contact me - jan@binaryage.com