Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Feb 8, 2024
1 parent ffef59f commit 387e054
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
12 changes: 12 additions & 0 deletions app/Support/Editor/Node.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App\Support\Editor;

abstract class Node
{
public string $prefix = 'tt';
protected string $tag;

abstract public static function buildHtmlTag(): string;

}
15 changes: 15 additions & 0 deletions app/Support/Editor/Nodes/Image.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace App\Support\Editor\Nodes;

use App\Support\Editor\Node;

class Image extends Node
{
protected string $tag = 'image';

public static function buildHtmlTag(): string
{
return self::$tag . self::$prefix;
}
}
2 changes: 1 addition & 1 deletion resources/js/Components/Editor/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const editor = useEditor({
Link.configure({
openOnClick: false,
HTMLAttributes: {
class: 'text-blue-600 font-medium cursor-pointer',
style: 'color: blue',
},
}),
ListItem,
Expand Down

0 comments on commit 387e054

Please sign in to comment.