Skip to content

Commit

Permalink
Merge pull request #119 from lara-zeus/fix-class
Browse files Browse the repository at this point in the history
fix check editor
  • Loading branch information
atmonshi authored Jul 1, 2023
2 parents 1c010ff + ffb2ebd commit 6a380c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Classes/TipTapEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class TipTapEditor implements ContentEditor
*/
public static function component(): Component
{
if (class_exists(TipTapEditorAlias::class, false)) {
if (class_exists(TipTapEditorAlias::class)) {
return \FilamentTiptapEditor\TiptapEditor::make('content')
->profile('default')
->output(\FilamentTiptapEditor\TiptapEditor::OUTPUT_HTML)
Expand All @@ -26,7 +26,7 @@ public static function component(): Component

public static function render(string $content): string
{
if (class_exists(TipTapEditorAlias::class, false)) {
if (class_exists(TipTapEditorAlias::class)) {
return tiptap_converter()->asHTML($content);
// return tiptap_converter()->asJSON($content);
// return tiptap_converter()->asText($content);
Expand Down

0 comments on commit 6a380c1

Please sign in to comment.