我正在嘗試使用tinymce文本編輯器,但無法使用jQuery獲取編輯器的內容,並且如果我使用簡單的post方法獲取值,我獲取文本,但沒有獲取圖片?如何從tinymce編輯器插入圖像?
我使用jQuery嘗試的代碼是:
$(document).ready(function()
{
$("#save").click(function()
{
$.post("test_skin_dump.php",{
data_info:$("#elm2").html;
} ,function(data) {
if(data)
{
$("#show_result").html(data);
}
});
});
});
<textarea id="elm2" name="elm2" rows="15" cols="80" style="width: 80%">
</textarea>
我在做什麼錯誤可能有人糾正我,好嗎?