题
现在,当我输入此内容时,编辑器下方的预览会下方。我想做类似的事情。堆栈溢出如何做到这一点?
解决方案
他们使用的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