我正在使用一個文本編輯器,它將顯示在一個添加form.I通過ajax加載表單。當我點擊添加按鈕添加表單將加載在ajax.Now問題是我的HTML文本編輯器腳本文件沒有在我的ajax表單中加載。單獨顯示簡單的文本區域。 如何在ajax表單中加載文本編輯器,請指教我。html文本編輯器沒有以ajax的形式顯示
這是我使用
<script type='text/javascript'>
var j = jQuery.noConflict();
j(function() {
j("#Textarea1").htmlarea({
toolbar: ["html", "|",
"forecolor",
"|", "bold", "italic", "underline", "|", "p", "h1", "h2", "h3", "|", "link", "unlink"] // Overrides/Specifies the Toolbar buttons to show
});
});
</script>
<textarea id="Textarea1" cols="50" rows="15"><p><h3>Another TextArea</h3>This is some sample text to test out the <b>WYSIWYG Control</b>.</p></textarea>
你能提供一些代碼嗎? –