From: Aleksander Ɓukasz Date: Wed, 25 Jun 2014 11:49:28 +0000 (+0200) Subject: wlxml: lists take context root into account X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/921f2faac8f248c79b810ffb918aff8277af2e13?ds=sidebyside;hp=926f304f00fd207bb24cf5c354cf4533abdcac48 wlxml: lists take context root into account --- diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index 3ee65d4..7731616 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -111,7 +111,7 @@ extension.document.transformations.extractItems = { extractedItems = [], succeedingItems = [], items = list.contents(), - listIsNested = list.parent().is('item'); + listIsNested = list.parent().is('item') && !list.parent().isContextRoot(); items.forEach(function(item, idx) {