ns/simplemde-bundle
最新稳定版本:1.0.5
Composer 安装命令:
composer require ns/simplemde-bundle
包简介
This bundle provides the simplemde markdown editor and forms to a symfony bundle
README 文档
README
This bundle provides the simplemde markdown editor
Installation
Add the bundle to your composer.json file:
require: { // ... "ns/simplemde-bundle": "dev-master" // or use a tag from packagist.org // ... }
Register the bundle with your kernel:
<?php // in AppKernel::registerBundles() $bundles = array( // ... new NS\SimpleMDEBundle\NSSimpleMDEBundle(), // ... );
Add the JS and CSS links to relevant pages
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" type="text/css" id="'+ssId+'" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css" crossorigin="anonymous" />
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" id="'+jsId+'" src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js" crossorigin="anonymous"></script>
{% endblock %}
Then you can use it as a form type with MarkdownEditorType::class type hint.
统计信息
- 总下载量: 7.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-01