PHP code example of visanduma / nova-image-tinymce

1. Go to this page and download the library: Download visanduma/nova-image-tinymce 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/ */

    

visanduma / nova-image-tinymce example snippets


use Visanduma\NovaImageTinymce\NovaImageTinymceEditor;

...

NovaImageTinymceEditor::make('Body', 'body')->useImageGallery()

NovaImageTinymceEditor::make('Body', 'body')->useImageGallery()->withoutImageUpload()

NovaImageTinymceEditor::make('Body')->placeholder('Enter content here')
->options(['toolbar' => ['undo redo | align | link | code'], 'plugins' => ['link code']]),

 'media_handler' => \Visanduma\NovaImageTinymce\Controller\MediaController::class
bash
php artisan vendor:publish --provider="Visanduma\NovaImageTinymce\FieldServiceProvider"
bash
php artisan migrate