X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b264c171a5885976ef8f077be37e7cc83bf8a0fd..213b1af47b5f2c279db50304d318eb972289e3aa:/project/static/js/lib/codemirror/util.js?ds=inline 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"; +}