PHP code example of yippy / toast-ui-editor-bundle
1. Go to this page and download the library: Download yippy/toast-ui-editor-bundle 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/ */
yippy / toast-ui-editor-bundle example snippets
return [
// ...
new Yippy\ToastUiEditorBundle\YippyToastUiEditorBundle(),
];
use Yippy\ToastUiEditorBundle\Form\Type\ToastUiEditorType;
class ArticleType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
// ...
->add('body', ToastUiEditorType::class)
;
}
// ...
}