我想在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