more specific filtering for magicline plugin
to avoid false positives for other things which are non-contenteditable spanspull/1/head
parent
cae750cd75
commit
39fcd7dc4c
|
@ -48,7 +48,9 @@ define([
|
|||
var isNotMagicLine = function (el) {
|
||||
// factor as:
|
||||
// return !(el.tagName === 'SPAN' && el.contentEditable === 'false');
|
||||
var filter = (el.tagName === 'SPAN' && el.getAttribute('contentEditable') === 'false');
|
||||
var filter = (el.tagName === 'SPAN' &&
|
||||
el.getAttribute('contentEditable') === 'false' &&
|
||||
/position:absolute;border-top:1px dashed/.test(ml.getAttribute('style')));
|
||||
if (filter) {
|
||||
console.log("[hyperjson.serializer] prevented an element" +
|
||||
"from being serialized:", el);
|
||||
|
|
Loading…
Reference in New Issue