X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d1bd1848c105947324cefb846d2d122a473c7643..12a9797c590b49173a88c40b0ab705b68b81224a:/src/wlxml/extensions/list/list.js

diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js
index 1404259..2487107 100644
--- a/src/wlxml/extensions/list/list.js
+++ b/src/wlxml/extensions/list/list.js
@@ -22,6 +22,13 @@ extension.wlxmlClass.list.methods = {
     }
 };
 
+extension.wlxmlClass.list.transformations = {
+    extractAllItems: function() {
+        var contents = this.contents();
+        return this.document.extractItems({item1: contents[0], item2: _.last(contents)});
+    }
+};
+
 extension.document.methods = {
     areItemsOfSameList: function(params) {
         return params.node1.parent().sameNode(params.node2.parent()) && params.node2.parent().is('list');