TinyMCE Nette, An invalid form control

Aleksandr
Člen | 14
+
0
-

Čau, mám problém s integrací TinyMCE v Nette
Potřebuji poradit v Chrome mi to hází tuto chybu.
An invalid form control with name=‚content‘ is not focusable.

{block content}
<script type="text/javascript" src="{$basePath}/vendor/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
  tinymce.init({
    selector: "textarea[name=content]",
    language: 'cs',
    height: 300,
    toolbar: 'insert | undo redo |  formatselect | bold italic backcolor  | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | help',
    content_css: [
      'http://fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
      'http://www.tinymce.com/css/codepen.min.css']
  });
</script>

{form actionEdit}
  <ul class="errors" n:if="$form->hasErrors()">
    <li n:foreach="$form->errors as $error">{$error}</li>
  </ul>
  <div class="form-group">{label title}{/label}
    {input title, class => 'form-control'}
  </div>
  <div class="form-group">{label content}{/label}
    {input content, class => 'form-control'}
  </div>
  <div class="form-group">{label published}{/label}
    {input published, class => 'form-control'}
  </div>
  <div class="form-group">{label category}{/label}
    {input category, class => 'form-control'}
  </div>
  {input send, class => 'btn  btn-block btn-orange'}

{/form}
{/block}
$form->addTextArea('content', 'Článek');
Ondřej Kubíček
Člen | 494
+
0
-

nemá moc společného s nette, nicméně jsem za tebe googlil a mělo by stačit přidat novalidate atribut na <form>