UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

28 lines 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var uuid_1 = require("../../plugins/tasks-and-decisions/uuid"); exports.decisionList = { group: 'block', content: 'decisionItem+', attrs: { localId: { compute: uuid_1.default.generate }, }, parseDOM: [{ tag: 'ol[data-decision-list-local-id]', // Default priority is 50. We normaly don't change this but since this node type is // also used by ordered-list we need to make sure that we run this parser first. priority: 100, getAttrs: function (dom) { return ({ localId: uuid_1.default.generate(), }); } }], toDOM: function (node) { var localId = node.attrs.localId; var attrs = { 'data-decision-list-local-id': localId || 'local-decision-list', 'style': 'list-style: none; padding-left: 0' }; return ['ol', attrs, 0]; } }; //# sourceMappingURL=decision-list.js.map