solution/code-mirror-bundle
Composer 安装命令:
composer require solution/code-mirror-bundle
包简介
This Bundle integrates CodeMirror editor into a Symfony2 project.
README 文档
README
Bundle not yet ready.
Integration CodeMirror editor in you symfony2 project.
###Install
Just add the following line to your projects composer.json require section, and update vendors:
"solution/code-mirror-bundle": "dev-master"
Enable bundle , add to AppKernel.php:
new Solution\CodeMirrorBundle\SolutionCodeMirrorBundle()
###Configuration
Add default parameters to config.yml:
twig: form: resources: - 'SolutionCodeMirrorBundle:Form:redactor_widget.html.twig' solution_code_mirror: parameters: mode: text/html lineNumbers: true lineWrapping: true mode_dirs: - @SolutionCodeMirrorBundle/Resources/public/js/mode themes_dirs: - @SolutionCodeMirrorBundle/Resources/public/css/theme
Install assets:
$ ./app/console assets:install web --symlink
###Usage
$builder->add('content', 'code_mirror', array( 'required' => true, 'parameters' => array( 'lineNumbers' => 'true' ) ));
统计信息
- 总下载量: 777
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-06