diff --git a/apps/Sitko.Blockly.Demo.Client/EditorJsExtensions.cs b/apps/Sitko.Blockly.Demo.Client/EditorJsExtensions.cs index 184bf72..ba81357 100644 --- a/apps/Sitko.Blockly.Demo.Client/EditorJsExtensions.cs +++ b/apps/Sitko.Blockly.Demo.Client/EditorJsExtensions.cs @@ -3,10 +3,13 @@ using Sitko.EditorJS.Blocks.Header; using Sitko.EditorJS.Blocks.Image; using Sitko.EditorJS.Blocks.List; +using Sitko.EditorJS.Blocks.Marker; using Sitko.EditorJS.Blocks.Paragraph; using Sitko.EditorJS.Blocks.Quote; using Sitko.EditorJS.Blocks.SimpleImage; +using Sitko.EditorJS.Blocks.Strikethrough; using Sitko.EditorJS.Blocks.Table; +using Sitko.EditorJS.Blocks.Underline; namespace Sitko.Blockly.Demo.Client; @@ -15,12 +18,16 @@ public static class EditorJsExtensions public static IServiceCollection AddEditorJSBlocks(this IServiceCollection serviceCollection) { serviceCollection.AddEditorJS() + .AddBlock() + .AddBlock() + .AddBlock() .AddBlock() .AddBlock() .AddBlock() .AddBlock() .AddBlock() .AddBlock() + .AddGalleryBlock() .AddImageBlock(); return serviceCollection; } diff --git a/src/Sitko.EditorJS/Blocks/Image/BuilderExtensions.cs b/src/Sitko.EditorJS/Blocks/Image/BuilderExtensions.cs index a71e807..5619aee 100644 --- a/src/Sitko.EditorJS/Blocks/Image/BuilderExtensions.cs +++ b/src/Sitko.EditorJS/Blocks/Image/BuilderExtensions.cs @@ -1,4 +1,5 @@ using Microsoft.Extensions.Configuration; +using Sitko.EditorJS.Blocks.Gallery; using Sitko.EditorJS.Configuration; namespace Sitko.EditorJS.Blocks.Image; @@ -8,4 +9,8 @@ public static class BuilderExtensions public static IEditorJSBuilder AddImageBlock(this IEditorJSBuilder builder, Action>? configure = null) where TData : class, new() => builder.AddBlock, ImageBlockOptions>(configure); + + public static IEditorJSBuilder AddGalleryBlock(this IEditorJSBuilder builder, + Action>? configure = null) where TData : class, new() => + builder.AddBlock, GalleryBlockOptions>(configure); }