{"id":18307952,"url":"https://github.com/froala/wysiwyg-cake","last_synced_at":"2026-04-02T21:29:15.391Z","repository":{"id":55646571,"uuid":"86719196","full_name":"froala/wysiwyg-cake","owner":"froala","description":"CakePHP Plugin for Froala Javascript WYSIWYG Rich Text Editor. ","archived":false,"fork":false,"pushed_at":"2026-04-01T11:26:48.000Z","size":12640,"stargazers_count":9,"open_issues_count":7,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-04-01T13:25:17.511Z","etag":null,"topics":["froala-editor","rich-text-editor","wysiwyg-cake","wysiwyg-editor","wysiwyg-html-editor"],"latest_commit_sha":null,"homepage":"https://www.froala.com/wysiwyg-editor","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froala.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-30T15:34:15.000Z","updated_at":"2026-04-01T11:25:57.000Z","dependencies_parsed_at":"2025-05-14T12:44:41.742Z","dependency_job_id":"80d18bbd-31d1-4f34-a6cc-aec991062160","html_url":"https://github.com/froala/wysiwyg-cake","commit_stats":{"total_commits":102,"total_committers":10,"mean_commits":10.2,"dds":0.6470588235294117,"last_synced_commit":"e583a9fbf8bef7370f3969a6e28f640c59362012"},"previous_names":[],"tags_count":85,"template":false,"template_full_name":null,"purl":"pkg:github/froala/wysiwyg-cake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fwysiwyg-cake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fwysiwyg-cake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fwysiwyg-cake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fwysiwyg-cake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froala","download_url":"https://codeload.github.com/froala/wysiwyg-cake/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froala%2Fwysiwyg-cake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["froala-editor","rich-text-editor","wysiwyg-cake","wysiwyg-editor","wysiwyg-html-editor"],"created_at":"2024-11-05T16:06:05.154Z","updated_at":"2026-04-02T21:29:15.375Z","avatar_url":"https://github.com/froala.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Froala WYSIWYG Editor Plugin for CakePHP 3\n\n[![Packagist](https://img.shields.io/packagist/v/froala/wysiwyg-cake.svg)](https://packagist.org/packages/froala/wysiwyg-cake)\n[![Packagist](https://img.shields.io/packagist/dt/froala/wysiwyg-cake.svg)](https://packagist.org/packages/froala/wysiwyg-cake)\n\n\u003e CakePHP Plugin for Froala Javascript WYSIWYG Text Editor. For CakePHP \u003e=3.0.\n\n\u003e See [froala/wysiwyg-cake2](https://github.com/froala/wysiwyg-cake2) for CakePHP version 2.\n\n## About\nThe purpose of placing [Froala WYSIWYG Editor](https://www.froala.com/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.\n\n## Installation\nTo use Froala WYSIWYG Editor you need to clone git repository:\n\n\tgit clone git://github.com/froala/wysiwyg-cake.git Plugin/Froala\n\nOr if your CakePHP application is setup as a git repository, you can add it as a submodule:\n\n\tgit submodule add git://github.com/froala/wysiwyg-cake.git Plugin/Froala\n\nOr\n\topen terminal/command prompt (windows)\n\ttype composer require froala/wysiwyg-cake\n\nAlternatively, you can download an archive from the [master branch on Github](https://github.com/froala/wysiwyg-cake/archive/master.zip) and extract the contents to `Froala plugin`.\n\nMake sure that you load the plugin routes by adding to your bootstrap file(bootstrap.php) in config folder: \n\nPlugin::loadAll(); or  Plugin::load('Froala');\nThis will load all plugins at once or only the Froala plugin.\n\n\n## Usage\nThe 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.\n\n```php\n// Loads Froala Editor javascript also will load all the plugins and css for the plugins\n\u003c?= $this-\u003eFroala-\u003eplugin();?\u003e\n\n// Will target one specific html selector on which the editor will be init.\n// Second paramenter is mix can be array/object of options that the Froala Editor will take.\n\n\u003c?= $this-\u003eFroala-\u003eeditor('#froala', array('option' =\u003e value));?\u003e\n```\n\n\n## How to use the helper\n\nSince CakePHP 3.0 it is necessary to activate the plugin in your application. To do so,\nedit `app/Config/bootstrap.php` and add the line `CakePlugin::load('Froala');` at the\nbottom. If you already have `CakePlugin::loadAll();` to auto-load all plugins then you may skip this step.\n\nWherever you want to use it, load it in the controller\n\nopen AppController.php (your project/src/controller/AppController)\nDeclare variable public $helpers = array('Froala.Froala');\n\n```php\nclass AppController extends Controller\n{\n\t...\n\t\n\tpublic $helpers = array('Froala.Froala');\n\t\n\t...\n}\n```\nIn the view page (template) \nadd \n```php\n\u003c?= $this-\u003eFroala-\u003eeditor('#froala-editor'');?\u003e\n```\n\nThis is a simple init example with no options for the Froala Editor.\nInclude the below statement in your view template to integrate the plugins in your editor\n\n```php\n$this-\u003eFroala-\u003eplugin();\n$this-\u003eFroala-\u003eeditor('selector');\n```\n\nThis will instruct Froala to convert the matched element on the page to Froala editor.\n\nA complete list of [Froala configuration options](https://www.froala.com/wysiwyg-editor/docs/options) are on the website.\n\n\n## Default options\n\nIf you want a quick way to configure default values for all the Froala Editors of an application, you could use the 'Froala.editorOptions' configuration.\n\nHere is an example of a line you could have in `bootstrap.php`:\n\n```php\nConfigure::write('Froala.editorOptions', array('height' =\u003e '300px'));\n```\n\nIt will make all editors to have a 300px height and apply line braker tags. 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.\n\n## Usage examples\n\nExample of init using array of options\n\n```php\n\n// '#comment'  Represents the html element selector.\n// 'array()'   Represents the list of options that are passed to the editor.\n\n$this-\u003eFroala-\u003eeditor('#comment', array('minHeight =\u003e '200px', 'maxHeight' =\u003e '400px'));\n                  \n```\n\n\n\n## Requirements\n\n* PHP version: PHP 5.2+\n\n## License\n\nThe `CakePHP Froala WYSIWYG Editor` project is under MIT license. However, in order to use WordPress Froala WYSIWYG Editor plugin you should purchase a license for it.\n\nFroala Editor has [3 different licenses](https://www.froala.com/wysiwyg-editor/pricing) for commercial use. For details please see [License Agreement](https://www.froala.com/wysiwyg-editor/terms).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fwysiwyg-cake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroala%2Fwysiwyg-cake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroala%2Fwysiwyg-cake/lists"}