UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

30 lines 961 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.emoji = { inline: true, group: 'inline', attrs: { shortName: { default: '' }, id: { default: '' }, text: { default: '' }, }, parseDOM: [{ tag: 'span[data-emoji-short-name]', getAttrs: function (dom) { return ({ shortName: dom.getAttribute('data-emoji-short-name'), id: dom.getAttribute('data-emoji-id'), text: dom.getAttribute('data-emoji-text'), }); } }], toDOM: function (node) { var _a = node.attrs, shortName = _a.shortName, id = _a.id, text = _a.text; var attrs = { 'data-emoji-short-name': shortName, 'data-emoji-id': id, 'data-emoji-text': text, 'contenteditable': 'false', }; return ['span', attrs, text]; } }; //# sourceMappingURL=emoji.js.map