![]() |
|
sfMarkitupPlugin - 1.0.2Markitup text editor for your project |
|
![]() |
2
users
Sign-in
to change your status |
This plugin contains useful Markitup widget, tuned to work with Markdown syntax, extended by Inline uploading of media files to the server and preview. sfMarkitupPlugin - is a way to turn your textarea field into simple but powerful text editor. We added some flavours to it's basic functionality to be more helpful for using in CMS. |
Plugin contains Markitup widged tuned to Markdown syntax. It is also extended by Inline Uploading and preview.
| Name | Status | |
|---|---|---|
|
|
lead | ten.latsyrckcalb <<ta>> imaim |
sfMarkitupPlugin
Copyright (C) 2012 Sergei Miami
http://www.blackcrystal.net/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 1.0.2stable | MIT license | 1.0.0stable | 05/03/2012 |
| 1.0.1stable | MIT license | 1.0.0stable | 02/03/2012 |
| Version | License | API | Released |
|---|---|---|---|
| 1.0.2stable | MIT license | 1.0.0stable | 05/03/2012 |
| 1.0.1stable | MIT license | 1.0.0stable | 02/03/2012 |
Added README and LICENSE, fixed package description
Added README and LICENSE, fixed package description
Array
This plugin contains useful Markitup widget, tuned to work with Markdown syntax, extended by Inline uploading of media files to the server and preview.
sfMarkitupPlugin - is a way to turn your textarea field into simple but powerful text editor. We added some flavours to it's basic functionality to be more helpful for using in CMS.

Add plugin to your project
$ symfony plugin:install sfMarkitupPlugin
$ symfony plugin:publish-assets
Add sfMarkitupPlugin to enabled_modules list in apps/[app]/config/settings.yml
enabled_modules: [default, sfMarkitupPlugin]
Use sfWidgetFormMarkitup instead of sfWidgetFormTextarea
$this->widgetSchema['body'] = new sfWidgetFormMarkitup();
This configuration is optional. It is needed if you want to add your own Markdown preview parser or change file uploading processor URL. Add next lines into apps.yml and change values as you want.
markitup:
previewAction: sfMarkitupPlugin/preview # route to preview
uploadAction: sfMarkitupPlugin/upload # route to upload
uploadTo: assets # subfolder where to save uploaded files
sfMarkitupPlugin - Ñто проÑтой ÑпоÑоб превратить Ð¿Ð¾Ð»Ñ Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° текÑта в удобный текÑтовый редактор Markitup. Плагин Ð´Ð»Ñ Symfony, Ñодержит виджет Markitup наÑтроенный на ÑинтакÑÐ¸Ñ Markdown, дополненный функцией загрузки файлов и предварительным проÑмотром.
Мы дополнили Ñтандартный функционал редактора теми вещами, которые чаÑто иÑпользуютÑÑ Ð² Ñоздании CMS. Ðто прежде вÑего загрузка картинок на Ñервер и предварительный проÑмотр результатов.

Подключите плагин к вашему проекту
$ symfony plugin:install sfMarkitupPlugin
$ symfony plugin:publish-assets
Добавьте модуль sfMarkitupPlugin к ÑпиÑку enabled_modules в файл apps/[app]/config/settings.yml
enabled_modules: [default, sfMarkitupPlugin]
ИÑпользуйте виджет sfWidgetFormMarkitup в Ñвоей форме вмеÑто sfWidgetFormTextarea
$this->widgetSchema['body'] = new sfWidgetFormMarkitup();
Ðтот шаг не обÑзательный, но еÑли вы хотите иÑпользовать Ñвой парÑер Markdown или Ñвой обработчик загружаемых файлов, вы можете добавить в app.yml Ñледующие наÑтройки:
markitup:
previewAction: sfMarkitupPlugin/preview # путь к preview
uploadAction: sfMarkitupPlugin/upload # путь к upload
uploadTo: assets # подкаталог Ð´Ð»Ñ Ð·Ð°Ð³Ñ€ÑƒÐ¶Ð°ÐµÐ¼Ñ‹Ñ… файлов
