stfalcon/TinymceBundle

Symfony 3 not rendering default install

SecondeJK opened this issue · 3 comments

Hi,
I can't figure out why Symfony isn't rendering a text area from the Bundle. I may be doing something stupid here, so apologies.

I've followed the installation - no problems. Web assets are installed, the bundle is there, the twig tag has been included, it's rendering the following output:

<script type="text/javascript" src="/bundles/stfalcontinymce/vendor/tinymce/tinymce.min.js"></script>
    <script type="text/javascript" src="/bundles/stfalcontinymce/js/ready.min.js"></script>
    <script type="text/javascript" src="/bundles/stfalcontinymce/js/init.standard.js"></script>
<script type="text/javascript">
    //<![CDATA[
    stfalcon_tinymce_config = {"include_jquery":false,"tinymce_jquery":false,"use_callback_tinymce_init":false,"selector":".tinymce","theme":{"advanced":{"theme":"modern","plugins":["advlist autolink lists link image charmap print preview hr anchor pagebreak","searchreplace wordcount visualblocks visualchars code fullscreen","insertdatetime media nonbreaking save table contextmenu directionality","emoticons template paste textcolor"],"toolbar1":"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify\n                                   | bullist numlist outdent indent | link image","toolbar2":"print preview media | forecolor backcolor emoticons","image_advtab":true},"simple":[]},"tinymce_buttons":[],"external_plugins":[]};
    initTinyMCE();
    //]]>
</script>

So, we're all there, but....no editor window!
Any help? :)

@SecondeJK hey :)

This bundle isn't rendering any textarea it's only change view of textarea by selector.
So if you have textarea field with class tinymce (<textarea class="tinymce"></textarea>) it should be changed to tinymce field.

Goodness me, that was simple. Thanks!

@SecondeJK no problem 😄