Skip to content

Commit

Permalink
feat: rename block
Browse files Browse the repository at this point in the history
  • Loading branch information
StepanSSA committed May 22, 2024
1 parent db153e9 commit 2943934
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/Sitko.Blockly.Demo.Client/EditorJsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static IServiceCollection AddEditorJSBlocks(this IServiceCollection servi
serviceCollection.AddEditorJS()
.AddBlock<StrikethroughBlock, StrikethroughBlockOptions>()
.AddBlock<MarkerBlock, MarkerBlockOptions>()
.AddBlock<UnderlineTool, UnderlineBlockOptions>()
.AddBlock<UnderlineBlock, UnderlineBlockOptions>()
.AddBlock<QuoteBlock, QuoteBlockOptions>()
.AddBlock<TableBlock, TableBlockOptions>()
.AddBlock<ListBlock, ListBlockOptions>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
namespace Sitko.EditorJS.Blocks.Underline;

[ContentBlock("Underline")]
public record UnderlineTool : ContentBlock;
public record UnderlineBlock : ContentBlock;

public record UnderlineBlockOptions : ContentBlockOptions<UnderlineTool>
public record UnderlineBlockOptions : ContentBlockOptions<UnderlineBlock>
{
public override string ScriptUrl { get; set; } = "https://cdn.jsdelivr.net/npm/@editorjs/underline@latest";
public override string ClassName { get; set; } = "Underline";
Expand Down

0 comments on commit 2943934

Please sign in to comment.