X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b264c171a5885976ef8f077be37e7cc83bf8a0fd..b6a988bcb0532fa8bce3f1dab8862bb53ade7b3b:/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"; +}