2017 © Pedro Peláez
 

cakephp-plugin wysiwyg-cake2

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

image

froala/wysiwyg-cake2

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  • Sunday, June 24, 2018
  • by stefanneculai
  • Repository
  • 6 Watchers
  • 12 Stars
  • 25 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 36 Versions
  • 9 % Grown

The README.md

Froala WYSIWYG Editor Plugin for CakePHP

Build Status Packagist Packagist, (*1)

CakePHP Plugin for Froala Javascript WYSIWYG Text Editor. For cake 2.3+, (*2)

About

The purpose of placing Froala WYSIWYG Editor in a plugin is to keep it separate from a themed view, the regular webroot or the app in general, which makes it easier to update and overall follows the idea of keeping the code clean and modular., (*3)

Installation

To use Froala WYSIWYG Editor you need to clone git repository:, (*4)

git clone git://github.com/froala/wysiwyg-cake2.git Plugin/Froala

Or if your CakePHP application is setup as a git repository, you can add it as a submodule:, (*5)

git submodule add git://github.com/froala/wysiwyg-cake2.git Plugin/Froala

Alternatively, you can download an archive from the master branch on Github and extract the contents to Plugin/Froala., (*6)

Add:, (*7)

     "froala/wysiwyg-cake2": "^2.9"

to the require section of your composer.json file., (*8)

or use composer :, (*9)

php ./composer.phar require froala/wysiwyg-cake2

Then move the FroalaEditor folder from /Plugins to app/Plugin and rename it to Froala,or directly clone the folder from git repository to app/Plugin., (*10)

Usage

The Froala helper is basically just a convenience helper that allows you to use php and CakePHP conventions to generate the configuration for Froala and as an extra it allows you to load configs., (*11)

There two ways you can use this plugin, simply use the helper or load the editor "by hand" using, (*12)

$this->Html->css('/Froala/css/froala_editor.min.css');
$this->Html->script('/Froala/js/froala_editor.min.js', array('toolbarInline' => false));

and placing your own script in the head of the page. Please note that the helper will auto add the Froala editor script to the header of the page. No need to to that by hand if you use the helper., (*13)

If your app is not set up to work in the top level of your host / but instead in /yourapp/ the automatic inclusion of the script wont work. You'll manually have to add the js file to your app:, (*14)

$this->Html->css('/yourapp/Froala/css/froala_editor.min.css');
$this->Html->script('/yourapp/Froala/js/froala_editor.min.js', array('toolbarInline' => false));

If you need to load the plugins, then use:, (*15)

$this->Html->script(
  array(
    '/Froala/js/froala_editor.min.js',
    '/Froala/js/plugins/align.min.js',
    '/Froala/js/plugins/char_counter.min.js',
    '/Froala/js/plugins/code_beautifier.min.js',
    '/Froala/js/plugins/code_view.min.js',
    '/Froala/js/plugins/colors.min.js',
    '/Froala/js/plugins/draggable.min.js',
    '/Froala/js/plugins/emoticons.min.js',
    '/Froala/js/plugins/entities.min.js',
    '/Froala/js/plugins/file.min.js',
    '/Froala/js/plugins/font_family.min.js',
    '/Froala/js/plugins/font_size.min.js',
    '/Froala/js/plugins/fullscreen.min.js',
    '/Froala/js/plugins/help.min.js',
    '/Froala/js/plugins/image.min.js',
    '/Froala/js/plugins/image_manager.min.js',
    '/Froala/js/plugins/inline_style.min.js',
    '/Froala/js/plugins/line_breaker.min.js',
    '/Froala/js/plugins/link.min.js',
    '/Froala/js/plugins/lists.min.js',
    '/Froala/js/plugins/paragraph_format.min.js',
    '/Froala/js/plugins/paragraph_style.min.js',
    '/Froala/js/plugins/print.min.js',
    '/Froala/js/plugins/quick_insert.min.js',
    '/Froala/js/plugins/quote.min.js',
    '/Froala/js/plugins/save.min.js',
    '/Froala/js/plugins/special_characters.min.js',
    '/Froala/js/plugins/table.min.js',
    '/Froala/js/plugins/url.min.js',
    '/Froala/js/plugins/video.min.js'),

  array('toolbarInline' => false)
);


$this->Html->css(
  array(
    '/Froala/css/froala_editor.min.css',
    '/Froala/css/froala_style.min.css',
    '/Froala/css/plugins/char_counter.min.css',
    '/Froala/css/plugins/code_view.min.css',
    '/Froala/css/plugins/colors.min.css',
    '/Froala/css/plugins/draggable.min.css',
    '/Froala/css/plugins/emoticons.min.css',
    '/Froala/css/plugins/file.min.css',
    '/Froala/css/plugins/fullscreen.min.css',
    '/Froala/css/plugins/help.min.css',
    '/Froala/css/plugins/image_manager.min.css',
    '/Froala/css/plugins/image.min.css',
    '/Froala/css/plugins/line_breaker.min.css',
    '/Froala/css/plugins/quick_insert.min.css',
    '/Froala/css/plugins/special_characters.min.css',
    '/Froala/css/plugins/table.min.css',
    '/Froala/css/plugins/video.min.css'
  )
);

How to use the helper

Since CakePHP 2.0 it is necessary to activate the plugin in your application. To do so, edit app/Config/bootstrap.php and add the line CakePlugin::load('Froala'); at the bottom. If you already have CakePlugin::loadAll(); to auto-load all plugins then you may skip this step., (*16)

Wherever you want to use it, load it in the controller, (*17)


class AppController extends Controller { ... public $helpers = array('Froala.Froala'); ... }

In the view simply use the editor() method and pass options as key/value pairs in an array., (*18)

<div class="selector">
  <?= $this->Froala->editor('.selector');?>
</div>

This will instruct Froala to convert all matched elements on the page to Froala editors. If you require some more precise control, or want to change this behavior, checkout the Froala configuration options on the Froala website., (*19)

Default options

If you want a quick way to configure default values for all the Froala Editors of an application, you could use the 'Froala.editorOptions' configuration., (*20)

Here is an example of a line you could have in bootstrap.php:, (*21)

Configure::write('Froala.editorOptions', array('height' => '300px'))

It will make all editors to have a 300px height. You may want to override this value for a single editor. To do so, just pass the option to the editor() method and it will override the default value., (*22)

You can also pass options at editor iniliatization as given below, (*23)

$this->Froala->editor('.selector', array('option' => value));

You can always check the tests to see how to use the helper., (*24)

Requirements

  • PHP version: PHP 5.2+
  • CakePHP version: CakePHP 2.1+

License

The wysiwyg-cake project is under MIT license. However, in order to use Froala WYSIWYG HTML Editor plugin you should purchase a license for it., (*25)

Froala Editor has 3 different licenses for commercial use. For details please see License Agreement., (*26)

The Versions

24/06 2018

dev-master

9999999-dev https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary One Website Advanced OEM Business Hobby Professional

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

20/06 2018

2.8.2

2.8.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

26/04 2018

2.8.1

2.8.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

13/04 2018

2.8.0

2.8.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

08/03 2018

2.7.6

2.7.6.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

02/02 2018

2.7.5

2.7.5.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

proprietary

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

31/01 2018

2.7.4

2.7.4.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

Business Hobby Professional

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

11/12 2017

2.7.3

2.7.3.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

Business Hobby Professional

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

23/11 2017

2.7.2

2.7.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced Business

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

19/09 2017

2.7.0

2.7.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced Business

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

13/09 2017

2.6.6

2.6.6.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

23/06 2017

2.6.2

2.6.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

25/05 2017

2.6.1

2.6.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

05/05 2017

2.6.0

2.6.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor wysiwy-editor

14/03 2017

2.5.1

2.5.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

27/02 2017

2.5.0

2.5.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

26/01 2017

2.4.1

2.4.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

09/12 2016

2.4.0

2.4.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

19/10 2016

2.3.5

2.3.5.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

21/07 2016

2.3.4

2.3.4.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

20/06 2016

2.3.3

2.3.3.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

08/06 2016

2.3.2

2.3.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

03/06 2016

2.3.1

2.3.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

20/05 2016

2.3.0

2.3.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

22/04 2016

2.2.4

2.2.4.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

04/04 2016

2.2.3

2.2.3.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

26/03 2016

2.2.2

2.2.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

02/03 2016

2.2.1

2.2.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

29/02 2016

2.2.0

2.2.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

01/02 2016

2.1.0

2.1.0.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

14/12 2015

2.0.5

2.0.5.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

08/12 2015

2.0.3

2.0.3.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

07/12 2015

2.0.2

2.0.2.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

17/11 2015

2.0.1

2.0.1.0 https://www.froala.com/wysiwyg-editor

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready modern design.

  Sources   Download

One Website Advanced OEM

The Requires

 

by Froala Labs

jquery javascript html text editor wysiwyg jquery-plugin froala rte rich editor rich text editor

24/01 2015

1.2.5

1.2.5.0 http://editor.froala.com

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready flat design.

  Sources   Download

OEM CC NC-ND Single Website Developer Business

The Requires

 

by Froala Labs

html text editor wysiwyg froala rich

01/10 2014

1.2.2

1.2.2.0 http://editor.froala.com

A beautiful jQuery WYSIWYG text editor based on HTML5 technology. Cross browser, with mobile support, high performance and Retina Ready flat design.

  Sources   Download

OEM CC NC-ND Single Website Developer Business

The Requires

 

by Froala Labs

html text editor wysiwyg froala rich