PHP code example of jonexyz / wang-editor-v5
1. Go to this page and download the library: Download jonexyz/wang-editor-v5 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/ */
jonexyz / wang-editor-v5 example snippets
protected function form()
{
$form = new Form(new Post());
$form->text('title', __('标题'));
// 使用的是默认配置 default
$form->wangEditor('content', __('内容'));
// 使用的是配置 article
$form->wangEditor('article', __('文章'));
return $form;
}