2017 © Pedro Peláez
 

library ckeditor-module

A module to implement a ckeditor form element for Zend Framework 2.

image

satsume/ckeditor-module

A module to implement a ckeditor form element for Zend Framework 2.

  • Friday, February 12, 2016
  • by Satsume
  • Repository
  • 1 Watchers
  • 1 Stars
  • 552 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 19 % Grown

The README.md

CKEditorModule

Latest Stable Version Latest Unstable Version Build Status, (*1)

Introduction

This module allows you to use a ckeditor form field more easily using some basic view helpers, (*2)

Installation

As usual, install the module via composer, either add a require statement to composer.json:, (*3)

{
    "require": {
        "satsume/ckeditor-module": "0.*"
    }
}

And then let it install/update, (*4)

composer update

Or use just the command line, like so:, (*5)

./composer.phar require satsume/ckeditor-module

Usage

Add a form field like you normally would:, (*6)

$this->add(array(
  'type' => 'CKEditorModule\Form\Element\CKEditor',
  'name' => 'editor',
  'options' => array(
    'label' => 'Editor content',
    'ckeditor' => array(
        // add anny config you would normaly add via CKEDITOR.editorConfig
        'language' => 'nl',
        'uiColor' => '#AADC6E',
    )
  ),
));

As type in a Form __construct() you cannot use 'ckeditor' this is because of the way the form element manager works. If you are using the form element manager to create forms and you're adding form fields in the init() method, you can use 'ckeditor' as type., (*7)

More info can be found in zf2's documentation, (*8)

CKFinder

If you include the CKFinderModule in your application, the ckfinder config is automatically added to the ckeditor config:, (*9)

'ckeditor_ckfinder_options' => array(
  'filebrowserBrowseUrl' => '/ckfinder/ckfinder.html',
  'filebrowserImageBrowseUrl' => '/ckfinder/ckfinder.html?type=Images',
  //'filebrowserFlashBrowseUrl' => '/ckfinder/ckfinder.html?type=Flash',
  'filebrowserUploadUrl' => '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
  'filebrowserImageUploadUrl' => '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
  //'filebrowserFlashUploadUrl' => '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
  'filebrowserWindowWidth' => '1000',
  'filebrowserWindowHeight' => '700'
),

( I turned off the flash browser, because I never use flash in my applications anymore ), (*10)

The Versions

12/02 2016

dev-master

9999999-dev https://github.com/satsume/CKEditorModule

A module to implement a ckeditor form element for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zf2 ckeditor zend framework 2 ckeditor module

12/02 2016

0.2.1

0.2.1.0 https://github.com/satsume/CKEditorModule

A module to implement a ckeditor form element for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zf2 ckeditor zend framework 2 ckeditor module

12/02 2016

0.2.0

0.2.0.0 https://github.com/satsume/CKEditorModule

A module to implement a ckeditor form element for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

zf2 ckeditor zend framework 2 ckeditor module

26/01 2016

dev-development

dev-development https://github.com/satsume/CKEditorModule

A module to implement a ckeditor form element for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 ckeditor zend framework 2 ckeditor module

12/09 2014

0.1.0

0.1.0.0 https://github.com/satsume/CKEditorModule

A module to implement a ckeditor form element for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 ckeditor zend framework 2 ckeditor module