我想在TinyMCE的獲取textarea的價值與此元素,而不是標識符
$(".tooltip-empty-editor").each(function() {
if($.trim(tinymce.get(this).getContent()) == '') {
// .....
}
});
HTML
<textarea class="editor tooltip-empty-editor " name="modif" >....</textarea>
檢查空的textarea但這個我有錯誤tinymce.get(this).getContent()
與this
他期待一個ID。
我該如何使用這個with
tinymce來獲得textarea的價值?
您可以顯示工具提示在HTML textarea的關係? –
@TimVermaelen它是textarea元素中的一個類。我更新我的問題 – Youssef