UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.

37 lines (35 loc) 1.11 kB
import Table from './Table' import TableCell from './TableCell' import TableComponent from './TableComponent' import TableHTMLConverter from './TableHTMLConverter' import TableCellHTMLConverter from './TableCellHTMLConverter' import InsertTableCommand from './InsertTableCommand' export default { name: 'table', configure: function(config) { config.addNode(Table) config.addNode(TableCell) config.addComponent('table', TableComponent) config.addConverter('html', TableHTMLConverter) config.addConverter('html', TableCellHTMLConverter) config.addConverter('xml', TableHTMLConverter) config.addConverter('xml', TableCellHTMLConverter) config.addCommand('insert-table', InsertTableCommand, { nodeType: 'table', commandGroup: 'insert' }) config.addIcon('insert-table', { 'fontawesome': 'fa-table' }) config.addLabel('insert-table', { en: 'Table', de: 'Tabelle' }) config.addLabel('table', { en: 'Table', de: 'Tabelle' }) config.addLabel('table-cell.content', { en: 'Cell', de: 'Zelle' }) } }