From d1bd1848c105947324cefb846d2d122a473c7643 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 1 Apr 2014 22:21:26 +0200 Subject: [PATCH 1/1] wlxml: lists - allow for setting new list class --- src/wlxml/extensions/list/list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wlxml/extensions/list/list.js b/src/wlxml/extensions/list/list.js index d17e3e3..1404259 100644 --- a/src/wlxml/extensions/list/list.js +++ b/src/wlxml/extensions/list/list.js @@ -37,7 +37,8 @@ extension.document.transformations.createList = { parentContents = parent.contents(), nodeIndexes = [params.node1.getIndex(), params.node2.getIndex()].sort(function(a,b) { return a-b; }), nodesToWrap = [], - listNode = params.node1.document.createDocumentNode({tagName: 'div', attrs: {'class': 'list'}}), + listClass = params.klass || 'list', + listNode = params.node1.document.createDocumentNode({tagName: 'div', attrs: {'class': listClass}}), listPlacePtr = params.node1, node, i; -- 2.20.1