tinymce
のインスタンスをdiv
からid invoice_edit_modal
に削除する必要があります。TinyMce:idでエディタインスタンスを削除
var productCommentsFields = $('#invoice_edit_modal .product_comment');
productCommentsFields.each(function(i, obj) {
var commentOldId = $(this).attr('id');
tinymce.remove('#invoice_edit_modal #'+commentOldId);
});
しかし、それは動作しません: 私のコードは、(私はクラス.product_comment
ですべてtextareas
を取得し、その後、私はそれらを削除しようとする)です。 この問題を解決するにはどうすればよいですか?おかげさまで