PHP code example of hahadu / think-ueditor
1. Go to this page and download the library: Download hahadu/think-ueditor 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/ */
hahadu / think-ueditor example snippets
//在当前控制器或者公共控制器中
public function ueditor(){
$ueditor = new ThinkUeditor();
return $ueditor->ueditor(); //如果tp开发模式编辑器提示配置错误,可以尝试下面这一行
//echo $ueditor->ueditor();die;
}
//或者使用便捷函数ueditor()
public function ueditor(){
return ueditor();
}