- Implemented load/save functionality.
- Rearranged the code.
- Updated the build file accordingly
Moved the build libraries to the downloads section of github
Download link in readme updated
Improved build script (no longer writing the minified version into the source but all into the build directory)
Created option 'change' to set a callback which is triggered when the contents are changed.
Renamed options 'enableSearch' and 'enableHistory' to 'search' and 'history' respectively.
Added parameter 'json' to the JSONFormatter constructor
Added option 'indentation' to the JSONFormatter.
Editor contents are now synched to the Formatter before saving to disk
Implemeted a timeout in the fileretriever and made it more robust.
Added notifications while loading and saving files.
Removed usage of hash to store url
Fix in saveFile, which appended an iframe to the body twice
Added a timeout to loadFile
Use query parameters instead of url hash
Screenshots updated
Screenshots updated
Added request header 'Accept: application/json' when retrieving files from url.
Fixed issue #19: retrieving the contents of the editor inside the change callback resulted in an infinite loop. Execution of the callback is done inside a try/catch loop now, to isolate the editor from errors in the callback.
Urls to the github project updated (changed username from wjosdejong to josdejong)