PHP code example of amjadiqbal / laravel-tiptap
1. Go to this page and download the library: Download amjadiqbal/laravel-tiptap library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amjadiqbal / laravel-tiptap example snippets
use AmjadIqbal\LaravelTiptap\Facades\Tiptap;
$config = Tiptap::make()
->extensions(['StarterKit', 'Bold', 'Italic', 'Link'])
->content(['type' => 'doc', 'content' => []])
->editable(true)
->autofocus('end')
->editorProps(['attributes' => ['class' => 'prose']])
->parseOptions(['preserveWhitespace' => true])
->toArray();
bash
php artisan vendor:publish --tag=tiptap-config
bash
php artisan tiptap:debug