Skip to content

Commit

Permalink
feat: add inline tools
Browse files Browse the repository at this point in the history
  • Loading branch information
StepanSSA committed May 22, 2024
1 parent 4770cb1 commit d9fa00a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Sitko.EditorJS.Blazor/wwwroot/strikethrough.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/Sitko.EditorJS/Blocks/Marker/MarkerBlock.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Sitko.EditorJS.Blocks.Marker;

[ContentBlock("Marker")]
public record MarkerBlock : ContentBlock;

public record MarkerBlockOptions : ContentBlockOptions<MarkerBlock>
{
public override string ScriptUrl { get; set; } = "https://cdn.jsdelivr.net/npm/@editorjs/marker@latest";
public override string ClassName { get; set; } = "Marker";
}
10 changes: 10 additions & 0 deletions src/Sitko.EditorJS/Blocks/Strikethrough/StrikethroughBlock.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Sitko.EditorJS.Blocks.Strikethrough;

[ContentBlock("Strikethrough")]
public record StrikethroughBlock : ContentBlock;

public record StrikethroughBlockOptions : ContentBlockOptions<StrikethroughBlock>
{
public override string ScriptUrl { get; set; } = "/_content/Sitko.EditorJS.Blazor/strikethrough.js";
public override string ClassName { get; set; } = "Strikethrough";
}
10 changes: 10 additions & 0 deletions src/Sitko.EditorJS/Blocks/Underline/UnderlineTool.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace Sitko.EditorJS.Blocks.Underline;

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

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

0 comments on commit d9fa00a

Please sign in to comment.