$builder->add('twigContent', FroalaEditorType::class, array('codeMirrorOptions' => array(
'indentWithTabs' => true,
'lineNumbers' => true,
'lineWrapping' => true,
'mode'=> array('name' => "twig", 'base' => "text/html"),
'tabMode' => 'indent',
'tabSize' => 2
)
, 'label' => 'Contenu', 'attr' => array('class' => 'froalaMailTransTemplate', 'id' => 'froalaMailTransTemplate'), 'required' => false))
Hello,
On a symfony 3.4 with KMS Froala 2.9.8 i'm tring to use Twig : https://codemirror.net/mode/twig/index.html
if i remove the code
'mode'=> array('name' => "twig", 'base' => "text/html")it's working i have HTML but no "twig" markupWhat did i miss ?
thanks
Guldil