I am creating a form with symfony. One field of my form is an textarea
that I want to make it look better through the use of the bootstrap-markdown. According to the documentation, I set the attribute 'data-provide'
to 'markdown'
as it is shown below:
{{ form_row(form.description,
{ 'attr': {'data-provide': 'markdown'} }) }}
Until this point, all the buttons of the editor are working. But the preview button is not working!
Is there any idea to solve that issue?
Is that jQuery code necessary for making the preview buttons working?
$( document ).ready(function() {
$("#MotorsAdsCreate_description").markdown({autofocus:false,savable:false});
});
Thanks for your help;