Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A copy from svn (with modifications)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
README.markdown

How to install:

symfony plugin:install sfCKEditorPlugin

You need to create an autoload.yml in the project config directory. Assuming you've downloaded ckeditor and placed it in your web/ckeditor directory:

autoload:
  ckeditor:
    name:       ckeditor
    path:       %SF_WEB_DIR%/ckeditor
    recursive:  on

You need to set the basePath of the ckeditor in an app.yml.

all:
  ckeditor:
    basePath:         '/ckeditor/'

How to use:

[php]
$this->widgetSchema['my_editor'] = new sfWidgetFormCKEditor();

Set CKEditor config param

You can set config with the ckeditor object directly

[php]
$this->widgetSchema['my_editor'] = new sfWidgetFormCKEditor();
$editor = $this->widgetSchema['my_editor']->getEditor();
$editor->config['param'] = value;

Or:

[php]
$this->widgetSchema['my_editor'] = new sfWidgetFormCKEditor(array('jsoptions'=>array('param' => 'value'));

See http://ckeditor.com/ for config instructions

To use CKFinder:

Add in the autoload.yml file

ckfinder:
  name:       ckfinder
  path:       path/to/ckfinder/dir
  recursive:  on    

In app.yml:

all:
  ckfinder:
    active:           true
    basePath:         'path/to/ckfinder/'

Access to CKFinder object:

[php]
$this->widgetSchema['my_editor'] = new sfWidgetFormCKEditor();
$finder = $this->widgetSchema['my_editor']->getFinder();

You need to configure path/to/ckfinder/config.php. See http://ckfinder.com/ for instructions.

Something went wrong with that request. Please try again.