I need to use a Textile (preferably instead of Markdown), and am looking for a nice WYSIWYM (not WYSIWYG, because of this) JQuery editor.
I\'ve seen these:
Use Textile.js which is a fully featured Textile parser in JavaScript!
Use can try out the Textile live web editor here http://borgar.github.com/textile-js/
I am using it in combination with Markitup
Here is my simple code:
$(document).ready(function () {
init();
});
function init() {
var $content = $('.markitup'); // my textarea
var $preview = $('#textile-preview'); // the preview div
$content.markItUp(mySettings); // init markitup
// use a simple timer to check if the textarea content has changed
var value = $content.val();
setInterval(function () {
var newValue = $content.val();
if (value != newValue) {
value = newValue;
$preview.html(textile.convert(newValue)); // convert the textile to html
}
}, 500);
};