我使用上一篇文章中的以下代码来检测(大部分)对具有属性“contenteditable”的元素的更改。但遗憾的是,它不包括使用浏览器(Firefox)提供的表格行/列修饰符控件时发生的表格更改
$('[contenteditable]').live('focus', function() {
var $this = $(this);
$this.data('before', $this.html());
return $this;
}).live('blur keyup paste', function() {
var $this = $(this);
if ($this.data('before') !== $this.html()) {
$this.data('before', $this.html());
$this.trigger('change');
}
return $this;
});
如何更改此代码以包括对浏览器控件施加的更改的检测?