项目作者: ubayar

项目描述 :
Summernote rich text editor for symfony 1.4 framework
高级语言: JavaScript
项目地址: git://github.com/ubayar/sfSummernotePlugin.git
创建时间: 2018-01-11T08:52:11Z
项目社区:https://github.com/ubayar/sfSummernotePlugin

开源协议:GNU General Public License v3.0

下载


sfSummernotePlugin

Summernote rich text editor for symfony 1.4 framework

Installation

First you need to place sfSummernotePlugin.zip file to /plugins folder and extract it.
Then you need to set the path of the summernote in an app.yml.

  1. all:
  2. summernote:
  3. path: 'path/to/summernote/'

Recomended path is ‘/web/summernote/‘.
Last thing, you must cut /summernote folder to this path.

How to use

in xxxForm.class.php file:

  1. $this->widgetSchema['my_editor'] = new sfWidgetFormSummerNote();

Or you can set configuration values:

  1. $this->widgetSchema['my_editor'] = new sfWidgetFormSummerNote(array('sn_options'=>array('height' => 200, 'codeview' => true)));

See http://summernote.org/ for configuration instructions.

in template file, you must declare these two lines top of the page:

  1. <?php use_stylesheets_for_form($form) ?>
  2. <?php use_javascripts_for_form($form) ?>

Todos