@mirrormedia/lilith-draft-renderer
Version:
## Introduction
24 lines (17 loc) • 558 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _draftJs = require("draft-js");
require("./entity-decorator");
var _entityDecorators = require("./entity-decorators");
const {
annotationDecorator,
linkDecorator
} = _entityDecorators.entityDecorators;
const decoratorsGenerator = (contentLayout = 'normal') => {
return new _draftJs.CompositeDecorator([annotationDecorator(contentLayout), linkDecorator(contentLayout)]);
};
var _default = decoratorsGenerator;
exports.default = _default;