X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b264c171a5885976ef8f077be37e7cc83bf8a0fd..0f2caec0a29deb23c912042b2f81473a2b9722e2:/project/static/js/lib/codemirror/util.js diff --git a/project/static/js/lib/codemirror/util.js b/project/static/js/lib/codemirror/util.js index 796025ee..0cd91d4e 100644 --- a/project/static/js/lib/codemirror/util.js +++ b/project/static/js/lib/codemirror/util.js @@ -123,3 +123,12 @@ function nodeTop(node) { } return top; } + +function isBR(node) { + var nn = node.nodeName; + return nn == "BR" || nn == "br"; +} +function isSpan(node) { + var nn = node.nodeName; + return nn == "SPAN" || nn == "span"; +}