{"id":30349719,"url":"https://github.com/jziggas/ng-ck","last_synced_at":"2025-08-18T20:13:05.951Z","repository":{"id":58229588,"uuid":"80083911","full_name":"jziggas/ng-ck","owner":"jziggas","description":"An Angular 1 Component for CKEditor","archived":false,"fork":false,"pushed_at":"2017-02-10T17:05:14.000Z","size":35,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T06:54:33.590Z","etag":null,"topics":["angular","angularjs","ckeditor","ckeditor4","javascript","rich-text","rich-text-editor","wysiwyg","wysiwyg-editor"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jziggas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-26T03:52:16.000Z","updated_at":"2020-11-25T10:02:08.000Z","dependencies_parsed_at":"2022-08-31T09:21:31.985Z","dependency_job_id":null,"html_url":"https://github.com/jziggas/ng-ck","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jziggas/ng-ck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jziggas%2Fng-ck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jziggas%2Fng-ck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jziggas%2Fng-ck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jziggas%2Fng-ck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jziggas","download_url":"https://codeload.github.com/jziggas/ng-ck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jziggas%2Fng-ck/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264680567,"owners_count":23648499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["angular","angularjs","ckeditor","ckeditor4","javascript","rich-text","rich-text-editor","wysiwyg","wysiwyg-editor"],"created_at":"2025-08-18T20:13:04.788Z","updated_at":"2025-08-18T20:13:05.931Z","avatar_url":"https://github.com/jziggas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/ng-ck.svg)](https://www.npmjs.com/package/ng-ck)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jziggas/ng-ck/master/LICENSE)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Build Status](https://travis-ci.org/jziggas/ng-ck.svg?branch=master)](https://travis-ci.org/jziggas/ng-ck)\n\n# ng-ck\n\nng-ck is an Angular 1 Component wrapper for the WYSIWIG rich text editor CKEditor.\n\n## Requirements\n\n- Angular 1.6+\n- CKEditor 4.6+\n\n## Installation\n\nvia NPM:\n\n`npm i ng-ck --save`\n\nvia Bower:\n\n`bower install --save https://github.com/jziggas/ng-ck#\u003cRELEASE_VERSION\u003e`\n\n## Usage\n\n- Add ng-ck as a dependency to your app module (e.g. `angular.module('myApp', ['ngCk']);`)\n- Add the directive to your template: `\u003cng-ck ng-model=\"content\"\u003e\u003c/ng-ck\u003e`\n\n## Configuration\n\n- A default set of toolbar options are provided by `ngCkConfigProvider` with editor buttons that are capable of passing through Angular's [$sanitize](https://docs.angularjs.org/api/ngSanitize/service/$sanitize) service.\n- You can use `ngCkConfigProvider` to overwrite the default configuration object in an `app.config` block:\n\n  ```\n  app.config(['ngCkConfigProvider', function(ngCkConfigProvider) {\n    let config = {\n      language: 'ru',\n      toolbar: ['Cut', 'Copy', 'Paste'],\n      removePlugins: 'elementspath'\n     }\n     \n     // Use this to overwrite the default configuration object\n     ngCkConfigProvider.set(config)\n     \n     // Or merge your own configuration object into the default configuration\n     ngCkConfigProvider.merge(config)\n  }])\n  ```\n\n- Or you can pass a configuration object, per instance of the editor, to overwrite the default configuration:\n\n  ```\n  \u003cng-ck ng-model=\"content\" config=\"myConfig\"\u003e\u003c/ng-ck\u003e\n  ```\n\n## Bindings\n\nng-ck has callback bindings available for all of the events that occur on an editor instance.\n\nThe callback attributes follow a format of `on-camel-cased-event=\"myCallback(event, editor)\"` and return the event that occured as well as the editor object.\n\nFor example, the `'instanceReady'` event would be `on-instance-ready=\"myCallback(event, editor)\"` and `'doubleclick'` would be `on-doubleclick=myCallback(event, editor)`\n\nThe list of events can be found at the [CKEDITOR.editor Documentation](http://docs.ckeditor.com/#!/api/CKEDITOR.editor)\n\nThe following attributes are also available:\n\n- `checkTextLength: '\u003c?`\n  - Validates ngModel against the length of text in the editor.\n  - Default `undefined`\n- `config: '\u003c?'`\n  - Configuration object passed to CKEditor. Overwrites the default configuration provided by `ngCkConfigProvider`.\n- `maxLength: '\u003c?'`\n  - Checks against the length of html in the editor. Can be configured to check the length of text instead via `checkTextLength`.\n  - Updates ngModel validity.\n  - Default `undefined`.\n- `minLength: '\u003c?'`\n  - Checks against the length of html in the editor. Can be configured to check the length of text instead via `checkTextLength`.\n  - Updates ngModel validity. Default `undefined`.\n- `readOnly: '\u003c?'`\n  - Sets the [readOnly](http://docs.ckeditor.com/#!/api/CKEDITOR.editor-property-readOnly) property of the editor. Default `undefined`.\n- `required: '\u003c?'`\n  - Updates ngModel validity. Default `undefined`.\n- `onContentChanged: '\u0026?'`\n  - CKEditor's `'change'` event gets triggered on a variety of actions that take place and not just when the content changes. This callback lets you know when a change in content has actually taken place.\n  - `on-content-changed=\"onContentChanged(editor, html, text)\"`\n\n## Contribution\n- Pull requests welcome.\n\n## Support\n[![Beerpay](https://beerpay.io/jziggas/ng-ck/badge.svg?style=flat)](https://beerpay.io/jziggas/ng-ck)\n[![Beerpay](https://beerpay.io/jziggas/ng-ck/make-wish.svg?style=flat)](https://beerpay.io/jziggas/ng-ck)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjziggas%2Fng-ck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjziggas%2Fng-ck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjziggas%2Fng-ck/lists"}