From: Aleksander Ɓukasz Date: Tue, 1 Apr 2014 20:21:26 +0000 (+0200) Subject: wlxml: lists - allow for setting new list class X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/d1bd1848c105947324cefb846d2d122a473c7643 wlxml: lists - allow for setting new list class --- 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;