Frage

Im Moment, während ich dies tippe, gibt es die Vorschau unter dem Editor. Ich würde gerne etwas Ähnliches tun. Wie macht der Stack -Überlauf das?

War es hilfreich?

Lösung

Sie verwenden einen HTML -Editor namens WMD Markdown Editor.

Andere Tipps

$(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);
    });
});
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top