From 39fcd7dc4cc429e7edc43a6d38a91800321d7fff Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 17 May 2016 16:55:47 +0200 Subject: [PATCH] more specific filtering for magicline plugin to avoid false positives for other things which are non-contenteditable spans --- www/pad/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/pad/main.js b/www/pad/main.js index f9a5521bf..712d6e574 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -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);