@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
13 lines • 331 B
JavaScript
import { bulletList as bulletListFactory } from '../../next-schema/generated/nodeTypes';
export const bulletListSelector = '.ak-ul';
export const bulletList = bulletListFactory({
parseDOM: [{
tag: 'ul'
}],
toDOM() {
const attrs = {
class: bulletListSelector.substr(1)
};
return ['ul', attrs, 0];
}
});