diff --git a/component-definition.json b/component-definition.json index 62bdbcae..87ba0af1 100644 --- a/component-definition.json +++ b/component-definition.json @@ -294,6 +294,25 @@ } } }, + { + "title": "Table", + "id": "table", + "model": "table", + "filter": "table", + "plugins": { + "da": { + "name": "table", + "rows": 1, + "columns": 1, + "fields": [ + { + "name": "table", + "selector": "div>div" + } + ] + } + } + }, { "title": "Tabs", "id": "tabs", diff --git a/component-filters.json b/component-filters.json index 3f99889a..c826b8ba 100644 --- a/component-filters.json +++ b/component-filters.json @@ -61,6 +61,19 @@ "image" ] }, + { + "id": "table", + "rte": { + "toolbar": { + "insert": [ + "table" + ], + "sections": [ + "insert" + ] + } + } + }, { "id": "tabs", "components": [ diff --git a/component-models.json b/component-models.json index d03097a3..37910d4e 100644 --- a/component-models.json +++ b/component-models.json @@ -222,6 +222,17 @@ } ] }, + { + "id": "table", + "fields": [ + { + "component": "richtext", + "name": "table", + "value": "", + "label": "Table Content" + } + ] + }, { "id": "tabs-item", "fields": [ diff --git a/ue/models/blocks/table.json b/ue/models/blocks/table.json new file mode 100644 index 00000000..cfed3605 --- /dev/null +++ b/ue/models/blocks/table.json @@ -0,0 +1,51 @@ +{ + "definitions": [ + { + "title": "Table", + "id": "table", + "model": "table", + "filter": "table", + "plugins": { + "da": { + "name": "table", + "rows": 1, + "columns": 1, + "fields": [ + { + "name": "table", + "selector": "div>div" + } + ] + } + } + } + ], + "models": [ + { + "id": "table", + "fields": [ + { + "component": "richtext", + "name": "table", + "value": "", + "label": "Table Content" + } + ] + } + ], + "filters": [ + { + "id": "table", + "rte": { + "toolbar": { + "insert": [ + "table" + ], + "sections": [ + "insert" + ] + } + } + } + ] +} \ No newline at end of file