[FIX] website: ignore SVG elements when looking for edition events in RTE

This commit is contained in:
Xavier Morel 2014-06-19 11:39:14 +02:00
parent 916a79184b
commit ab1406cd7c
1 changed files with 5 additions and 0 deletions

View File

@ -1988,6 +1988,11 @@
// a/@href, ...)
_(mutations).chain()
.filter(function (m) {
// ignore any SVG target, these blokes are like weird mon
if (m.target && m.target instanceof SVGElement) {
return false;
}
// ignore any change related to mundane image-edit-button
if (m.target && m.target.className
&& m.target.className.indexOf('image-edit-button') !== -1) {