Skip to content

Commit

Permalink
Added CKEditor to content element form
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Feb 10, 2024
1 parent 880e8e9 commit 0b88d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/ContentElementForm.php
Expand Up @@ -8,8 +8,8 @@
use Illuminate\Support\Str;
use Johncms\Content\Models\ContentElement;
use Johncms\Forms\AbstractForm;
use Johncms\Forms\Inputs\CKEditor;
use Johncms\Forms\Inputs\InputText;
use Johncms\Forms\Inputs\Textarea;

class ContentElementForm extends AbstractForm
{
Expand Down Expand Up @@ -42,7 +42,7 @@ protected function prepareFormFields(): array
]
);

$fields['detail_text'] = (new Textarea())
$fields['detail_text'] = (new CKEditor())
->setLabel(__('Detail Text'))
->setPlaceholder(p__('placeholder', 'Enter the Detail Text'))
->setNameAndId('detail_text')
Expand Down

0 comments on commit 0b88d75

Please sign in to comment.