caMarkdownEditorPlugin - 0.9.9

Simple Widget to form, base on MarkItUp Etitor

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

caMarkdownEditorPlugin v 0.9.9

Screenshots

caMarkdownEditorPlugin screenshots

Instaltion

1. Download plugin

2. Add options to file app.yml:

all:
  caMarkdownEditorPlugin:
    stylesheets:  ['/caMarkdownEditorPlugin/css/markItUpEditor/editor.css', '/caMarkdownEditorPlugin/css/markItUpEditor/markdown.css']
    javascripts:  ['/caMarkdownEditorPlugin/js/markItUpEditor/jquery.markitup.pack.js', '/caMarkdownEditorPlugin/js/markItUpEditor/markdown.js']

3. add widget to your's Form:

$this->setWidgets(array(
   'markdown_editor' => new caWidgetFormMarkdownEditorBasedOnMarkItUp(array())
));

4. In action with previous Form load helper:

<?php use_helper('caMarkdownEditor'); ?>

5a. Download and install JQuery:

Put jquery.js to /web/js

Add to view.yml

default:
  http_metas:
    content-type: text/html
  javascripts:    [ jquery.js]
  has_layout:     on
  layout:         layout

5b. Or download plugins with JQuery

5. clear cache

$ symfony cc

6. Publish assets

$ symfony plugin:publish-assets

This plugin was written in the company codearts PL

codearts logo