Question

En ce moment, alors que je tape ce qu'il ya l'aperçu en bas de l'éditeur. Je voudrais faire quelque chose de similaire. Comment Stack Overflow faire?

Était-ce utile?

La solution

Ils utilisent un éditeur HTML appelé ADM Markdown Editor.

Autres conseils

$(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);
    });
});
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top