WikiMate is a sectional wiki content editor inspired by Smallest-Federated-Wiki project.
http://xli.github.com/wikimate/
- Double click to create/edit a section
- Default section type is Markdown
$('#wiki').wikimate({
// Story is a Javascript Array that contains story items
// see the Data Structure section for details
story: [... story items ...],
// Callback when a change action happened (add, edit/delete story item)
change: function(event, action) {
// save the action as you need
save(action)
// get the updated story.........
var newStory = $('#wiki').wikimate('story');
.........
}
});
// Journal is a Javascript Array that contains action objects
// see the Data Structure section for details
var journal = ...
$('#wiki').wikimate('journal', journal);
// To get the up-to-date journal
var newJournal = $('#wiki').wikimate('journal');
More Details: https://github.com/xli/wikimate/wiki
https://github.com/downloads/xli/wikimate/wikimate-0.1.zip
See examples/package_demo.html for how to use wikimate in your application.
rake
Or
make build
A dist directory will be created with everything inside. A packaged_demo.html is also inside dist directory for how to use.
JavaScript:
- jquery-1.7.2.js
- underscore-1.3.1.js
- jquery-ui-1.8.18.custom.min.js for image plugin
- diff.js for journal module
- tiny_mce 3.4.9 for rdoc plugin
- showdown.js for markdown plugin
Package:
- jshint & uglifyjs