1. Go to this page and download the library: Download marshmallow/nova-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/ */
marshmallow / nova-tiptap example snippets
use Marshmallow\Tiptap\Tiptap;
Tiptap::make('Content')
Tiptap::make('Content')
->buttons([
'heading', 'bold', 'italic', '|', 'link', 'bulletList', 'orderedList',
// Add more buttons as needed
])
Tiptap::make('Content')
->buttons(['alignDropdown']) // Dropdown with all alignment options
// or
->buttons(['textAlign']) // Separate buttons for each alignment
->alignments(['left', 'center', 'right', 'justify']) // Available alignments
->defaultAlignment('left') // Default text alignment
Tiptap::make('Content')
->buttons(['color'])
->colors(['#f1f1f1']) // Available colors in HEX
Tiptap::make('Content')
->buttons(['backgroundColor'])
->backgroundColors(['#f1f1f1']) // Available background colors in HEX
Tiptap::make('Content')
->buttons(['tableAlternative'])
->tableCellBackgroundColors(['#f1f1f1']) // Available table cell background colors in HEX
Tiptap::make('Content')
->buttons(['tableAlternative'])
->tableCellBorderColors(['#f1f1f1']) // Available table cell border colors in HEX
Tiptap::make('Content')
->buttons(['rtl']) // Adds button to toggle RTL mode