X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/3501d4ca6ca516663162da0cd2bd1e12b8491450..7b4405539ac7c11a11b5259b4f968e1289f0b2a7:/modules/documentCanvas/canvas.js?ds=inline diff --git a/modules/documentCanvas/canvas.js b/modules/documentCanvas/canvas.js index 5db5e78..80d3915 100644 --- a/modules/documentCanvas/canvas.js +++ b/modules/documentCanvas/canvas.js @@ -175,6 +175,16 @@ Canvas.prototype.removeList = function(options) { } +Canvas.prototype.insideList = function(options) { + if(options.pointer) { + if(options.pointer.klass === 'list-items' || options.pointer.klass === 'item') + return true; + var pointerElement = $(this.content.find('#' + options.pointer.id)); + return pointerElement.parents('list-items').length > 0; + } + return false; +} + return {Canvas: Canvas, Node: Node};