sau / md-editor-bundle
MDEditor for Symfony
0.1.2
2019-09-08 07:20 UTC
Requires
- php: ^7.1.3
- dev-master
- 0.1.2
- 0.1.1
- 0.1.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/terser-4.8.1
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/marked-4.0.10
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/ws-6.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-6.4.1
This package is auto-updated.
Last update: 2024-09-04 12:49:45 UTC
README
适用于 Symfony 的简单 Markdown 编辑器
安装
composer require sau/md-editor-bundle bin/console assets:install --symlink --relative
如果使用 Symfony 4,请将以下内容添加到 config/bundles.php
Sau\Bundle\MDEditor\MDEditorBundle::class => ['all' => true],
在 twig 中添加表单
twig: form_themes: - '@MDEditor/type/md-editor.html.twig'
并将脚本/样式添加到您的模板中
{{asset('bundles/mdeditor/md-editor.js')}} {{asset('bundles/mdeditor/runtime.js')}} {{asset('bundles/mdeditor/md-editor.css')}}
如果使用 sonata-admin-bundle,请将配置添加到
sonata_admin: assets: extra_javascripts: - bundles/mdeditor/md-editor.js - bundles/mdeditor/runtime.js extra_stylesheets: - bundles/mdeditor/md-editor.css