springload / wagtaildraftail

🐦📝🍸 Draft.js editor for Wagtail, built upon Draftail and draftjs_exporter
https://pypi.python.org/pypi/wagtaildraftail
MIT License
24 stars 3 forks source link

Move entity decorator and source definition to Python #19

Closed thibaudcolas closed 7 years ago

thibaudcolas commented 7 years ago

Following similar developments in our client work,

DRAFT_ENTITY_TYPE_DOCUMENT = {
    'label': 'Document',
    'type': ENTITY_TYPES.DOCUMENT,
    'source': 'DocumentSource',
    'decorator': 'Document',
    'icon': 'icon-doc-full',
}
import LinkSource from './LinkSource';
import ImageSource from './ImageSource';
import DocumentSource from './DocumentSource';
import ModelSource from './ModelSource';
import EmbedSource from './EmbedSource';

/**
 * Mapping object from name to component.
 */
export default {
    LinkSource,
    ImageSource,
    DocumentSource,
    ModelSource,
    EmbedSource,
};
loicteixeira commented 7 years ago

Closed by mistake sorry.