스택 오버 플로우는 어떻게 입력하는 것을 어떻게 반영합니까?
문제
지금이 입력하는 동안 편집기 아래에 미리보기가 있습니다. 비슷한 일을하고 싶습니다. 스택 오버플로는 어떻게 이렇게합니까?
해결책
그들은 호출 된 HTML 편집기를 사용합니다 WMD Markdown 편집기.
다른 팁
$(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);
});
});
제휴하지 않습니다 StackOverflow