PHP code example of solilokiam / summernotebundle
1. Go to this page and download the library: Download solilokiam/summernotebundle 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/ */
solilokiam / summernotebundle example snippets
new Solilokiam\SummernoteBundle\SolilokiamSummernoteBundle()
namespace Acme\DemoBundle\Document;
use Solilokiam\SummernoteBundle\Model\SummernoteAsset;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* Class Asset
* @package Acme\DemoBundle\Document
* @MongoDB\Document(collection="assets")
*/
class Asset extends SummernoteAsset
{
/**
* @MongoDB\Id(strategy="auto")
*/
protected $id;
...
}
class TestFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
...
$builder->add('test_text', 'summernote');
...
}
...
}