4

これを入力している間、エディタの下にプレビューが表示されます。私は似たようなことをしたいと思います。スタックオーバーフローはこれをどのように行いますか?

4

2 に答える 2

8

彼らは、 WMD Markdown Editorと呼ばれる HTML エディターを使用します。

于 2009-09-25T14:11:51.517 に答える
1
$(function(){
    // whenever the text in the editor box changes:
    $("#editorTextArea").change(function(){
        // add the text to the preview box below
        // this certainly involves some formatting/marking up of the text
        // but this is good enough for illustrative purposes
        $("#previewBox").val(this.value);
    });
});
于 2009-09-25T14:12:59.477 に答える