什么是最好的JQuery WYSIWYM Textile编辑器? [英] What is the Best JQuery WYSIWYM Textile Editor?

查看:186
本文介绍了什么是最好的JQuery WYSIWYM Textile编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Textile(最好使用Markdown代替),并且正在寻找不错的WYSIWYM(而不是WYSIWYG),因为

I need to use a Textile (preferably instead of Markdown), and am looking for a nice WYSIWYM (not WYSIWYG, because of this) JQuery editor.

我看过这些:

  • WMD - Markdown, Stack Overflow uses it
  • MarkItUp - Textile support but I don't know if it's WYSIWYM
  • WYMEditor

哪个既支持HTML输出又很好的 Textile?

Which one supports both good HTML output and Textile?

更新:我现在仅使用Markdown,主要是因为它生成的语义html略多,并且被广泛采用.这样,您就可以使用 Cloud9 Ace编辑器(来自GitHub的资源),不仅可以实现降价,而且可以实现TextMate的所有功能.

Update: I only use Markdown now, mainly because it generates slightly more semantic html and it's much more widely adopted. That, and you can use the Cloud9 Ace Editor (source on GitHub) for not only markdown but everything TextMate does.

推荐答案

使用完全完整的 Textile.js JavaScript中精选的Textile解析器!

Use Textile.js which is a fully featured Textile parser in JavaScript!

用户可以在此处 http://borgar.github.com/textile-js/尝试使用Textile在线编辑器. a>

Use can try out the Textile live web editor here http://borgar.github.com/textile-js/

我将它与 Markitup

这是我的简单代码:

$(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);
};

这篇关于什么是最好的JQuery WYSIWYM Textile编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆