diff --git a/config/editor.php b/config/editor.php
index 3cf1f1f..9ff1205 100644
--- a/config/editor.php
+++ b/config/editor.php
@@ -2,20 +2,20 @@
return [
'blocks' => [
- 'attaches' => \BumpCore\EditorPhp\Blocks\Attaches::class,
- 'checklist' => \BumpCore\EditorPhp\Blocks\Checklist::class,
- 'code' => \BumpCore\EditorPhp\Blocks\Code::class,
- 'delimiter' => \BumpCore\EditorPhp\Blocks\Delimiter::class,
- 'embed' => \BumpCore\EditorPhp\Blocks\Embed::class,
- 'header' => \BumpCore\EditorPhp\Blocks\Header::class,
- 'image' => \BumpCore\EditorPhp\Blocks\Image::class,
- 'linkTool' => \BumpCore\EditorPhp\Blocks\LinkTool::class,
- 'list' => \BumpCore\EditorPhp\Blocks\ListBlock::class,
- 'paragraph' => \BumpCore\EditorPhp\Blocks\Paragraph::class,
- 'personality' => \BumpCore\EditorPhp\Blocks\Personality::class,
- 'quote' => \BumpCore\EditorPhp\Blocks\Quote::class,
- 'raw' => \BumpCore\EditorPhp\Blocks\Raw::class,
- 'table' => \BumpCore\EditorPhp\Blocks\Table::class,
- 'warning' => \BumpCore\EditorPhp\Blocks\Warning::class,
+ 'attaches' => BumpCore\EditorPhp\Blocks\Attaches::class,
+ 'checklist' => BumpCore\EditorPhp\Blocks\Checklist::class,
+ 'code' => BumpCore\EditorPhp\Blocks\Code::class,
+ 'delimiter' => BumpCore\EditorPhp\Blocks\Delimiter::class,
+ 'embed' => BumpCore\EditorPhp\Blocks\Embed::class,
+ 'header' => BumpCore\EditorPhp\Blocks\Header::class,
+ 'image' => BumpCore\EditorPhp\Blocks\Image::class,
+ 'linkTool' => BumpCore\EditorPhp\Blocks\LinkTool::class,
+ 'list' => BumpCore\EditorPhp\Blocks\ListBlock::class,
+ 'paragraph' => BumpCore\EditorPhp\Blocks\Paragraph::class,
+ 'personality' => BumpCore\EditorPhp\Blocks\Personality::class,
+ 'quote' => BumpCore\EditorPhp\Blocks\Quote::class,
+ 'raw' => BumpCore\EditorPhp\Blocks\Raw::class,
+ 'table' => BumpCore\EditorPhp\Blocks\Table::class,
+ 'warning' => BumpCore\EditorPhp\Blocks\Warning::class,
],
];
diff --git a/resources/php/bootstrap-five/attaches.php b/resources/php/bootstrap-five/attaches.php
index 3bb1fb7..eb5a375 100644
--- a/resources/php/bootstrap-five/attaches.php
+++ b/resources/php/bootstrap-five/attaches.php
@@ -1,13 +1,13 @@
-
+
= $data('file.extension'); ?>
diff --git a/resources/php/bootstrap-five/checklist.php b/resources/php/bootstrap-five/checklist.php
index b166d38..5368a70 100644
--- a/resources/php/bootstrap-five/checklist.php
+++ b/resources/php/bootstrap-five/checklist.php
@@ -4,7 +4,7 @@ class="d-flex flex-column align-items-start pl-8 gap-1 mb-3"
>
-
+
diff --git a/resources/php/bootstrap-five/code.php b/resources/php/bootstrap-five/code.php
index 2d8c635..1613ec1 100644
--- a/resources/php/bootstrap-five/code.php
+++ b/resources/php/bootstrap-five/code.php
@@ -1,5 +1,5 @@
diff --git a/resources/php/bootstrap-five/embed.php b/resources/php/bootstrap-five/embed.php
index a19fbef..a00f633 100644
--- a/resources/php/bootstrap-five/embed.php
+++ b/resources/php/bootstrap-five/embed.php
@@ -1,14 +1,14 @@
-
+ = $data('caption'); ?>
@@ -16,9 +16,9 @@ class="block mb-3 rounded bg-white"
+ >= $data('source'); ?>
diff --git a/resources/php/bootstrap-five/header.php b/resources/php/bootstrap-five/header.php
index 006d49b..3bf1ef4 100644
--- a/resources/php/bootstrap-five/header.php
+++ b/resources/php/bootstrap-five/header.php
@@ -1,25 +1,25 @@
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
diff --git a/resources/php/bootstrap-five/image.php b/resources/php/bootstrap-five/image.php
index e4347e6..630ab8c 100644
--- a/resources/php/bootstrap-five/image.php
+++ b/resources/php/bootstrap-five/image.php
@@ -1,5 +1,5 @@
; ?>)
diff --git a/resources/php/bootstrap-five/linktool.php b/resources/php/bootstrap-five/linktool.php
index 994188c..328c307 100644
--- a/resources/php/bootstrap-five/linktool.php
+++ b/resources/php/bootstrap-five/linktool.php
@@ -1,21 +1,21 @@
-
+
= $data('meta.title'); ?>
+ >= $data('link'); ?>
-
+
= $data('meta.description'); ?>
diff --git a/resources/php/bootstrap-five/list.php b/resources/php/bootstrap-five/list.php
index 2aa39cc..5a71a48 100644
--- a/resources/php/bootstrap-five/list.php
+++ b/resources/php/bootstrap-five/list.php
@@ -1,13 +1,13 @@
-
+ - = $item; ?>
diff --git a/resources/php/bootstrap-five/paragraph.php b/resources/php/bootstrap-five/paragraph.php
index 31b4918..4bb06f7 100644
--- a/resources/php/bootstrap-five/paragraph.php
+++ b/resources/php/bootstrap-five/paragraph.php
@@ -1 +1 @@
-
+
= $data('text'); ?>
diff --git a/resources/php/bootstrap-five/personality.php b/resources/php/bootstrap-five/personality.php
index fd48399..637472d 100644
--- a/resources/php/bootstrap-five/personality.php
+++ b/resources/php/bootstrap-five/personality.php
@@ -1,21 +1,21 @@
-
+
= $data('name'); ?>
+ >= $data('link'); ?>
-
+
= $data('description'); ?>
diff --git a/resources/php/bootstrap-five/quote.php b/resources/php/bootstrap-five/quote.php
index 8d2f442..a02144a 100644
--- a/resources/php/bootstrap-five/quote.php
+++ b/resources/php/bootstrap-five/quote.php
@@ -13,7 +13,7 @@
-
-
+
= $data('text'); ?>
+
= $data('caption'); ?>
diff --git a/resources/php/bootstrap-five/table.php b/resources/php/bootstrap-five/table.php
index dbb89f5..6bb06a3 100644
--- a/resources/php/bootstrap-five/table.php
+++ b/resources/php/bootstrap-five/table.php
@@ -4,7 +4,7 @@
- |
+ = $heading; ?> |
@@ -18,7 +18,7 @@
- |
+ = $cell; ?> |
diff --git a/resources/php/bootstrap-five/warning.php b/resources/php/bootstrap-five/warning.php
index 90db360..bfefaab 100644
--- a/resources/php/bootstrap-five/warning.php
+++ b/resources/php/bootstrap-five/warning.php
@@ -17,7 +17,7 @@ class="d-flex justify-content-center align-items-start align-items-sm-center"
-
-
+
= $data('title'); ?>
+
= $data('message'); ?>
diff --git a/resources/php/tailwind/attaches.php b/resources/php/tailwind/attaches.php
index f099281..dcb5c2c 100644
--- a/resources/php/tailwind/attaches.php
+++ b/resources/php/tailwind/attaches.php
@@ -1,13 +1,13 @@
-
+
= $data('file.extension'); ?>
diff --git a/resources/php/tailwind/checklist.php b/resources/php/tailwind/checklist.php
index 2e4151b..1b7f408 100644
--- a/resources/php/tailwind/checklist.php
+++ b/resources/php/tailwind/checklist.php
@@ -1,7 +1,7 @@
-
-
+
diff --git a/resources/php/tailwind/code.php b/resources/php/tailwind/code.php
index 0dd2c03..e2f29b3 100644
--- a/resources/php/tailwind/code.php
+++ b/resources/php/tailwind/code.php
@@ -1,5 +1,5 @@
diff --git a/resources/php/tailwind/embed.php b/resources/php/tailwind/embed.php
index 49ac259..d819701 100644
--- a/resources/php/tailwind/embed.php
+++ b/resources/php/tailwind/embed.php
@@ -1,14 +1,14 @@
-
+ = $data('caption'); ?>
@@ -16,9 +16,9 @@ class="block mb-4 rounded-xl bg-white"
+ >= $data('source'); ?>
diff --git a/resources/php/tailwind/header.php b/resources/php/tailwind/header.php
index df947e5..c2d7c90 100644
--- a/resources/php/tailwind/header.php
+++ b/resources/php/tailwind/header.php
@@ -1,25 +1,25 @@
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
-
+
= $data('text'); ?>
diff --git a/resources/php/tailwind/image.php b/resources/php/tailwind/image.php
index 2e40301..c124cac 100644
--- a/resources/php/tailwind/image.php
+++ b/resources/php/tailwind/image.php
@@ -1,5 +1,5 @@
; ?>)
diff --git a/resources/php/tailwind/linktool.php b/resources/php/tailwind/linktool.php
index 23de167..3a5fc31 100644
--- a/resources/php/tailwind/linktool.php
+++ b/resources/php/tailwind/linktool.php
@@ -1,20 +1,20 @@
-
+
= $data('meta.title'); ?>
+ >= $data('link'); ?>
-
+
= $data('meta.description'); ?>
diff --git a/resources/php/tailwind/list.php b/resources/php/tailwind/list.php
index a3c7fae..6036fe6 100644
--- a/resources/php/tailwind/list.php
+++ b/resources/php/tailwind/list.php
@@ -1,13 +1,13 @@
-
+ - = $item; ?>
diff --git a/resources/php/tailwind/paragraph.php b/resources/php/tailwind/paragraph.php
index 1303f93..519d95c 100644
--- a/resources/php/tailwind/paragraph.php
+++ b/resources/php/tailwind/paragraph.php
@@ -1 +1 @@
-
+
= $data('text'); ?>
diff --git a/resources/php/tailwind/personality.php b/resources/php/tailwind/personality.php
index 8d48338..4ce179b 100644
--- a/resources/php/tailwind/personality.php
+++ b/resources/php/tailwind/personality.php
@@ -1,20 +1,20 @@
-
+
= $data('name'); ?>
+ >= $data('link'); ?>
-
+
= $data('description'); ?>
diff --git a/resources/php/tailwind/quote.php b/resources/php/tailwind/quote.php
index 0121524..7320f0f 100644
--- a/resources/php/tailwind/quote.php
+++ b/resources/php/tailwind/quote.php
@@ -11,7 +11,7 @@ class="w-24 h-24 fill-slate-200"
-
-
+
= $data('text'); ?>
+
= $data('caption'); ?>
diff --git a/resources/php/tailwind/table.php b/resources/php/tailwind/table.php
index a218a8f..62e109f 100644
--- a/resources/php/tailwind/table.php
+++ b/resources/php/tailwind/table.php
@@ -4,7 +4,7 @@
- |
+ = $heading; ?> |
@@ -18,7 +18,7 @@
- |
+ = $cell; ?> |
diff --git a/resources/php/tailwind/warning.php b/resources/php/tailwind/warning.php
index c7e37aa..45e155d 100644
--- a/resources/php/tailwind/warning.php
+++ b/resources/php/tailwind/warning.php
@@ -13,7 +13,7 @@ class="bi bi-exclamation-lg w-12 h-12"
-
-
+
= $data('title'); ?>
+
= $data('message'); ?>
diff --git a/src/Parser.php b/src/Parser.php
index 72d3b0b..1e4426e 100644
--- a/src/Parser.php
+++ b/src/Parser.php
@@ -17,21 +17,21 @@ class Parser
* @var array
*/
public static array $blocks = [
- 'attaches' => \BumpCore\EditorPhp\Blocks\Attaches::class,
- 'checklist' => \BumpCore\EditorPhp\Blocks\Checklist::class,
- 'code' => \BumpCore\EditorPhp\Blocks\Code::class,
- 'delimiter' => \BumpCore\EditorPhp\Blocks\Delimiter::class,
- 'embed' => \BumpCore\EditorPhp\Blocks\Embed::class,
- 'header' => \BumpCore\EditorPhp\Blocks\Header::class,
- 'image' => \BumpCore\EditorPhp\Blocks\Image::class,
- 'linkTool' => \BumpCore\EditorPhp\Blocks\LinkTool::class,
- 'list' => \BumpCore\EditorPhp\Blocks\ListBlock::class,
- 'paragraph' => \BumpCore\EditorPhp\Blocks\Paragraph::class,
- 'personality' => \BumpCore\EditorPhp\Blocks\Personality::class,
- 'quote' => \BumpCore\EditorPhp\Blocks\Quote::class,
- 'raw' => \BumpCore\EditorPhp\Blocks\Raw::class,
- 'table' => \BumpCore\EditorPhp\Blocks\Table::class,
- 'warning' => \BumpCore\EditorPhp\Blocks\Warning::class,
+ 'attaches' => Blocks\Attaches::class,
+ 'checklist' => Blocks\Checklist::class,
+ 'code' => Blocks\Code::class,
+ 'delimiter' => Blocks\Delimiter::class,
+ 'embed' => Blocks\Embed::class,
+ 'header' => Blocks\Header::class,
+ 'image' => Blocks\Image::class,
+ 'linkTool' => Blocks\LinkTool::class,
+ 'list' => Blocks\ListBlock::class,
+ 'paragraph' => Blocks\Paragraph::class,
+ 'personality' => Blocks\Personality::class,
+ 'quote' => Blocks\Quote::class,
+ 'raw' => Blocks\Raw::class,
+ 'table' => Blocks\Table::class,
+ 'warning' => Blocks\Warning::class,
];
/**
diff --git a/tests/Pest.php b/tests/Pest.php
index ade1a27..dcfb4b1 100644
--- a/tests/Pest.php
+++ b/tests/Pest.php
@@ -5,20 +5,20 @@
uses()
->beforeEach(function() {
EditorPhp::register([
- 'attaches' => \BumpCore\EditorPhp\Blocks\Attaches::class,
- 'checklist' => \BumpCore\EditorPhp\Blocks\Checklist::class,
- 'code' => \BumpCore\EditorPhp\Blocks\Code::class,
- 'delimiter' => \BumpCore\EditorPhp\Blocks\Delimiter::class,
- 'embed' => \BumpCore\EditorPhp\Blocks\Embed::class,
- 'header' => \BumpCore\EditorPhp\Blocks\Header::class,
- 'image' => \BumpCore\EditorPhp\Blocks\Image::class,
- 'linkTool' => \BumpCore\EditorPhp\Blocks\LinkTool::class,
- 'list' => \BumpCore\EditorPhp\Blocks\ListBlock::class,
- 'paragraph' => \BumpCore\EditorPhp\Blocks\Paragraph::class,
- 'personality' => \BumpCore\EditorPhp\Blocks\Personality::class,
- 'quote' => \BumpCore\EditorPhp\Blocks\Quote::class,
- 'raw' => \BumpCore\EditorPhp\Blocks\Raw::class,
- 'table' => \BumpCore\EditorPhp\Blocks\Table::class,
- 'warning' => \BumpCore\EditorPhp\Blocks\Warning::class,
+ 'attaches' => BumpCore\EditorPhp\Blocks\Attaches::class,
+ 'checklist' => BumpCore\EditorPhp\Blocks\Checklist::class,
+ 'code' => BumpCore\EditorPhp\Blocks\Code::class,
+ 'delimiter' => BumpCore\EditorPhp\Blocks\Delimiter::class,
+ 'embed' => BumpCore\EditorPhp\Blocks\Embed::class,
+ 'header' => BumpCore\EditorPhp\Blocks\Header::class,
+ 'image' => BumpCore\EditorPhp\Blocks\Image::class,
+ 'linkTool' => BumpCore\EditorPhp\Blocks\LinkTool::class,
+ 'list' => BumpCore\EditorPhp\Blocks\ListBlock::class,
+ 'paragraph' => BumpCore\EditorPhp\Blocks\Paragraph::class,
+ 'personality' => BumpCore\EditorPhp\Blocks\Personality::class,
+ 'quote' => BumpCore\EditorPhp\Blocks\Quote::class,
+ 'raw' => BumpCore\EditorPhp\Blocks\Raw::class,
+ 'table' => BumpCore\EditorPhp\Blocks\Table::class,
+ 'warning' => BumpCore\EditorPhp\Blocks\Warning::class,
]);
})->in('.');