Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You're looking at it the wrong way.</p> <p>You have to use options here.</p> <p>to create the form:</p> <pre><code>$form = $this-&gt;createForm(new AnamneseType(), null, array('history' =&gt; $entity-&gt;getHistory())); </code></pre> <p>And your form should look like:</p> <pre><code>public function buildForm(FormBuilder $builder, array $options){ $toolbar = array( array( 'name' =&gt; 'document', 'items' =&gt; array('Source','-','DocProps','Preview','Print','-','Templates') ), array( 'name' =&gt; 'clipboard', 'items' =&gt; array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo') ), array( 'name' =&gt; 'editing', 'items' =&gt; array('Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt') ), array( 'name' =&gt; 'basicstyles', 'items' =&gt; array('Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat') ), '/', array( 'name' =&gt; 'paragraph', 'items' =&gt; array('NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl') ), array( 'name' =&gt; 'links', 'items' =&gt; array('Link','Unlink','Anchor') ), array( 'name' =&gt; 'insert', 'items' =&gt; array('Image','Table','HorizontalRule','Smiley','SpecialChar','PageBreak') ), '/', array( 'name' =&gt; 'styles', 'items' =&gt; array('Styles','Format','Font','FontSize') ), array( 'name' =&gt; 'colors', 'items' =&gt; array('TextColor','BGColor') ), array( 'name' =&gt; 'tools', 'items' =&gt; array('Maximize', 'ShowBlocks','-','About') ) ); $builder-&gt;add('history', 'ckeditor', array( 'data' =&gt; $options['history'] , 'toolbar' =&gt; $toolbar)); } ... public function getDefaultOptions(array $options) { return array( 'history' =&gt; "Digite o Historico aqui" ); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload