From 174af027e92e1d985e98f7e4644b4b3fd1f8e448 Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Sun, 19 May 2019 11:59:24 +0200 Subject: [PATCH] Block editor config first stab --- .../BlockEditorConfiguration.cs | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web/PropertyEditors/BlockEditorConfiguration.cs b/src/Umbraco.Web/PropertyEditors/BlockEditorConfiguration.cs index 8c9ba621c7..03498e1c2c 100644 --- a/src/Umbraco.Web/PropertyEditors/BlockEditorConfiguration.cs +++ b/src/Umbraco.Web/PropertyEditors/BlockEditorConfiguration.cs @@ -1,7 +1,27 @@ -namespace Umbraco.Web.PropertyEditors +using Umbraco.Core; +using Umbraco.Core.PropertyEditors; + +namespace Umbraco.Web.PropertyEditors { public class BlockEditorConfiguration { - // TODO: implement + [ConfigurationField("blocks", "Blocks", "views/propertyeditors/textarea/textarea.html")] + public Block[] Blocks { get; set; } + + public class Block + { + public Udi ElementType { get; set; } + + public BlockSetting Settings { get; set; } + } + + public class BlockSetting + { + public string Label { get; set; } + + public string Alias { get; set; } + + public Udi DataType { get; set; } + } } }