PHP code example of xuchunyang / wangeditor

1. Go to this page and download the library: Download xuchunyang/wangeditor 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/ */

    

xuchunyang / wangeditor example snippets


Wangeditor::make('Content'),

Wangeditor::make('Content')
    ->stacked()
    ->fullWidth()
    ->onlyOnForms()
    ->placeholder('请输入内容')
    ->rules('> [
                'server' => '/upload-image-for-wang-editor',
            ],
        ],
    ])