X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/123b453a3cf4195c7a7b0133f740ea568af859a7..3dfe15d50b60598341b9754876db4a48162c5cd0:/src/editor/plugins/core/lists.js diff --git a/src/editor/plugins/core/lists.js b/src/editor/plugins/core/lists.js index 7a9d321..c6de730 100644 --- a/src/editor/plugins/core/lists.js +++ b/src/editor/plugins/core/lists.js @@ -12,6 +12,10 @@ var getBoundriesForAList = function(fragment) { } if(fragment instanceof fragment.NodeFragment) { node = fragment.node.getNearestElementNode(); + if(node.isContextRoot()) { + node = fragment.node; + } + return { node1: node, node2: node