Toopay/bootstrap-markdown 的预览按钮不起作用 [英] Preview button not working of toopay/bootstrap-markdown

查看:15
本文介绍了Toopay/bootstrap-markdown 的预览按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用 symfony 创建一个表单.我的表单的一个字段是 textarea 我想通过使用 bootstrap 使它看起来更好-降价.根据文档,我将属性 'data-provide' 设置为 'markdown' 如下所示:

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?

该 jQuery 代码是使预览按钮正常工作所必需的吗?

Is that jQuery code necessary for making the preview buttons working?

$( document ).ready(function() {
    $("#MotorsAdsCreate_description").markdown({autofocus:false,savable:false});
});

感谢您的帮助;

推荐答案

我找到了解决方案.

你只需要添加以下js文件.

You just need to add the following js files.

文档没有提到要明确添加这些文件!

The documentation did not mention to add these files explicitly!

希望这会有所帮助...

Hope this would help...

这篇关于Toopay/bootstrap-markdown 的预览按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆