Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ckeditor4-angular

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ckeditor4-angular - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0

760

bundles/ckeditor4-angular.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/forms'), require('load-script')) :
typeof define === 'function' && define.amd ? define('ckeditor4-angular', ['exports', '@angular/common', '@angular/core', '@angular/forms', 'load-script'], factory) :
(factory((global['ckeditor4-angular'] = {}),global.ng.common,global.ng.core,global.ng.forms,global.loadScript));
}(this, (function (exports,common,core,forms,loadScript) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('load-script')) :
typeof define === 'function' && define.amd ? define('ckeditor4-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms', 'load-script'], factory) :
(global = global || self, factory(global['ckeditor4-angular'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.loadScript));
}(this, (function (exports, core, common, forms, loadScript) { 'use strict';
loadScript = loadScript && loadScript.hasOwnProperty('default') ? loadScript['default'] : loadScript;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/* global Reflect, Promise */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
function __exportStar(m, exports) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
function __values(o) {
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
if (m) return m.call(o);
return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result.default = mod;
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/** @type {?} */
var promise;
/**
* @param {?} editorURL
* @return {?}
*/
function getEditorNamespace(editorURL) {

@@ -27,11 +219,4 @@ if (editorURL.length < 1) {

else if (!promise) {
promise = new Promise(( /**
* @param {?} scriptResolve
* @param {?} scriptReject
* @return {?}
*/function (scriptResolve, scriptReject) {
loadScript(editorURL, ( /**
* @param {?} err
* @return {?}
*/function (err) {
promise = new Promise(function (scriptResolve, scriptReject) {
loadScript(editorURL, function (err) {
if (err) {

@@ -44,4 +229,4 @@ scriptReject(err);

}
}));
}));
});
});
}

@@ -52,4 +237,4 @@ return promise;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

@@ -76,3 +261,3 @@ var CKEditorComponent = /** @class */ (function () {

*/
this.type = "divarea" /* DIVAREA */;
this.type = "classic" /* CLASSIC */;
/**

@@ -85,5 +270,14 @@ * Fires when the editor is ready. It corresponds with the `editor#instanceReady`

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
this.dataReady = new core.EventEmitter();
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -119,10 +313,9 @@ this.change = new core.EventEmitter();

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
this.editorUrl = 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js';
this.editorUrl = 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js';
}
CKEditorComponent_1 = CKEditorComponent;
Object.defineProperty(CKEditorComponent.prototype, "data", {
get: /**
* @return {?}
*/ function () {
get: function () {
return this._data;

@@ -137,11 +330,3 @@ },

*/
set: /**
* Keeps track of the editor's data.
*
* It's also decorated as an input which is useful when not using the ngModel.
*
* See https://angular.io/api/forms/NgModel to learn more.
* @param {?} data
* @return {?}
*/ function (data) {
set: function (data) {
if (data === this._data) {

@@ -162,5 +347,3 @@ return;

Object.defineProperty(CKEditorComponent.prototype, "readOnly", {
get: /**
* @return {?}
*/ function () {
get: function () {
if (this.instance) {

@@ -176,9 +359,3 @@ return this.instance.readOnly;

*/
set: /**
* When set `true`, the editor becomes read-only.
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#property-readOnly
* to learn more.
* @param {?} isReadOnly
* @return {?}
*/ function (isReadOnly) {
set: function (isReadOnly) {
if (this.instance) {

@@ -194,271 +371,185 @@ this.instance.setReadOnly(isReadOnly);

});
/**
* @return {?}
*/
CKEditorComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
var _this = this;
getEditorNamespace(this.editorUrl).then(( /**
* @return {?}
*/function () {
_this.ngZone.runOutsideAngular(_this.createEditor.bind(_this));
})).catch(window.console.error);
};
/**
* @return {?}
*/
CKEditorComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
var _this = this;
this.ngZone.runOutsideAngular(( /**
* @return {?}
*/function () {
if (_this.instance) {
_this.instance.destroy();
_this.instance = null;
}
}));
};
/**
* @param {?} value
* @return {?}
*/
CKEditorComponent.prototype.writeValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
this.data = value;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnChange = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
this.onChange = callback;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnTouched = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
this.onTouched = callback;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createEditor = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
var element = this.createInitialElement();
CKEditorComponent.prototype.ngAfterViewInit = function () {
var _this = this;
getEditorNamespace(this.editorUrl).then(function () {
_this.ngZone.runOutsideAngular(_this.createEditor.bind(_this));
}).catch(window.console.error);
};
CKEditorComponent.prototype.ngOnDestroy = function () {
var _this = this;
this.ngZone.runOutsideAngular(function () {
if (_this.instance) {
_this.instance.destroy();
_this.instance = null;
}
});
};
CKEditorComponent.prototype.writeValue = function (value) {
this.data = value;
};
CKEditorComponent.prototype.registerOnChange = function (callback) {
this.onChange = callback;
};
CKEditorComponent.prototype.registerOnTouched = function (callback) {
this.onTouched = callback;
};
CKEditorComponent.prototype.createEditor = function () {
var _this = this;
var element = document.createElement(this.tagName);
this.elementRef.nativeElement.appendChild(element);
if (this.type === "divarea" /* DIVAREA */) {
this.config = this.ensureDivareaPlugin(this.config || {});
/** @type {?} */
var instance = this.type === "inline" /* INLINE */ ?
CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', ( /**
* @param {?} evt
* @return {?}
*/function (evt) {
var _this = this;
this.instance = instance;
this.wrapper.removeAttribute('style');
this.elementRef.nativeElement.appendChild(this.wrapper);
// Read only state may change during instance initialization.
this.readOnly = this._readOnly !== null ? this._readOnly : this.instance.readOnly;
this.subscribe(this.instance);
/** @type {?} */
var undo = instance.undoManager;
if (this.data !== null) {
undo && undo.lock();
instance.setData(this.data);
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
instance.fire('change');
}
undo && undo.unlock();
}
this.ngZone.run(( /**
* @return {?}
*/function () {
}
var instance = this.type === "inline" /* INLINE */
? CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', function (evt) {
_this.instance = instance;
// Read only state may change during instance initialization.
_this.readOnly = _this._readOnly !== null ? _this._readOnly : _this.instance.readOnly;
_this.subscribe(_this.instance);
var undo = instance.undoManager;
if (_this.data !== null) {
undo && undo.lock();
instance.setData(_this.data, { callback: function () {
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (_this.data !== instance.getData()) {
undo ? instance.fire('change') : instance.fire('dataReady');
}
undo && undo.unlock();
_this.ngZone.run(function () {
_this.ready.emit(evt);
});
} });
}
else {
_this.ngZone.run(function () {
_this.ready.emit(evt);
}));
}), this);
};
/**
* @private
* @param {?} editor
* @return {?}
*/
CKEditorComponent.prototype.subscribe = /**
* @private
* @param {?} editor
* @return {?}
*/
function (editor) {
var _this = this;
editor.on('focus', ( /**
* @param {?} evt
* @return {?}
*/function (evt) {
_this.ngZone.run(( /**
* @return {?}
*/function () {
_this.focus.emit(evt);
}));
}));
editor.on('blur', ( /**
* @param {?} evt
* @return {?}
*/function (evt) {
_this.ngZone.run(( /**
* @return {?}
*/function () {
if (_this.onTouched) {
_this.onTouched();
}
_this.blur.emit(evt);
}));
}));
editor.on('change', ( /**
* @param {?} evt
* @return {?}
*/function (evt) {
_this.ngZone.run(( /**
* @return {?}
*/function () {
/** @type {?} */
var newData = editor.getData();
_this.change.emit(evt);
if (newData === _this.data) {
return;
}
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
}));
}));
};
/**
* @private
* @param {?} config
* @return {?}
*/
CKEditorComponent.prototype.ensureDivareaPlugin = /**
* @private
* @param {?} config
* @return {?}
*/
function (config) {
var extraPlugins = config.extraPlugins, removePlugins = config.removePlugins;
extraPlugins = this.removePlugin(extraPlugins, 'divarea') || '';
extraPlugins = extraPlugins.concat(typeof extraPlugins === 'string' ? ',divarea' : 'divarea');
if (removePlugins && removePlugins.includes('divarea')) {
removePlugins = this.removePlugin(removePlugins, 'divarea');
console.warn('[CKEDITOR] divarea plugin is required to initialize editor using Angular integration.');
});
}
return Object.assign({}, config, { extraPlugins: extraPlugins, removePlugins: removePlugins });
};
/**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
CKEditorComponent.prototype.removePlugin = /**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
function (plugins, toRemove) {
if (!plugins) {
return null;
});
};
CKEditorComponent.prototype.subscribe = function (editor) {
var _this = this;
editor.on('focus', function (evt) {
_this.ngZone.run(function () {
_this.focus.emit(evt);
});
});
editor.on('blur', function (evt) {
_this.ngZone.run(function () {
if (_this.onTouched) {
_this.onTouched();
}
_this.blur.emit(evt);
});
});
editor.on('dataReady', this.propagateChange, this);
if (this.instance.undoManager) {
editor.on('change', this.propagateChange, this);
}
// If 'undo' plugin is not loaded, listen to 'selectionCheck' event instead. (#54).
else {
editor.on('selectionCheck', this.propagateChange, this);
}
};
CKEditorComponent.prototype.propagateChange = function (event) {
var _this = this;
this.ngZone.run(function () {
var newData = _this.instance.getData();
if (event.name == 'change') {
_this.change.emit(event);
}
/** @type {?} */
var isString = typeof plugins === 'string';
if (isString) {
plugins = (( /** @type {?} */(plugins))).split(',');
else if (event.name == 'dataReady') {
_this.dataReady.emit(event);
}
plugins = (( /** @type {?} */(plugins))).filter(( /**
* @param {?} plugin
* @return {?}
*/function (plugin) { return plugin !== toRemove; }));
if (isString) {
plugins = (( /** @type {?} */(plugins))).join(',');
if (newData === _this.data) {
return;
}
return plugins;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createInitialElement = /**
* @private
* @return {?}
*/
function () {
// Render editor outside of component so it won't be removed from DOM before `instanceReady`.
this.wrapper = document.createElement('div');
/** @type {?} */
var element = document.createElement(this.tagName);
this.wrapper.setAttribute('style', 'display:none;');
document.body.appendChild(this.wrapper);
this.wrapper.appendChild(element);
return element;
};
CKEditorComponent.decorators = [
{ type: core.Component, args: [{
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: forms.NG_VALUE_ACCESSOR,
useExisting: core.forwardRef(( /**
* @return {?}
*/function () { return CKEditorComponent; })),
multi: true,
}
]
}] }
];
/** @nocollapse */
CKEditorComponent.ctorParameters = function () {
return [
{ type: core.ElementRef },
{ type: core.NgZone }
];
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
});
};
CKEditorComponent.propDecorators = {
config: [{ type: core.Input }],
tagName: [{ type: core.Input }],
type: [{ type: core.Input }],
data: [{ type: core.Input }],
readOnly: [{ type: core.Input }],
ready: [{ type: core.Output }],
change: [{ type: core.Output }],
dataChange: [{ type: core.Output }],
focus: [{ type: core.Output }],
blur: [{ type: core.Output }],
editorUrl: [{ type: core.Input }]
CKEditorComponent.prototype.ensureDivareaPlugin = function (config) {
var extraPlugins = config.extraPlugins, removePlugins = config.removePlugins;
extraPlugins = this.removePlugin(extraPlugins, 'divarea') || '';
extraPlugins = extraPlugins.concat(typeof extraPlugins === 'string' ? ',divarea' : 'divarea');
if (removePlugins && removePlugins.includes('divarea')) {
removePlugins = this.removePlugin(removePlugins, 'divarea');
console.warn('[CKEDITOR] divarea plugin is required to initialize editor using Angular integration.');
}
return Object.assign({}, config, { extraPlugins: extraPlugins, removePlugins: removePlugins });
};
CKEditorComponent.prototype.removePlugin = function (plugins, toRemove) {
if (!plugins) {
return null;
}
var isString = typeof plugins === 'string';
if (isString) {
plugins = plugins.split(',');
}
plugins = plugins.filter(function (plugin) { return plugin !== toRemove; });
if (isString) {
plugins = plugins.join(',');
}
return plugins;
};
var CKEditorComponent_1;
CKEditorComponent.ctorParameters = function () { return [
{ type: core.ElementRef },
{ type: core.NgZone }
]; };
__decorate([
core.Input()
], CKEditorComponent.prototype, "config", void 0);
__decorate([
core.Input()
], CKEditorComponent.prototype, "tagName", void 0);
__decorate([
core.Input()
], CKEditorComponent.prototype, "type", void 0);
__decorate([
core.Input()
], CKEditorComponent.prototype, "data", null);
__decorate([
core.Input()
], CKEditorComponent.prototype, "readOnly", null);
__decorate([
core.Output()
], CKEditorComponent.prototype, "ready", void 0);
__decorate([
core.Output()
], CKEditorComponent.prototype, "dataReady", void 0);
__decorate([
core.Output()
], CKEditorComponent.prototype, "change", void 0);
__decorate([
core.Output()
], CKEditorComponent.prototype, "dataChange", void 0);
__decorate([
core.Output()
], CKEditorComponent.prototype, "focus", void 0);
__decorate([
core.Output()
], CKEditorComponent.prototype, "blur", void 0);
__decorate([
core.Input()
], CKEditorComponent.prototype, "editorUrl", void 0);
CKEditorComponent = CKEditorComponent_1 = __decorate([
core.Component({
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: forms.NG_VALUE_ACCESSOR,
useExisting: core.forwardRef(function () { return CKEditorComponent_1; }),
multi: true,
}
]
})
], CKEditorComponent);
return CKEditorComponent;

@@ -468,26 +559,9 @@ }());

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
(function (CKEditor4) {
/**
* The CKEditor4 editor constructor.
* @record
*/
function Config() { }
CKEditor4.Config = Config;
/**
* The event object passed to CKEditor4 event callbacks.
*
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_eventInfo.html
* to learn more.
* @record
*/
function EventInfo() { }
CKEditor4.EventInfo = EventInfo;
})(exports.CKEditor4 || (exports.CKEditor4 = {}));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

@@ -497,19 +571,14 @@ var CKEditorModule = /** @class */ (function () {

}
CKEditorModule.decorators = [
{ type: core.NgModule, args: [{
imports: [forms.FormsModule, common.CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
},] }
];
CKEditorModule = __decorate([
core.NgModule({
imports: [forms.FormsModule, common.CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
})
], CKEditorModule);
return CKEditorModule;
}());
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
exports.CKEditorComponent = CKEditorComponent;
exports.CKEditorModule = CKEditorModule;
exports.CKEditorComponent = CKEditorComponent;

@@ -519,3 +588,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=ckeditor4-angular.umd.js.map
//# sourceMappingURL=ckeditor4-angular.umd.js.map

@@ -1,2 +0,15 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/forms"),require("load-script")):"function"==typeof define&&define.amd?define("ckeditor4-angular",["exports","@angular/common","@angular/core","@angular/forms","load-script"],e):e(t["ckeditor4-angular"]={},t.ng.common,t.ng.core,t.ng.forms,t.loadScript)}(this,function(t,e,n,i,r){"use strict";var o;r=r&&r.hasOwnProperty("default")?r["default"]:r;var a,s=(Object.defineProperty(u.prototype,"data",{get:function(){return this._data},set:function(t){if(t!==this._data)return this.instance?(this.instance.setData(t),void(this._data=this.instance.getData())):void(this._data=t)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"readOnly",{get:function(){return this.instance?this.instance.readOnly:this._readOnly},set:function(t){this.instance?this.instance.setReadOnly(t):this._readOnly=t},enumerable:!0,configurable:!0}),u.prototype.ngAfterViewInit=function(){var t=this;(function e(t){if(t.length<1)throw new TypeError("CKEditor URL must be a non-empty string.");return"CKEDITOR"in window?Promise.resolve(CKEDITOR):(o||(o=new Promise(function(e,n){r(t,function(t){t?n(t):(e(CKEDITOR),o=undefined)})})),o)})(this.editorUrl).then(function(){t.ngZone.runOutsideAngular(t.createEditor.bind(t))})["catch"](window.console.error)},u.prototype.ngOnDestroy=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.instance&&(t.instance.destroy(),t.instance=null)})},u.prototype.writeValue=function(t){this.data=t},u.prototype.registerOnChange=function(t){this.onChange=t},u.prototype.registerOnTouched=function(t){this.onTouched=t},u.prototype.createEditor=function(){var t=this.createInitialElement();this.config=this.ensureDivareaPlugin(this.config||{});var i="inline"===this.type?CKEDITOR.inline(t,this.config):CKEDITOR.replace(t,this.config);i.once("instanceReady",function(t){var e=this;this.instance=i,this.wrapper.removeAttribute("style"),this.elementRef.nativeElement.appendChild(this.wrapper),this.readOnly=null!==this._readOnly?this._readOnly:this.instance.readOnly,this.subscribe(this.instance);var n=i.undoManager;null!==this.data&&(n&&n.lock(),i.setData(this.data),this.data!==i.getData()&&i.fire("change"),n&&n.unlock()),this.ngZone.run(function(){e.ready.emit(t)})},this)},u.prototype.subscribe=function(n){var i=this;n.on("focus",function(t){i.ngZone.run(function(){i.focus.emit(t)})}),n.on("blur",function(t){i.ngZone.run(function(){i.onTouched&&i.onTouched(),i.blur.emit(t)})}),n.on("change",function(e){i.ngZone.run(function(){var t=n.getData();i.change.emit(e),t!==i.data&&(i._data=t,i.dataChange.emit(t),i.onChange&&i.onChange(t))})})},u.prototype.ensureDivareaPlugin=function(t){var e=t.extraPlugins,n=t.removePlugins;return e=(e=this.removePlugin(e,"divarea")||"").concat("string"==typeof e?",divarea":"divarea"),n&&n.includes("divarea")&&(n=this.removePlugin(n,"divarea"),console.warn("[CKEDITOR] divarea plugin is required to initialize editor using Angular integration.")),Object.assign({},t,{extraPlugins:e,removePlugins:n})},u.prototype.removePlugin=function(t,e){if(!t)return null;var n="string"==typeof t;return n&&(t=t.split(",")),t=t.filter(function(t){return t!==e}),n&&(t=t.join(",")),t},u.prototype.createInitialElement=function(){this.wrapper=document.createElement("div");var t=document.createElement(this.tagName);return this.wrapper.setAttribute("style","display:none;"),document.body.appendChild(this.wrapper),this.wrapper.appendChild(t),t},u.decorators=[{type:n.Component,args:[{selector:"ckeditor",template:"<ng-template></ng-template>",providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return u}),multi:!0}]}]}],u.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},u.propDecorators={config:[{type:n.Input}],tagName:[{type:n.Input}],type:[{type:n.Input}],data:[{type:n.Input}],readOnly:[{type:n.Input}],ready:[{type:n.Output}],change:[{type:n.Output}],dataChange:[{type:n.Output}],focus:[{type:n.Output}],blur:[{type:n.Output}],editorUrl:[{type:n.Input}]},u);function u(t,e){this.elementRef=t,this.ngZone=e,this.tagName="textarea",this.type="divarea",this.ready=new n.EventEmitter,this.change=new n.EventEmitter,this.dataChange=new n.EventEmitter,this.focus=new n.EventEmitter,this.blur=new n.EventEmitter,this._readOnly=null,this._data=null,this.editorUrl="https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js"}(a=t.CKEditor4||(t.CKEditor4={})).Config=function l(){},a.EventInfo=function p(){};var c=(d.decorators=[{type:n.NgModule,args:[{imports:[i.FormsModule,e.CommonModule],declarations:[s],exports:[s]}]}],d);function d(){}t.CKEditorModule=c,t.CKEditorComponent=s,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms"),require("load-script")):"function"==typeof define&&define.amd?define("ckeditor4-angular",["exports","@angular/core","@angular/common","@angular/forms","load-script"],e):e((t=t||self)["ckeditor4-angular"]={},t.ng.core,t.ng.common,t.ng.forms,t.loadScript)}(this,(function(t,e,n,i,o){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o;var r;function a(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var u=t.length-1;u>=0;u--)(o=t[u])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
var u=function(){function t(t,n){this.elementRef=t,this.ngZone=n,this.tagName="textarea",this.type="classic",this.ready=new e.EventEmitter,this.dataReady=new e.EventEmitter,this.change=new e.EventEmitter,this.dataChange=new e.EventEmitter,this.focus=new e.EventEmitter,this.blur=new e.EventEmitter,this._readOnly=null,this._data=null,this.editorUrl="https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js"}var n;return n=t,Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(t){if(t!==this._data)return this.instance?(this.instance.setData(t),void(this._data=this.instance.getData())):void(this._data=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.instance?this.instance.readOnly:this._readOnly},set:function(t){this.instance?this.instance.setReadOnly(t):this._readOnly=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;(function(t){if(t.length<1)throw new TypeError("CKEditor URL must be a non-empty string.");return"CKEDITOR"in window?Promise.resolve(CKEDITOR):(r||(r=new Promise((function(e,n){o(t,(function(t){t?n(t):(e(CKEDITOR),r=void 0)}))}))),r)})(this.editorUrl).then((function(){t.ngZone.runOutsideAngular(t.createEditor.bind(t))})).catch(window.console.error)},t.prototype.ngOnDestroy=function(){var t=this;this.ngZone.runOutsideAngular((function(){t.instance&&(t.instance.destroy(),t.instance=null)}))},t.prototype.writeValue=function(t){this.data=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.createEditor=function(){var t=this,e=document.createElement(this.tagName);this.elementRef.nativeElement.appendChild(e),"divarea"===this.type&&(this.config=this.ensureDivareaPlugin(this.config||{}));var n="inline"===this.type?CKEDITOR.inline(e,this.config):CKEDITOR.replace(e,this.config);n.once("instanceReady",(function(e){t.instance=n,t.readOnly=null!==t._readOnly?t._readOnly:t.instance.readOnly,t.subscribe(t.instance);var i=n.undoManager;null!==t.data?(i&&i.lock(),n.setData(t.data,{callback:function(){t.data!==n.getData()&&(i?n.fire("change"):n.fire("dataReady")),i&&i.unlock(),t.ngZone.run((function(){t.ready.emit(e)}))}})):t.ngZone.run((function(){t.ready.emit(e)}))}))},t.prototype.subscribe=function(t){var e=this;t.on("focus",(function(t){e.ngZone.run((function(){e.focus.emit(t)}))})),t.on("blur",(function(t){e.ngZone.run((function(){e.onTouched&&e.onTouched(),e.blur.emit(t)}))})),t.on("dataReady",this.propagateChange,this),this.instance.undoManager?t.on("change",this.propagateChange,this):t.on("selectionCheck",this.propagateChange,this)},t.prototype.propagateChange=function(t){var e=this;this.ngZone.run((function(){var n=e.instance.getData();"change"==t.name?e.change.emit(t):"dataReady"==t.name&&e.dataReady.emit(t),n!==e.data&&(e._data=n,e.dataChange.emit(n),e.onChange&&e.onChange(n))}))},t.prototype.ensureDivareaPlugin=function(t){var e=t.extraPlugins,n=t.removePlugins;return e=(e=this.removePlugin(e,"divarea")||"").concat("string"==typeof e?",divarea":"divarea"),n&&n.includes("divarea")&&(n=this.removePlugin(n,"divarea"),console.warn("[CKEDITOR] divarea plugin is required to initialize editor using Angular integration.")),Object.assign({},t,{extraPlugins:e,removePlugins:n})},t.prototype.removePlugin=function(t,e){if(!t)return null;var n="string"==typeof t;return n&&(t=t.split(",")),t=t.filter((function(t){return t!==e})),n&&(t=t.join(",")),t},t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone}]},a([e.Input()],t.prototype,"config",void 0),a([e.Input()],t.prototype,"tagName",void 0),a([e.Input()],t.prototype,"type",void 0),a([e.Input()],t.prototype,"data",null),a([e.Input()],t.prototype,"readOnly",null),a([e.Output()],t.prototype,"ready",void 0),a([e.Output()],t.prototype,"dataReady",void 0),a([e.Output()],t.prototype,"change",void 0),a([e.Output()],t.prototype,"dataChange",void 0),a([e.Output()],t.prototype,"focus",void 0),a([e.Output()],t.prototype,"blur",void 0),a([e.Input()],t.prototype,"editorUrl",void 0),t=n=a([e.Component({selector:"ckeditor",template:"<ng-template></ng-template>",providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:e.forwardRef((function(){return n})),multi:!0}]})],t)}(),s=function(){function t(){}return t=a([e.NgModule({imports:[i.FormsModule,n.CommonModule],declarations:[u],exports:[u]})],t)}();
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/t.CKEditorComponent=u,t.CKEditorModule=s,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=ckeditor4-angular.umd.min.js.map

@@ -55,5 +55,14 @@ /**

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
dataReady: EventEmitter<CKEditor4.EventInfo>;
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -85,6 +94,2 @@ change: EventEmitter<CKEditor4.EventInfo>;

/**
* Wrapper element used to initialize editor.
*/
wrapper: HTMLElement;
/**
* If the component is read–only before the editor instance is created, it remembers that state,

@@ -112,6 +117,6 @@ * so the editor can become read–only once it is ready.

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
editorUrl: string;
constructor(elementRef: ElementRef<HTMLElement>, ngZone: NgZone);
constructor(elementRef: ElementRef, ngZone: NgZone);
ngAfterViewInit(): void;

@@ -124,5 +129,5 @@ ngOnDestroy(): void;

private subscribe;
private propagateChange;
private ensureDivareaPlugin;
private removePlugin;
private createInitialElement;
}

@@ -16,2 +16,8 @@ /**

/**
* The CKEditor4 editor.
*/
interface Editor {
[key: string]: any;
}
/**
* The CKEditor4 editor interface type.

@@ -23,3 +29,4 @@ * See https://ckeditor.com/docs/ckeditor4/latest/guide/dev_uitypes.html

DIVAREA = "divarea",
INLINE = "inline"
INLINE = "inline",
CLASSIC = "classic"
}

@@ -26,0 +33,0 @@ /**

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"exports":[{"from":"./ckeditor"}],"metadata":{"CKEditorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":11,"character":12},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":25}],"declarations":[{"__symbolic":"reference","name":"CKEditorComponent"}],"exports":[{"__symbolic":"reference","name":"CKEditorComponent"}]}]}],"members":{}},"CKEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"selector":"ckeditor","template":"<ng-template></ng-template>","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":33,"character":12},"useExisting":{"__symbolic":"reference","name":"CKEditorComponent"},"multi":true}]}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":2}}]}],"tagName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":2}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":2}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":2}}]}],"readOnly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":98,"character":2}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":121,"character":2}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":128,"character":2}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":136,"character":2}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":143,"character":2}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":150,"character":2}}]}],"editorUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":191,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ElementRef","module":"@angular/core","arguments":[{"__symbolic":"error","message":"Could not resolve type","line":193,"character":45,"context":{"typeName":"HTMLElement"},"module":"./ckeditor.component"}]},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":193,"character":75}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createEditor":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"ensureDivareaPlugin":[{"__symbolic":"method"}],"removePlugin":[{"__symbolic":"method"}],"createInitialElement":[{"__symbolic":"method"}]}}},"origins":{"CKEditorModule":"./ckeditor.module","CKEditorComponent":"./ckeditor.component"},"importAs":"ckeditor4-angular"}
{"__symbolic":"module","version":4,"exports":[{"from":"./ckeditor"}],"metadata":{"CKEditorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":11,"character":12},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":25}],"declarations":[{"__symbolic":"reference","name":"CKEditorComponent"}],"exports":[{"__symbolic":"reference","name":"CKEditorComponent"}]}]}],"members":{}},"CKEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"selector":"ckeditor","template":"<ng-template></ng-template>","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":33,"character":12},"useExisting":{"__symbolic":"reference","name":"CKEditorComponent"},"multi":true}]}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":2}}]}],"tagName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":2}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":2}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":73,"character":2}}]}],"readOnly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":98,"character":2}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":121,"character":2}}]}],"dataReady":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":129,"character":2}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":138,"character":2}}]}],"dataChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":146,"character":2}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":153,"character":2}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":160,"character":2}}]}],"editorUrl":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":196,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":198,"character":34},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":198,"character":62}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createEditor":[{"__symbolic":"method"}],"subscribe":[{"__symbolic":"method"}],"propagateChange":[{"__symbolic":"method"}],"ensureDivareaPlugin":[{"__symbolic":"method"}],"removePlugin":[{"__symbolic":"method"}]}}},"origins":{"CKEditorModule":"./ckeditor.module","CKEditorComponent":"./ckeditor.component"},"importAs":"ckeditor4-angular"}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef } from '@angular/core';
var CKEditorComponent_1;
import * as tslib_1 from "tslib";
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { getEditorNamespace } from './ckeditor.helpers';
export class CKEditorComponent {
/**
* @param {?} elementRef
* @param {?} ngZone
*/
let CKEditorComponent = CKEditorComponent_1 = class CKEditorComponent {
constructor(elementRef, ngZone) {

@@ -36,3 +30,3 @@ this.elementRef = elementRef;

*/
this.type = "divarea" /* DIVAREA */;
this.type = "classic" /* CLASSIC */;
/**

@@ -45,5 +39,14 @@ * Fires when the editor is ready. It corresponds with the `editor#instanceReady`

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
this.dataReady = new EventEmitter();
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -79,5 +82,5 @@ this.change = new EventEmitter();

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
this.editorUrl = 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js';
this.editorUrl = 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js';
}

@@ -90,4 +93,2 @@ /**

* See https://angular.io/api/forms/NgModel to learn more.
* @param {?} data
* @return {?}
*/

@@ -106,5 +107,2 @@ set data(data) {

}
/**
* @return {?}
*/
get data() {

@@ -117,4 +115,2 @@ return this._data;

* to learn more.
* @param {?} isReadOnly
* @return {?}
*/

@@ -129,5 +125,2 @@ set readOnly(isReadOnly) {

}
/**
* @return {?}
*/
get readOnly() {

@@ -139,21 +132,9 @@ if (this.instance) {

}
/**
* @return {?}
*/
ngAfterViewInit() {
getEditorNamespace(this.editorUrl).then((/**
* @return {?}
*/
() => {
getEditorNamespace(this.editorUrl).then(() => {
this.ngZone.runOutsideAngular(this.createEditor.bind(this));
})).catch(window.console.error);
}).catch(window.console.error);
}
/**
* @return {?}
*/
ngOnDestroy() {
this.ngZone.runOutsideAngular((/**
* @return {?}
*/
() => {
this.ngZone.runOutsideAngular(() => {
if (this.instance) {

@@ -163,95 +144,57 @@ this.instance.destroy();

}
}));
});
}
/**
* @param {?} value
* @return {?}
*/
writeValue(value) {
this.data = value;
}
/**
* @param {?} callback
* @return {?}
*/
registerOnChange(callback) {
this.onChange = callback;
}
/**
* @param {?} callback
* @return {?}
*/
registerOnTouched(callback) {
this.onTouched = callback;
}
/**
* @private
* @return {?}
*/
createEditor() {
/** @type {?} */
const element = this.createInitialElement();
this.config = this.ensureDivareaPlugin(this.config || {});
/** @type {?} */
const instance = this.type === "inline" /* INLINE */ ?
CKEDITOR.inline(element, this.config)
const element = document.createElement(this.tagName);
this.elementRef.nativeElement.appendChild(element);
if (this.type === "divarea" /* DIVAREA */) {
this.config = this.ensureDivareaPlugin(this.config || {});
}
const instance = this.type === "inline" /* INLINE */
? CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
instance.once('instanceReady', evt => {
this.instance = instance;
this.wrapper.removeAttribute('style');
this.elementRef.nativeElement.appendChild(this.wrapper);
// Read only state may change during instance initialization.
this.readOnly = this._readOnly !== null ? this._readOnly : this.instance.readOnly;
this.subscribe(this.instance);
/** @type {?} */
const undo = instance.undoManager;
if (this.data !== null) {
undo && undo.lock();
instance.setData(this.data);
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
instance.fire('change');
}
undo && undo.unlock();
instance.setData(this.data, { callback: () => {
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
undo ? instance.fire('change') : instance.fire('dataReady');
}
undo && undo.unlock();
this.ngZone.run(() => {
this.ready.emit(evt);
});
} });
}
this.ngZone.run((/**
* @return {?}
*/
() => {
this.ready.emit(evt);
}));
}), this);
else {
this.ngZone.run(() => {
this.ready.emit(evt);
});
}
});
}
/**
* @private
* @param {?} editor
* @return {?}
*/
subscribe(editor) {
editor.on('focus', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
editor.on('focus', evt => {
this.ngZone.run(() => {
this.focus.emit(evt);
}));
}));
editor.on('blur', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
});
});
editor.on('blur', evt => {
this.ngZone.run(() => {
if (this.onTouched) {

@@ -261,32 +204,32 @@ this.onTouched();

this.blur.emit(evt);
}));
}));
editor.on('change', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
/** @type {?} */
const newData = editor.getData();
this.change.emit(evt);
if (newData === this.data) {
return;
}
this._data = newData;
this.dataChange.emit(newData);
if (this.onChange) {
this.onChange(newData);
}
}));
}));
});
});
editor.on('dataReady', this.propagateChange, this);
if (this.instance.undoManager) {
editor.on('change', this.propagateChange, this);
}
// If 'undo' plugin is not loaded, listen to 'selectionCheck' event instead. (#54).
else {
editor.on('selectionCheck', this.propagateChange, this);
}
}
/**
* @private
* @param {?} config
* @return {?}
*/
propagateChange(event) {
this.ngZone.run(() => {
const newData = this.instance.getData();
if (event.name == 'change') {
this.change.emit(event);
}
else if (event.name == 'dataReady') {
this.dataReady.emit(event);
}
if (newData === this.data) {
return;
}
this._data = newData;
this.dataChange.emit(newData);
if (this.onChange) {
this.onChange(newData);
}
});
}
ensureDivareaPlugin(config) {

@@ -302,8 +245,2 @@ let { extraPlugins, removePlugins } = config;

}
/**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
removePlugin(plugins, toRemove) {

@@ -313,49 +250,13 @@ if (!plugins) {

}
/** @type {?} */
const isString = typeof plugins === 'string';
if (isString) {
plugins = ((/** @type {?} */ (plugins))).split(',');
plugins = plugins.split(',');
}
plugins = ((/** @type {?} */ (plugins))).filter((/**
* @param {?} plugin
* @return {?}
*/
plugin => plugin !== toRemove));
plugins = plugins.filter(plugin => plugin !== toRemove);
if (isString) {
plugins = ((/** @type {?} */ (plugins))).join(',');
plugins = plugins.join(',');
}
return plugins;
}
/**
* @private
* @return {?}
*/
createInitialElement() {
// Render editor outside of component so it won't be removed from DOM before `instanceReady`.
this.wrapper = document.createElement('div');
/** @type {?} */
const element = document.createElement(this.tagName);
this.wrapper.setAttribute('style', 'display:none;');
document.body.appendChild(this.wrapper);
this.wrapper.appendChild(element);
return element;
}
}
CKEditorComponent.decorators = [
{ type: Component, args: [{
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
() => CKEditorComponent)),
multi: true,
}
]
}] }
];
/** @nocollapse */
};
CKEditorComponent.ctorParameters = () => [

@@ -365,134 +266,52 @@ { type: ElementRef },

];
CKEditorComponent.propDecorators = {
config: [{ type: Input }],
tagName: [{ type: Input }],
type: [{ type: Input }],
data: [{ type: Input }],
readOnly: [{ type: Input }],
ready: [{ type: Output }],
change: [{ type: Output }],
dataChange: [{ type: Output }],
focus: [{ type: Output }],
blur: [{ type: Output }],
editorUrl: [{ type: Input }]
};
if (false) {
/**
* The configuration of the editor.
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
* to learn more.
* @type {?}
*/
CKEditorComponent.prototype.config;
/**
* Tag name of the editor component.
*
* The default tag is `textarea`.
* @type {?}
*/
CKEditorComponent.prototype.tagName;
/**
* The type of the editor interface.
*
* By default editor interface will be initialized as `divarea` editor which is an inline editor with fixed UI.
* You can change interface type by choosing between `divarea` and `inline` editor interface types.
*
* See https://ckeditor.com/docs/ckeditor4/latest/guide/dev_uitypes.html
* and https://ckeditor.com/docs/ckeditor4/latest/examples/fixedui.html
* to learn more.
* @type {?}
*/
CKEditorComponent.prototype.type;
/**
* Fires when the editor is ready. It corresponds with the `editor#instanceReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-instanceReady
* event.
* @type {?}
*/
CKEditorComponent.prototype.ready;
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* @type {?}
*/
CKEditorComponent.prototype.change;
/**
* Fires when the content of the editor has changed. In contrast to `change` - only emits when
* data really changed thus can be successfully used with `[data]` and two way `[(data)]` binding.
*
* See more: https://angular.io/guide/template-syntax#two-way-binding---
* @type {?}
*/
CKEditorComponent.prototype.dataChange;
/**
* Fires when the editing view of the editor is focused. It corresponds with the `editor#focus`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-focus
* event.
* @type {?}
*/
CKEditorComponent.prototype.focus;
/**
* Fires when the editing view of the editor is blurred. It corresponds with the `editor#blur`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-blur
* event.
* @type {?}
*/
CKEditorComponent.prototype.blur;
/**
* The instance of the editor created by this component.
* @type {?}
*/
CKEditorComponent.prototype.instance;
/**
* Wrapper element used to initialize editor.
* @type {?}
*/
CKEditorComponent.prototype.wrapper;
/**
* If the component is read–only before the editor instance is created, it remembers that state,
* so the editor can become read–only once it is ready.
* @type {?}
* @private
*/
CKEditorComponent.prototype._readOnly;
/**
* A callback executed when the content of the editor changes. Part of the
* `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.
*
* Note: Unset unless the component uses the `ngModel`.
* @type {?}
*/
CKEditorComponent.prototype.onChange;
/**
* A callback executed when the editor has been blurred. Part of the
* `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.
*
* Note: Unset unless the component uses the `ngModel`.
* @type {?}
*/
CKEditorComponent.prototype.onTouched;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype._data;
/**
* CKEditor 4 script url address. Script will be loaded only if CKEDITOR namespace is missing.
*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* @type {?}
*/
CKEditorComponent.prototype.editorUrl;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype.elementRef;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype.ngZone;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vY2tlZGl0b3I0LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFLQSxPQUFPLEVBQ04sU0FBUyxFQUNULE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxF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b2N1bWVudC5jcmVhdGVFbGVtZW50KCAnZGl2JyApO1xuXHRcdGNvbnN0IGVsZW1lbnQgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCB0aGlzLnRhZ05hbWUgKTtcblxuXHRcdHRoaXMud3JhcHBlci5zZXRBdHRyaWJ1dGUoICdzdHlsZScsICdkaXNwbGF5Om5vbmU7JyApO1xuXG5cdFx0ZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZCggdGhpcy53cmFwcGVyICk7XG5cdFx0dGhpcy53cmFwcGVyLmFwcGVuZENoaWxkKCBlbGVtZW50ICk7XG5cblx0XHRyZXR1cm4gZWxlbWVudDtcblx0fVxufVxuIl19
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "config", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "tagName", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "type", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "data", null);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "readOnly", null);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "ready", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "dataReady", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "change", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "dataChange", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "focus", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "blur", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "editorUrl", void 0);
CKEditorComponent = CKEditorComponent_1 = tslib_1.__decorate([
Component({
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => CKEditorComponent_1),
multi: true,
}
]
})
], CKEditorComponent);
export { CKEditorComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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yA9IHRoaXMucmVtb3ZlUGx1Z2luKCByZW1vdmVQbHVnaW5zLCAnZGl2YXJlYScgKTtcblxuXHRcdFx0Y29uc29sZS53YXJuKCAnW0NLRURJVE9SXSBkaXZhcmVhIHBsdWdpbiBpcyByZXF1aXJlZCB0byBpbml0aWFsaXplIGVkaXRvciB1c2luZyBBbmd1bGFyIGludGVncmF0aW9uLicgKTtcblx0XHR9XG5cblx0XHRyZXR1cm4gT2JqZWN0LmFzc2lnbigge30sIGNvbmZpZywgeyBleHRyYVBsdWdpbnMsIHJlbW92ZVBsdWdpbnMgfSApO1xuXHR9XG5cblx0cHJpdmF0ZSByZW1vdmVQbHVnaW4oIHBsdWdpbnM6IHN0cmluZyB8IHN0cmluZ1tdLCB0b1JlbW92ZTogc3RyaW5nICk6IHN0cmluZyB8IHN0cmluZ1tdIHtcblx0XHRpZiAoICFwbHVnaW5zICkge1xuXHRcdFx0cmV0dXJuIG51bGw7XG5cdFx0fVxuXG5cdFx0Y29uc3QgaXNTdHJpbmcgPSB0eXBlb2YgcGx1Z2lucyA9PT0gJ3N0cmluZyc7XG5cblx0XHRpZiAoIGlzU3RyaW5nICkge1xuXHRcdFx0cGx1Z2lucyA9ICggcGx1Z2lucyBhcyBzdHJpbmcgKS5zcGxpdCggJywnICk7XG5cdFx0fVxuXG5cdFx0cGx1Z2lucyA9ICggcGx1Z2lucyBhcyBzdHJpbmdbXSApLmZpbHRlciggcGx1Z2luID0+IHBsdWdpbiAhPT0gdG9SZW1vdmUgKTtcblxuXHRcdGlmICggaXNTdHJpbmcgKSB7XG5cdFx0XHRwbHVnaW5zID0gKCBwbHVnaW5zIGFzIHN0cmluZ1tdICkuam9pbiggJywnICk7XG5cdFx0fVxuXG5cdFx0cmV0dXJuIHBsdWdpbnM7XG5cdH1cbn1cbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.

@@ -10,8 +6,3 @@ * For licensing, see LICENSE.md.

import loadScript from 'load-script';
/** @type {?} */
let promise;
/**
* @param {?} editorURL
* @return {?}
*/
export function getEditorNamespace(editorURL) {

@@ -25,13 +16,4 @@ if (editorURL.length < 1) {

else if (!promise) {
promise = new Promise((/**
* @param {?} scriptResolve
* @param {?} scriptReject
* @return {?}
*/
(scriptResolve, scriptReject) => {
loadScript(editorURL, (/**
* @param {?} err
* @return {?}
*/
err => {
promise = new Promise((scriptResolve, scriptReject) => {
loadScript(editorURL, err => {
if (err) {

@@ -44,7 +26,7 @@ scriptReject(err);

}
}));
}));
});
});
}
return promise;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2NrZWRpdG9yNC1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IuaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLE9BQU8sVUFBVSxNQUFNLGFBQWEsQ0FBQzs7SUFHakMsT0FBTzs7Ozs7QUFFWCxNQUFNLFVBQVUsa0JBQWtCLENBQUUsU0FBaUI7SUFDcEQsSUFBSyxTQUFTLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRztRQUMzQixNQUFNLElBQUksU0FBUyxDQUFFLDBDQUEwQyxDQUFFLENBQUM7S0FDbEU7SUFFRCxJQUFLLFVBQVUsSUFBSSxNQUFNLEVBQUc7UUFDM0IsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFFLFFBQVEsQ0FBRSxDQUFDO0tBQ25DO1NBQU0sSUFBSyxDQUFDLE9BQU8sRUFBRztRQUN0QixPQUFPLEdBQUcsSUFBSSxPQUFPOzs7OztRQUFFLENBQUUsYUFBYSxFQUFFLFlBQVksRUFBRyxFQUFFO1lBQ3hELFVBQVUsQ0FBR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gPSBuZXcgUHJvbWlzZSggKCBzY3JpcHRSZXNvbHZlLCBzY3JpcHRSZWplY3QgKSA9PiB7XG5cdFx0XHRsb2FkU2NyaXB0KCBlZGl0b3JVUkwsIGVyciA9PiB7XG5cdFx0XHRcdGlmICggZXJyICkge1xuXHRcdFx0XHRcdHNjcmlwdFJlamVjdCggZXJyICk7XG5cdFx0XHRcdH0gZWxzZSB7XG5cdFx0XHRcdFx0c2NyaXB0UmVzb2x2ZSggQ0tFRElUT1IgKTtcblx0XHRcdFx0XHRwcm9taXNlID0gdW5kZWZpbmVkO1xuXHRcdFx0XHR9XG5cdFx0XHR9ICk7XG5cdFx0fSApO1xuXHR9XG5cblx0cmV0dXJuIHByb21pc2U7XG59XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* Basic typings for the CKEditor4 elements.
*/
export var CKEditor4;
(function (CKEditor4) {
/**
* The CKEditor4 editor constructor.
* @record
*/
function Config() { }
CKEditor4.Config = Config;
/**
* The event object passed to CKEditor4 event callbacks.
*
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_eventInfo.html
* to learn more.
* @record
*/
function EventInfo() { }
CKEditor4.EventInfo = EventInfo;
if (false) {
/** @type {?} */
EventInfo.prototype.name;
/** @type {?} */
EventInfo.prototype.editor;
/** @type {?} */
EventInfo.prototype.data;
/** @type {?} */
EventInfo.prototype.listenerData;
/** @type {?} */
EventInfo.prototype.sender;
/**
* @return {?}
*/
EventInfo.prototype.cancel = function () { };
/**
* @return {?}
*/
EventInfo.prototype.removeListener = function () { };
/**
* @return {?}
*/
EventInfo.prototype.stop = function () { };
}
})(CKEditor4 || (CKEditor4 = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl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QgcGFzc2VkIHRvIENLRWRpdG9yNCBldmVudCBjYWxsYmFja3MuXG5cdCAqXG5cdCAqIFNlZSBodHRwczovL2NrZWRpdG9yLmNvbS9kb2NzL2NrZWRpdG9yNC9sYXRlc3QvYXBpL0NLRURJVE9SX2V2ZW50SW5mby5odG1sXG5cdCAqIHRvIGxlYXJuIG1vcmUuXG5cdCAqL1xuXHRleHBvcnQgaW50ZXJmYWNlIEV2ZW50SW5mbyB7XG5cdFx0cmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuXHRcdHJlYWRvbmx5IGVkaXRvcjogYW55O1xuXHRcdHJlYWRvbmx5IGRhdGE6IHtcblx0XHRcdFsga2V5OiBzdHJpbmcgXTogYW55O1xuXHRcdH07XG5cdFx0cmVhZG9ubHkgbGlzdGVuZXJEYXRhOiB7XG5cdFx0XHRbIGtleTogc3RyaW5nIF06IGFueTtcblx0XHR9O1xuXHRcdHJlYWRvbmx5IHNlbmRlcjoge1xuXHRcdFx0WyBrZXk6IHN0cmluZyBdOiBhbnk7XG5cdFx0fTtcblxuXHRcdGNhbmNlbCgpOiB2b2lkO1xuXG5cdFx0cmVtb3ZlTGlzdGVuZXIoKTogdm9pZDtcblxuXHRcdHN0b3AoKTogdm9pZDtcblx0fVxufVxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import * as tslib_1 from "tslib";
import { NgModule } from '@angular/core';

@@ -13,13 +10,14 @@ import { CommonModule } from '@angular/common';

import { CKEditorComponent } from './ckeditor.component';
export class CKEditorModule {
}
CKEditorModule.decorators = [
{ type: NgModule, args: [{
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
},] }
];
export { CKEditor4 } from './ckeditor';
let CKEditorModule = class CKEditorModule {
};
CKEditorModule = tslib_1.__decorate([
NgModule({
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
})
], CKEditorModule);
export { CKEditorModule };
export * from './ckeditor';
export { CKEditorComponent } from './ckeditor.component';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vY2tlZGl0b3I0LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFLQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFPekQsTUFBTSxPQUFPLGNBQWM7OztZQUwxQixRQUFRLFNBQUU7Z0JBQ1YsT0FBTyxFQUFFLENBQUUsV0FBVyxFQUFFLFlBQVksQ0FBRTtnQkFDdEMsWUFBWSxFQUFFLENBQUUsaUJBQWlCLENBQUU7Z0JBQ25DLE9BQU8sRUFBRSxDQUFFLGlCQUFpQixDQUFFO2FBQzlCOztBQUdELDBCQUFjLFlBQVksQ0FBQztBQUMzQixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2UgQ29weXJpZ2h0IChjKSAyMDAzLTIwMTksIENLU291cmNlIC0gRnJlZGVyaWNvIEtuYWJiZW4uIEFsbCByaWdodHMgcmVzZXJ2ZWQuXG4gKiBGb3IgbGljZW5zaW5nLCBzZWUgTElDRU5TRS5tZC5cbiAq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XRvck1vZHVsZSB7XG59XG5leHBvcnQgKiBmcm9tICcuL2NrZWRpdG9yJztcbmV4cG9ydCB7IENLRWRpdG9yQ29tcG9uZW50IH0gZnJvbSAnLi9ja2VkaXRvci5jb21wb25lbnQnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { CKEditorModule, CKEditorComponent, CKEditor4 } from './ckeditor.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3I0LWFuZ3VsYXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ja2VkaXRvcjQtYW5ndWxhci8iLCJzb3VyY2VzIjpbImNrZWRpdG9yNC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2REFBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19
export * from './ckeditor.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3I0LWFuZ3VsYXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ja2VkaXRvcjQtYW5ndWxhci8iLCJzb3VyY2VzIjpbImNrZWRpdG9yNC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef } from '@angular/core';
import * as tslib_1 from "tslib";
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';

@@ -32,3 +29,3 @@ import { getEditorNamespace } from './ckeditor.helpers';

*/
this.type = "divarea" /* DIVAREA */;
this.type = "classic" /* CLASSIC */;
/**

@@ -41,5 +38,14 @@ * Fires when the editor is ready. It corresponds with the `editor#instanceReady`

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
this.dataReady = new EventEmitter();
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -75,11 +81,9 @@ this.change = new EventEmitter();

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
this.editorUrl = 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js';
this.editorUrl = 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js';
}
CKEditorComponent_1 = CKEditorComponent;
Object.defineProperty(CKEditorComponent.prototype, "data", {
get: /**
* @return {?}
*/
function () {
get: function () {
return this._data;

@@ -94,12 +98,3 @@ },

*/
set: /**
* Keeps track of the editor's data.
*
* It's also decorated as an input which is useful when not using the ngModel.
*
* See https://angular.io/api/forms/NgModel to learn more.
* @param {?} data
* @return {?}
*/
function (data) {
set: function (data) {
if (data === this._data) {

@@ -120,6 +115,3 @@ return;

Object.defineProperty(CKEditorComponent.prototype, "readOnly", {
get: /**
* @return {?}
*/
function () {
get: function () {
if (this.instance) {

@@ -135,10 +127,3 @@ return this.instance.readOnly;

*/
set: /**
* When set `true`, the editor becomes read-only.
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#property-readOnly
* to learn more.
* @param {?} isReadOnly
* @return {?}
*/
function (isReadOnly) {
set: function (isReadOnly) {
if (this.instance) {

@@ -154,29 +139,11 @@ this.instance.setReadOnly(isReadOnly);

});
/**
* @return {?}
*/
CKEditorComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
CKEditorComponent.prototype.ngAfterViewInit = function () {
var _this = this;
getEditorNamespace(this.editorUrl).then((/**
* @return {?}
*/
function () {
getEditorNamespace(this.editorUrl).then(function () {
_this.ngZone.runOutsideAngular(_this.createEditor.bind(_this));
})).catch(window.console.error);
}).catch(window.console.error);
};
/**
* @return {?}
*/
CKEditorComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
CKEditorComponent.prototype.ngOnDestroy = function () {
var _this = this;
this.ngZone.runOutsideAngular((/**
* @return {?}
*/
function () {
this.ngZone.runOutsideAngular(function () {
if (_this.instance) {

@@ -186,118 +153,59 @@ _this.instance.destroy();

}
}));
});
};
/**
* @param {?} value
* @return {?}
*/
CKEditorComponent.prototype.writeValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
CKEditorComponent.prototype.writeValue = function (value) {
this.data = value;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnChange = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
CKEditorComponent.prototype.registerOnChange = function (callback) {
this.onChange = callback;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnTouched = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
CKEditorComponent.prototype.registerOnTouched = function (callback) {
this.onTouched = callback;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createEditor = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
var element = this.createInitialElement();
this.config = this.ensureDivareaPlugin(this.config || {});
/** @type {?} */
var instance = this.type === "inline" /* INLINE */ ?
CKEDITOR.inline(element, this.config)
CKEditorComponent.prototype.createEditor = function () {
var _this = this;
var element = document.createElement(this.tagName);
this.elementRef.nativeElement.appendChild(element);
if (this.type === "divarea" /* DIVAREA */) {
this.config = this.ensureDivareaPlugin(this.config || {});
}
var instance = this.type === "inline" /* INLINE */
? CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
var _this = this;
this.instance = instance;
this.wrapper.removeAttribute('style');
this.elementRef.nativeElement.appendChild(this.wrapper);
instance.once('instanceReady', function (evt) {
_this.instance = instance;
// Read only state may change during instance initialization.
this.readOnly = this._readOnly !== null ? this._readOnly : this.instance.readOnly;
this.subscribe(this.instance);
/** @type {?} */
_this.readOnly = _this._readOnly !== null ? _this._readOnly : _this.instance.readOnly;
_this.subscribe(_this.instance);
var undo = instance.undoManager;
if (this.data !== null) {
if (_this.data !== null) {
undo && undo.lock();
instance.setData(this.data);
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
instance.fire('change');
}
undo && undo.unlock();
instance.setData(_this.data, { callback: function () {
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (_this.data !== instance.getData()) {
undo ? instance.fire('change') : instance.fire('dataReady');
}
undo && undo.unlock();
_this.ngZone.run(function () {
_this.ready.emit(evt);
});
} });
}
this.ngZone.run((/**
* @return {?}
*/
function () {
_this.ready.emit(evt);
}));
}), this);
else {
_this.ngZone.run(function () {
_this.ready.emit(evt);
});
}
});
};
/**
* @private
* @param {?} editor
* @return {?}
*/
CKEditorComponent.prototype.subscribe = /**
* @private
* @param {?} editor
* @return {?}
*/
function (editor) {
CKEditorComponent.prototype.subscribe = function (editor) {
var _this = this;
editor.on('focus', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
editor.on('focus', function (evt) {
_this.ngZone.run(function () {
_this.focus.emit(evt);
}));
}));
editor.on('blur', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
});
});
editor.on('blur', function (evt) {
_this.ngZone.run(function () {
if (_this.onTouched) {

@@ -307,38 +215,34 @@ _this.onTouched();

_this.blur.emit(evt);
}));
}));
editor.on('change', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
/** @type {?} */
var newData = editor.getData();
_this.change.emit(evt);
if (newData === _this.data) {
return;
}
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
}));
}));
});
});
editor.on('dataReady', this.propagateChange, this);
if (this.instance.undoManager) {
editor.on('change', this.propagateChange, this);
}
// If 'undo' plugin is not loaded, listen to 'selectionCheck' event instead. (#54).
else {
editor.on('selectionCheck', this.propagateChange, this);
}
};
/**
* @private
* @param {?} config
* @return {?}
*/
CKEditorComponent.prototype.ensureDivareaPlugin = /**
* @private
* @param {?} config
* @return {?}
*/
function (config) {
CKEditorComponent.prototype.propagateChange = function (event) {
var _this = this;
this.ngZone.run(function () {
var newData = _this.instance.getData();
if (event.name == 'change') {
_this.change.emit(event);
}
else if (event.name == 'dataReady') {
_this.dataReady.emit(event);
}
if (newData === _this.data) {
return;
}
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
});
};
CKEditorComponent.prototype.ensureDivareaPlugin = function (config) {
var extraPlugins = config.extraPlugins, removePlugins = config.removePlugins;

@@ -353,68 +257,17 @@ extraPlugins = this.removePlugin(extraPlugins, 'divarea') || '';

};
/**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
CKEditorComponent.prototype.removePlugin = /**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
function (plugins, toRemove) {
CKEditorComponent.prototype.removePlugin = function (plugins, toRemove) {
if (!plugins) {
return null;
}
/** @type {?} */
var isString = typeof plugins === 'string';
if (isString) {
plugins = ((/** @type {?} */ (plugins))).split(',');
plugins = plugins.split(',');
}
plugins = ((/** @type {?} */ (plugins))).filter((/**
* @param {?} plugin
* @return {?}
*/
function (plugin) { return plugin !== toRemove; }));
plugins = plugins.filter(function (plugin) { return plugin !== toRemove; });
if (isString) {
plugins = ((/** @type {?} */ (plugins))).join(',');
plugins = plugins.join(',');
}
return plugins;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createInitialElement = /**
* @private
* @return {?}
*/
function () {
// Render editor outside of component so it won't be removed from DOM before `instanceReady`.
this.wrapper = document.createElement('div');
/** @type {?} */
var element = document.createElement(this.tagName);
this.wrapper.setAttribute('style', 'display:none;');
document.body.appendChild(this.wrapper);
this.wrapper.appendChild(element);
return element;
};
CKEditorComponent.decorators = [
{ type: Component, args: [{
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
function () { return CKEditorComponent; })),
multi: true,
}
]
}] }
];
/** @nocollapse */
var CKEditorComponent_1;
CKEditorComponent.ctorParameters = function () { return [

@@ -424,137 +277,54 @@ { type: ElementRef },

]; };
CKEditorComponent.propDecorators = {
config: [{ type: Input }],
tagName: [{ type: Input }],
type: [{ type: Input }],
data: [{ type: Input }],
readOnly: [{ type: Input }],
ready: [{ type: Output }],
change: [{ type: Output }],
dataChange: [{ type: Output }],
focus: [{ type: Output }],
blur: [{ type: Output }],
editorUrl: [{ type: Input }]
};
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "config", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "tagName", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "type", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "data", null);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "readOnly", null);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "ready", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "dataReady", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "change", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "dataChange", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "focus", void 0);
tslib_1.__decorate([
Output()
], CKEditorComponent.prototype, "blur", void 0);
tslib_1.__decorate([
Input()
], CKEditorComponent.prototype, "editorUrl", void 0);
CKEditorComponent = CKEditorComponent_1 = tslib_1.__decorate([
Component({
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(function () { return CKEditorComponent_1; }),
multi: true,
}
]
})
], CKEditorComponent);
return CKEditorComponent;
}());
export { CKEditorComponent };
if (false) {
/**
* The configuration of the editor.
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html
* to learn more.
* @type {?}
*/
CKEditorComponent.prototype.config;
/**
* Tag name of the editor component.
*
* The default tag is `textarea`.
* @type {?}
*/
CKEditorComponent.prototype.tagName;
/**
* The type of the editor interface.
*
* By default editor interface will be initialized as `divarea` editor which is an inline editor with fixed UI.
* You can change interface type by choosing between `divarea` and `inline` editor interface types.
*
* See https://ckeditor.com/docs/ckeditor4/latest/guide/dev_uitypes.html
* and https://ckeditor.com/docs/ckeditor4/latest/examples/fixedui.html
* to learn more.
* @type {?}
*/
CKEditorComponent.prototype.type;
/**
* Fires when the editor is ready. It corresponds with the `editor#instanceReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-instanceReady
* event.
* @type {?}
*/
CKEditorComponent.prototype.ready;
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* @type {?}
*/
CKEditorComponent.prototype.change;
/**
* Fires when the content of the editor has changed. In contrast to `change` - only emits when
* data really changed thus can be successfully used with `[data]` and two way `[(data)]` binding.
*
* See more: https://angular.io/guide/template-syntax#two-way-binding---
* @type {?}
*/
CKEditorComponent.prototype.dataChange;
/**
* Fires when the editing view of the editor is focused. It corresponds with the `editor#focus`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-focus
* event.
* @type {?}
*/
CKEditorComponent.prototype.focus;
/**
* Fires when the editing view of the editor is blurred. It corresponds with the `editor#blur`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-blur
* event.
* @type {?}
*/
CKEditorComponent.prototype.blur;
/**
* The instance of the editor created by this component.
* @type {?}
*/
CKEditorComponent.prototype.instance;
/**
* Wrapper element used to initialize editor.
* @type {?}
*/
CKEditorComponent.prototype.wrapper;
/**
* If the component is read–only before the editor instance is created, it remembers that state,
* so the editor can become read–only once it is ready.
* @type {?}
* @private
*/
CKEditorComponent.prototype._readOnly;
/**
* A callback executed when the content of the editor changes. Part of the
* `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.
*
* Note: Unset unless the component uses the `ngModel`.
* @type {?}
*/
CKEditorComponent.prototype.onChange;
/**
* A callback executed when the editor has been blurred. Part of the
* `ControlValueAccessor` (https://angular.io/api/forms/ControlValueAccessor) interface.
*
* Note: Unset unless the component uses the `ngModel`.
* @type {?}
*/
CKEditorComponent.prototype.onTouched;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype._data;
/**
* CKEditor 4 script url address. Script will be loaded only if CKEDITOR namespace is missing.
*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* @type {?}
*/
CKEditorComponent.prototype.editorUrl;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype.elementRef;
/**
* @type {?}
* @private
*/
CKEditorComponent.prototype.ngZone;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vY2tlZGl0b3I0LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFLQSxPQUFPLEVBQ04sU0FBUyxFQUNULE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWixVQUFVLEVBQ1YsVUFBVSxFQUVWLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFFTixpQkFBaUIsRUFDakIsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQU14RDtJQXNLQywyQkFBcUIsVUFBbUMsRUFBVSxNQUFjO1FBQTNELGVBQVUsR0FBVixVQUFVLENBQXlCO1FBQVUsV0FBTSxHQUFOLE1BQU0sQ0FBUTs7Ozs7O1FBN0l2RSxZQUFPLEdBQUcsVUFBVSxDQUFDOzs7Ozs7Ozs7OztRQVlyQixTQUFJLDJCQUFzRDs7Ozs7O1FBeUR6RCxVQUFLLEdBQUcsSUFBSSxZQUFZLEVBQXVCLENBQUM7Ozs7OztRQU9oRCxXQUFNLEdBQUcsSUFBSSxZQUFZLEVBQXVCLENBQUM7Ozs7Ozs7UUFRakQsZUFBVSxHQUFHLElBQUksWUFBWSxFQUF1QixDQUFDOzs7Ozs7UUFPckQsVUFBSyxHQUFHLElBQUksWUFBWSxFQUF1QixDQUFDOzs7Ozs7UU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sJyApO1xuXHRcdH1cblxuXHRcdHJldHVybiBwbHVnaW5zO1xuXHR9XG59XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.

@@ -10,8 +6,3 @@ * For licensing, see LICENSE.md.

import loadScript from 'load-script';
/** @type {?} */
var promise;
/**
* @param {?} editorURL
* @return {?}
*/
export function getEditorNamespace(editorURL) {

@@ -25,13 +16,4 @@ if (editorURL.length < 1) {

else if (!promise) {
promise = new Promise((/**
* @param {?} scriptResolve
* @param {?} scriptReject
* @return {?}
*/
function (scriptResolve, scriptReject) {
loadScript(editorURL, (/**
* @param {?} err
* @return {?}
*/
function (err) {
promise = new Promise(function (scriptResolve, scriptReject) {
loadScript(editorURL, function (err) {
if (err) {

@@ -44,7 +26,7 @@ scriptReject(err);

}
}));
}));
});
});
}
return promise;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuaGVscGVycy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2NrZWRpdG9yNC1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IuaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLE9BQU8sVUFBVSxNQUFNLGFBQWEsQ0FBQzs7SUFHakMsT0FBTzs7Ozs7QUFFWCxNQUFNLFVBQVUsa0JBQWtCLENBQUUsU0FBaUI7SUFDcEQsSUFBSyxTQUFTLENBQUMsTUFBTSxHQUFHLENBQUMsRUFBRztRQUMzQixNQUFNLElBQUksU0FBUyxDQUFFLDBDQUEwQyxDQUFFLENBQUM7S0FDbEU7SUFFRCxJQUFLLFVBQVUsSUFBSSxNQUFNLEVBQUc7UUFDM0IsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFFLFFBQVEsQ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VRPUicgaW4gd2luZG93ICkge1xuXHRcdHJldHVybiBQcm9taXNlLnJlc29sdmUoIENLRURJVE9SICk7XG5cdH0gZWxzZSBpZiAoICFwcm9taXNlICkge1xuXHRcdHByb21pc2UgPSBuZXcgUHJvbWlzZSggKCBzY3JpcHRSZXNvbHZlLCBzY3JpcHRSZWplY3QgKSA9PiB7XG5cdFx0XHRsb2FkU2NyaXB0KCBlZGl0b3JVUkwsIGVyciA9PiB7XG5cdFx0XHRcdGlmICggZXJyICkge1xuXHRcdFx0XHRcdHNjcmlwdFJlamVjdCggZXJyICk7XG5cdFx0XHRcdH0gZWxzZSB7XG5cdFx0XHRcdFx0c2NyaXB0UmVzb2x2ZSggQ0tFRElUT1IgKTtcblx0XHRcdFx0XHRwcm9taXNlID0gdW5kZWZpbmVkO1xuXHRcdFx0XHR9XG5cdFx0XHR9ICk7XG5cdFx0fSApO1xuXHR9XG5cblx0cmV0dXJuIHByb21pc2U7XG59XG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* Basic typings for the CKEditor4 elements.
*/
export var CKEditor4;
(function (CKEditor4) {
/**
* The CKEditor4 editor constructor.
* @record
*/
function Config() { }
CKEditor4.Config = Config;
/**
* The event object passed to CKEditor4 event callbacks.
*
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_eventInfo.html
* to learn more.
* @record
*/
function EventInfo() { }
CKEditor4.EventInfo = EventInfo;
if (false) {
/** @type {?} */
EventInfo.prototype.name;
/** @type {?} */
EventInfo.prototype.editor;
/** @type {?} */
EventInfo.prototype.data;
/** @type {?} */
EventInfo.prototype.listenerData;
/** @type {?} */
EventInfo.prototype.sender;
/**
* @return {?}
*/
EventInfo.prototype.cancel = function () { };
/**
* @return {?}
*/
EventInfo.prototype.removeListener = function () { };
/**
* @return {?}
*/
EventInfo.prototype.stop = function () { };
}
})(CKEditor4 || (CKEditor4 = {}));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ja2VkaXRvcjQtYW5ndWxhci8iLCJzb3VyY2VzIjpbImNrZWRpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBUUEsTUFBTSxLQUFXLFNBQVMsQ0E0Q3pCO0FBNUNELFdBQWlCLFNBQVM7Ozs7O0lBS3pCLHFCQUVDOzs7Ozs7Ozs7SUFrQkQsd0JBa0JDOzs7O1FBakJBLHlCQUFzQjs7UUFDdEIsMkJBQXFCOztRQUNyQix5QkFFRTs7UUFDRixpQ0FFRTs7UUFDRiwyQkFFRTs7OztRQUVGLDZDQUFlOzs7O1FBRWYscURBQXVCOzs7O1FBRXZCLDJDQUFhOztBQUVmLENBQUMsRUE1Q2dCLFNBQVMsS0FBVCxTQUFTLFFBNEN6QiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2UgQ29weXJpZ2h0IChjKSAyMDAzLTIwMTksIENLU291cmNlIC0gRnJlZGVyaWNvIEtuYWJiZW4uIEFsbCByaWdodHMgcmVzZXJ2ZWQuXG4gKiBGb3IgbGljZW5zaW5nLCBzZWUgTElDRU5TRS5tZC5cbiAqL1xuXG4vKipcbiAqIEJhc2ljIHR5cGluZ3MgZm9yIHRoZSBDS0VkaXRvcjQgZWxlbWVudHMuXG4gKi9cbmV4cG9ydCBuYW1lc3BhY2UgQ0tFZGl0b3I0IHtcblxuXHQvKipcblx0ICogVGhlIENLRWRpdG9yNCBlZGl0b3IgY29uc3RydWN0b3IuXG5cdCAqL1xuXHRleHBvcnQgaW50ZXJmYWNlIENvbmZpZyB7XG5cdFx0WyBrZXk6IHN0cmluZyBdOiBhbnk7XG5cdH1cblxuXH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2YXJlYScsXG5cdFx0SU5MSU5FID0gJ2lubGluZScsXG5cdFx0Q0xBU1NJQyA9ICdjbGFzc2ljJ1xuXHR9XG5cblx0LyoqXG5cdCAqIFRoZSBldmVudCBvYmplY3QgcGFzc2VkIHRvIENLRWRpdG9yNCBldmVudCBjYWxsYmFja3MuXG5cdCAqXG5cdCAqIFNlZSBodHRwczovL2NrZWRpdG9yLmNvbS9kb2NzL2NrZWRpdG9yNC9sYXRlc3QvYXBpL0NLRURJVE9SX2V2ZW50SW5mby5odG1sXG5cdCAqIHRvIGxlYXJuIG1vcmUuXG5cdCAqL1xuXHRleHBvcnQgaW50ZXJmYWNlIEV2ZW50SW5mbyB7XG5cdFx0cmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuXHRcdHJlYWRvbmx5IGVkaXRvcjogYW55O1xuXHRcdHJlYWRvbmx5IGRhdGE6IHtcblx0XHRcdFsga2V5OiBzdHJpbmcgXTogYW55O1xuXHRcdH07XG5cdFx0cmVhZG9ubHkgbGlzdGVuZXJEYXRhOiB7XG5cdFx0XHRbIGtleTogc3RyaW5nIF06IGFueTtcblx0XHR9O1xuXHRcdHJlYWRvbmx5IHNlbmRlcjoge1xuXHRcdFx0WyBrZXk6IHN0cmluZyBdOiBhbnk7XG5cdFx0fTtcblxuXHRcdGNhbmNlbCgpOiB2b2lkO1xuXG5cdFx0cmVtb3ZlTGlzdGVuZXIoKTogdm9pZDtcblxuXHRcdHN0b3AoKTogdm9pZDtcblx0fVxufVxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
import * as tslib_1 from "tslib";
import { NgModule } from '@angular/core';

@@ -16,14 +13,14 @@ import { CommonModule } from '@angular/common';

}
CKEditorModule.decorators = [
{ type: NgModule, args: [{
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
},] }
];
CKEditorModule = tslib_1.__decorate([
NgModule({
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
})
], CKEditorModule);
return CKEditorModule;
}());
export { CKEditorModule };
export { CKEditor4 } from './ckeditor';
export * from './ckeditor';
export { CKEditorComponent } from './ckeditor.component';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vY2tlZGl0b3I0LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFLQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDN0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFFekQ7SUFBQTtJQU1BLENBQUM7O2dCQU5BLFFBQVEsU0FBRTtvQkFDVixPQUFPLEVBQUUsQ0FBRSxXQUFXLEVBQUUsWUFBWSxDQUFFO29CQUN0QyxZQUFZLEVBQUUsQ0FBRSxpQkFBaUIsQ0FBRTtvQkFDbkMsT0FBTyxFQUFFLENBQUUsaUJBQWlCLENBQUU7aUJBQzlCOztJQUVELHFCQUFDO0NBQUEsQUFORCxJQU1DO1NBRFksY0FBYztBQUUzQiwwQkFBYyxZQUFZLENBQUM7QUFDM0IsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sc0JBQXNCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlIENvcHlyaWdodCAoYykgMjAwMy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UgXSxcblx0ZGVjbGFyYXRpb25zOiBbIENLRWRpdG9yQ29tcG9uZW50IF0sXG5cdGV4cG9ydHM6IFsgQ0tFZGl0b3JDb21wb25lbnQgXVxufSApXG5leHBvcnQgY2xhc3MgQ0tFZGl0b3JNb2R1bGUge1xufVxuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvcic7XG5leHBvcnQgeyBDS0VkaXRvckNvbXBvbmVudCB9IGZyb20gJy4vY2tlZGl0b3IuY29tcG9uZW50JztcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* Generated bundle index. Do not edit.
*/
export { CKEditorModule, CKEditorComponent, CKEditor4 } from './ckeditor.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3I0LWFuZ3VsYXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ja2VkaXRvcjQtYW5ndWxhci8iLCJzb3VyY2VzIjpbImNrZWRpdG9yNC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFJQSw2REFBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19
export * from './ckeditor.module';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3I0LWFuZ3VsYXIuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9ja2VkaXRvcjQtYW5ndWxhci8iLCJzb3VyY2VzIjpbImNrZWRpdG9yNC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19

@@ -0,3 +1,4 @@

import { __decorate } from 'tslib';
import { EventEmitter, ElementRef, NgZone, Input, Output, Component, forwardRef, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';

@@ -7,11 +8,6 @@ import loadScript from 'load-script';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/** @type {?} */
let promise;
/**
* @param {?} editorURL
* @return {?}
*/
function getEditorNamespace(editorURL) {

@@ -25,13 +21,4 @@ if (editorURL.length < 1) {

else if (!promise) {
promise = new Promise((/**
* @param {?} scriptResolve
* @param {?} scriptReject
* @return {?}
*/
(scriptResolve, scriptReject) => {
loadScript(editorURL, (/**
* @param {?} err
* @return {?}
*/
err => {
promise = new Promise((scriptResolve, scriptReject) => {
loadScript(editorURL, err => {
if (err) {

@@ -44,4 +31,4 @@ scriptReject(err);

}
}));
}));
});
});
}

@@ -52,10 +39,7 @@ return promise;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
class CKEditorComponent {
/**
* @param {?} elementRef
* @param {?} ngZone
*/
var CKEditorComponent_1;
let CKEditorComponent = CKEditorComponent_1 = class CKEditorComponent {
constructor(elementRef, ngZone) {

@@ -80,3 +64,3 @@ this.elementRef = elementRef;

*/
this.type = "divarea" /* DIVAREA */;
this.type = "classic" /* CLASSIC */;
/**

@@ -89,5 +73,14 @@ * Fires when the editor is ready. It corresponds with the `editor#instanceReady`

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
this.dataReady = new EventEmitter();
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -123,5 +116,5 @@ this.change = new EventEmitter();

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
this.editorUrl = 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js';
this.editorUrl = 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js';
}

@@ -134,4 +127,2 @@ /**

* See https://angular.io/api/forms/NgModel to learn more.
* @param {?} data
* @return {?}
*/

@@ -150,5 +141,2 @@ set data(data) {

}
/**
* @return {?}
*/
get data() {

@@ -161,4 +149,2 @@ return this._data;

* to learn more.
* @param {?} isReadOnly
* @return {?}
*/

@@ -173,5 +159,2 @@ set readOnly(isReadOnly) {

}
/**
* @return {?}
*/
get readOnly() {

@@ -183,21 +166,9 @@ if (this.instance) {

}
/**
* @return {?}
*/
ngAfterViewInit() {
getEditorNamespace(this.editorUrl).then((/**
* @return {?}
*/
() => {
getEditorNamespace(this.editorUrl).then(() => {
this.ngZone.runOutsideAngular(this.createEditor.bind(this));
})).catch(window.console.error);
}).catch(window.console.error);
}
/**
* @return {?}
*/
ngOnDestroy() {
this.ngZone.runOutsideAngular((/**
* @return {?}
*/
() => {
this.ngZone.runOutsideAngular(() => {
if (this.instance) {

@@ -207,95 +178,57 @@ this.instance.destroy();

}
}));
});
}
/**
* @param {?} value
* @return {?}
*/
writeValue(value) {
this.data = value;
}
/**
* @param {?} callback
* @return {?}
*/
registerOnChange(callback) {
this.onChange = callback;
}
/**
* @param {?} callback
* @return {?}
*/
registerOnTouched(callback) {
this.onTouched = callback;
}
/**
* @private
* @return {?}
*/
createEditor() {
/** @type {?} */
const element = this.createInitialElement();
this.config = this.ensureDivareaPlugin(this.config || {});
/** @type {?} */
const instance = this.type === "inline" /* INLINE */ ?
CKEDITOR.inline(element, this.config)
const element = document.createElement(this.tagName);
this.elementRef.nativeElement.appendChild(element);
if (this.type === "divarea" /* DIVAREA */) {
this.config = this.ensureDivareaPlugin(this.config || {});
}
const instance = this.type === "inline" /* INLINE */
? CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
instance.once('instanceReady', evt => {
this.instance = instance;
this.wrapper.removeAttribute('style');
this.elementRef.nativeElement.appendChild(this.wrapper);
// Read only state may change during instance initialization.
this.readOnly = this._readOnly !== null ? this._readOnly : this.instance.readOnly;
this.subscribe(this.instance);
/** @type {?} */
const undo = instance.undoManager;
if (this.data !== null) {
undo && undo.lock();
instance.setData(this.data);
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
instance.fire('change');
}
undo && undo.unlock();
instance.setData(this.data, { callback: () => {
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
undo ? instance.fire('change') : instance.fire('dataReady');
}
undo && undo.unlock();
this.ngZone.run(() => {
this.ready.emit(evt);
});
} });
}
this.ngZone.run((/**
* @return {?}
*/
() => {
this.ready.emit(evt);
}));
}), this);
else {
this.ngZone.run(() => {
this.ready.emit(evt);
});
}
});
}
/**
* @private
* @param {?} editor
* @return {?}
*/
subscribe(editor) {
editor.on('focus', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
editor.on('focus', evt => {
this.ngZone.run(() => {
this.focus.emit(evt);
}));
}));
editor.on('blur', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
});
});
editor.on('blur', evt => {
this.ngZone.run(() => {
if (this.onTouched) {

@@ -305,32 +238,32 @@ this.onTouched();

this.blur.emit(evt);
}));
}));
editor.on('change', (/**
* @param {?} evt
* @return {?}
*/
evt => {
this.ngZone.run((/**
* @return {?}
*/
() => {
/** @type {?} */
const newData = editor.getData();
this.change.emit(evt);
if (newData === this.data) {
return;
}
this._data = newData;
this.dataChange.emit(newData);
if (this.onChange) {
this.onChange(newData);
}
}));
}));
});
});
editor.on('dataReady', this.propagateChange, this);
if (this.instance.undoManager) {
editor.on('change', this.propagateChange, this);
}
// If 'undo' plugin is not loaded, listen to 'selectionCheck' event instead. (#54).
else {
editor.on('selectionCheck', this.propagateChange, this);
}
}
/**
* @private
* @param {?} config
* @return {?}
*/
propagateChange(event) {
this.ngZone.run(() => {
const newData = this.instance.getData();
if (event.name == 'change') {
this.change.emit(event);
}
else if (event.name == 'dataReady') {
this.dataReady.emit(event);
}
if (newData === this.data) {
return;
}
this._data = newData;
this.dataChange.emit(newData);
if (this.onChange) {
this.onChange(newData);
}
});
}
ensureDivareaPlugin(config) {

@@ -346,8 +279,2 @@ let { extraPlugins, removePlugins } = config;

}
/**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
removePlugin(plugins, toRemove) {

@@ -357,49 +284,13 @@ if (!plugins) {

}
/** @type {?} */
const isString = typeof plugins === 'string';
if (isString) {
plugins = ((/** @type {?} */ (plugins))).split(',');
plugins = plugins.split(',');
}
plugins = ((/** @type {?} */ (plugins))).filter((/**
* @param {?} plugin
* @return {?}
*/
plugin => plugin !== toRemove));
plugins = plugins.filter(plugin => plugin !== toRemove);
if (isString) {
plugins = ((/** @type {?} */ (plugins))).join(',');
plugins = plugins.join(',');
}
return plugins;
}
/**
* @private
* @return {?}
*/
createInitialElement() {
// Render editor outside of component so it won't be removed from DOM before `instanceReady`.
this.wrapper = document.createElement('div');
/** @type {?} */
const element = document.createElement(this.tagName);
this.wrapper.setAttribute('style', 'display:none;');
document.body.appendChild(this.wrapper);
this.wrapper.appendChild(element);
return element;
}
}
CKEditorComponent.decorators = [
{ type: Component, args: [{
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
() => CKEditorComponent)),
multi: true,
}
]
}] }
];
/** @nocollapse */
};
CKEditorComponent.ctorParameters = () => [

@@ -409,67 +300,76 @@ { type: ElementRef },

];
CKEditorComponent.propDecorators = {
config: [{ type: Input }],
tagName: [{ type: Input }],
type: [{ type: Input }],
data: [{ type: Input }],
readOnly: [{ type: Input }],
ready: [{ type: Output }],
change: [{ type: Output }],
dataChange: [{ type: Output }],
focus: [{ type: Output }],
blur: [{ type: Output }],
editorUrl: [{ type: Input }]
};
__decorate([
Input()
], CKEditorComponent.prototype, "config", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "tagName", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "type", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "data", null);
__decorate([
Input()
], CKEditorComponent.prototype, "readOnly", null);
__decorate([
Output()
], CKEditorComponent.prototype, "ready", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "dataReady", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "change", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "dataChange", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "focus", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "blur", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "editorUrl", void 0);
CKEditorComponent = CKEditorComponent_1 = __decorate([
Component({
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => CKEditorComponent_1),
multi: true,
}
]
})
], CKEditorComponent);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* Basic typings for the CKEditor4 elements.
*/
var CKEditor4;
(function (CKEditor4) {
/**
* The CKEditor4 editor constructor.
* @record
*/
function Config() { }
CKEditor4.Config = Config;
/**
* The event object passed to CKEditor4 event callbacks.
*
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_eventInfo.html
* to learn more.
* @record
*/
function EventInfo() { }
CKEditor4.EventInfo = EventInfo;
})(CKEditor4 || (CKEditor4 = {}));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
class CKEditorModule {
}
CKEditorModule.decorators = [
{ type: NgModule, args: [{
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
},] }
];
let CKEditorModule = class CKEditorModule {
};
CKEditorModule = __decorate([
NgModule({
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
})
], CKEditorModule);
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* Generated bundle index. Do not edit.
*/
export { CKEditorModule, CKEditorComponent, CKEditor4 };
//# sourceMappingURL=ckeditor4-angular.js.map
export { CKEditorComponent, CKEditorModule };
//# sourceMappingURL=ckeditor4-angular.js.map

@@ -0,3 +1,4 @@

import { __decorate } from 'tslib';
import { EventEmitter, ElementRef, NgZone, Input, Output, Component, forwardRef, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Component, NgZone, Input, Output, EventEmitter, forwardRef, ElementRef, NgModule } from '@angular/core';
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';

@@ -7,11 +8,6 @@ import loadScript from 'load-script';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/** @type {?} */
var promise;
/**
* @param {?} editorURL
* @return {?}
*/
function getEditorNamespace(editorURL) {

@@ -25,13 +21,4 @@ if (editorURL.length < 1) {

else if (!promise) {
promise = new Promise((/**
* @param {?} scriptResolve
* @param {?} scriptReject
* @return {?}
*/
function (scriptResolve, scriptReject) {
loadScript(editorURL, (/**
* @param {?} err
* @return {?}
*/
function (err) {
promise = new Promise(function (scriptResolve, scriptReject) {
loadScript(editorURL, function (err) {
if (err) {

@@ -44,4 +31,4 @@ scriptReject(err);

}
}));
}));
});
});
}

@@ -52,4 +39,4 @@ return promise;

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

@@ -76,3 +63,3 @@ var CKEditorComponent = /** @class */ (function () {

*/
this.type = "divarea" /* DIVAREA */;
this.type = "classic" /* CLASSIC */;
/**

@@ -85,5 +72,14 @@ * Fires when the editor is ready. It corresponds with the `editor#instanceReady`

/**
* Fires when the editor data is loaded, e.g. after calling setData()
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#method-setData
* editor's method. It corresponds with the `editor#dataReady`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-dataReady event.
*/
this.dataReady = new EventEmitter();
/**
* Fires when the content of the editor has changed. It corresponds with the `editor#change`
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#event-change
* event. For performance reasons this event may be called even when data didn't really changed.
* Please note that this event will only be fired when `undo` plugin is loaded. If you need to
* listen for editor changes (e.g. for two-way data binding), use `dataChange` event instead.
*/

@@ -119,11 +115,9 @@ this.change = new EventEmitter();

*
* Defaults to 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js'
* Defaults to 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js'
*/
this.editorUrl = 'https://cdn.ckeditor.com/4.12.1/standard-all/ckeditor.js';
this.editorUrl = 'https://cdn.ckeditor.com/4.13.0/standard-all/ckeditor.js';
}
CKEditorComponent_1 = CKEditorComponent;
Object.defineProperty(CKEditorComponent.prototype, "data", {
get: /**
* @return {?}
*/
function () {
get: function () {
return this._data;

@@ -138,12 +132,3 @@ },

*/
set: /**
* Keeps track of the editor's data.
*
* It's also decorated as an input which is useful when not using the ngModel.
*
* See https://angular.io/api/forms/NgModel to learn more.
* @param {?} data
* @return {?}
*/
function (data) {
set: function (data) {
if (data === this._data) {

@@ -164,6 +149,3 @@ return;

Object.defineProperty(CKEditorComponent.prototype, "readOnly", {
get: /**
* @return {?}
*/
function () {
get: function () {
if (this.instance) {

@@ -179,10 +161,3 @@ return this.instance.readOnly;

*/
set: /**
* When set `true`, the editor becomes read-only.
* https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_editor.html#property-readOnly
* to learn more.
* @param {?} isReadOnly
* @return {?}
*/
function (isReadOnly) {
set: function (isReadOnly) {
if (this.instance) {

@@ -198,29 +173,11 @@ this.instance.setReadOnly(isReadOnly);

});
/**
* @return {?}
*/
CKEditorComponent.prototype.ngAfterViewInit = /**
* @return {?}
*/
function () {
CKEditorComponent.prototype.ngAfterViewInit = function () {
var _this = this;
getEditorNamespace(this.editorUrl).then((/**
* @return {?}
*/
function () {
getEditorNamespace(this.editorUrl).then(function () {
_this.ngZone.runOutsideAngular(_this.createEditor.bind(_this));
})).catch(window.console.error);
}).catch(window.console.error);
};
/**
* @return {?}
*/
CKEditorComponent.prototype.ngOnDestroy = /**
* @return {?}
*/
function () {
CKEditorComponent.prototype.ngOnDestroy = function () {
var _this = this;
this.ngZone.runOutsideAngular((/**
* @return {?}
*/
function () {
this.ngZone.runOutsideAngular(function () {
if (_this.instance) {

@@ -230,118 +187,59 @@ _this.instance.destroy();

}
}));
});
};
/**
* @param {?} value
* @return {?}
*/
CKEditorComponent.prototype.writeValue = /**
* @param {?} value
* @return {?}
*/
function (value) {
CKEditorComponent.prototype.writeValue = function (value) {
this.data = value;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnChange = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
CKEditorComponent.prototype.registerOnChange = function (callback) {
this.onChange = callback;
};
/**
* @param {?} callback
* @return {?}
*/
CKEditorComponent.prototype.registerOnTouched = /**
* @param {?} callback
* @return {?}
*/
function (callback) {
CKEditorComponent.prototype.registerOnTouched = function (callback) {
this.onTouched = callback;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createEditor = /**
* @private
* @return {?}
*/
function () {
/** @type {?} */
var element = this.createInitialElement();
this.config = this.ensureDivareaPlugin(this.config || {});
/** @type {?} */
var instance = this.type === "inline" /* INLINE */ ?
CKEDITOR.inline(element, this.config)
CKEditorComponent.prototype.createEditor = function () {
var _this = this;
var element = document.createElement(this.tagName);
this.elementRef.nativeElement.appendChild(element);
if (this.type === "divarea" /* DIVAREA */) {
this.config = this.ensureDivareaPlugin(this.config || {});
}
var instance = this.type === "inline" /* INLINE */
? CKEDITOR.inline(element, this.config)
: CKEDITOR.replace(element, this.config);
instance.once('instanceReady', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
var _this = this;
this.instance = instance;
this.wrapper.removeAttribute('style');
this.elementRef.nativeElement.appendChild(this.wrapper);
instance.once('instanceReady', function (evt) {
_this.instance = instance;
// Read only state may change during instance initialization.
this.readOnly = this._readOnly !== null ? this._readOnly : this.instance.readOnly;
this.subscribe(this.instance);
/** @type {?} */
_this.readOnly = _this._readOnly !== null ? _this._readOnly : _this.instance.readOnly;
_this.subscribe(_this.instance);
var undo = instance.undoManager;
if (this.data !== null) {
if (_this.data !== null) {
undo && undo.lock();
instance.setData(this.data);
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (this.data !== instance.getData()) {
instance.fire('change');
}
undo && undo.unlock();
instance.setData(_this.data, { callback: function () {
// Locking undoManager prevents 'change' event.
// Trigger it manually to updated bound data.
if (_this.data !== instance.getData()) {
undo ? instance.fire('change') : instance.fire('dataReady');
}
undo && undo.unlock();
_this.ngZone.run(function () {
_this.ready.emit(evt);
});
} });
}
this.ngZone.run((/**
* @return {?}
*/
function () {
_this.ready.emit(evt);
}));
}), this);
else {
_this.ngZone.run(function () {
_this.ready.emit(evt);
});
}
});
};
/**
* @private
* @param {?} editor
* @return {?}
*/
CKEditorComponent.prototype.subscribe = /**
* @private
* @param {?} editor
* @return {?}
*/
function (editor) {
CKEditorComponent.prototype.subscribe = function (editor) {
var _this = this;
editor.on('focus', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
editor.on('focus', function (evt) {
_this.ngZone.run(function () {
_this.focus.emit(evt);
}));
}));
editor.on('blur', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
});
});
editor.on('blur', function (evt) {
_this.ngZone.run(function () {
if (_this.onTouched) {

@@ -351,38 +249,34 @@ _this.onTouched();

_this.blur.emit(evt);
}));
}));
editor.on('change', (/**
* @param {?} evt
* @return {?}
*/
function (evt) {
_this.ngZone.run((/**
* @return {?}
*/
function () {
/** @type {?} */
var newData = editor.getData();
_this.change.emit(evt);
if (newData === _this.data) {
return;
}
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
}));
}));
});
});
editor.on('dataReady', this.propagateChange, this);
if (this.instance.undoManager) {
editor.on('change', this.propagateChange, this);
}
// If 'undo' plugin is not loaded, listen to 'selectionCheck' event instead. (#54).
else {
editor.on('selectionCheck', this.propagateChange, this);
}
};
/**
* @private
* @param {?} config
* @return {?}
*/
CKEditorComponent.prototype.ensureDivareaPlugin = /**
* @private
* @param {?} config
* @return {?}
*/
function (config) {
CKEditorComponent.prototype.propagateChange = function (event) {
var _this = this;
this.ngZone.run(function () {
var newData = _this.instance.getData();
if (event.name == 'change') {
_this.change.emit(event);
}
else if (event.name == 'dataReady') {
_this.dataReady.emit(event);
}
if (newData === _this.data) {
return;
}
_this._data = newData;
_this.dataChange.emit(newData);
if (_this.onChange) {
_this.onChange(newData);
}
});
};
CKEditorComponent.prototype.ensureDivareaPlugin = function (config) {
var extraPlugins = config.extraPlugins, removePlugins = config.removePlugins;

@@ -397,68 +291,17 @@ extraPlugins = this.removePlugin(extraPlugins, 'divarea') || '';

};
/**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
CKEditorComponent.prototype.removePlugin = /**
* @private
* @param {?} plugins
* @param {?} toRemove
* @return {?}
*/
function (plugins, toRemove) {
CKEditorComponent.prototype.removePlugin = function (plugins, toRemove) {
if (!plugins) {
return null;
}
/** @type {?} */
var isString = typeof plugins === 'string';
if (isString) {
plugins = ((/** @type {?} */ (plugins))).split(',');
plugins = plugins.split(',');
}
plugins = ((/** @type {?} */ (plugins))).filter((/**
* @param {?} plugin
* @return {?}
*/
function (plugin) { return plugin !== toRemove; }));
plugins = plugins.filter(function (plugin) { return plugin !== toRemove; });
if (isString) {
plugins = ((/** @type {?} */ (plugins))).join(',');
plugins = plugins.join(',');
}
return plugins;
};
/**
* @private
* @return {?}
*/
CKEditorComponent.prototype.createInitialElement = /**
* @private
* @return {?}
*/
function () {
// Render editor outside of component so it won't be removed from DOM before `instanceReady`.
this.wrapper = document.createElement('div');
/** @type {?} */
var element = document.createElement(this.tagName);
this.wrapper.setAttribute('style', 'display:none;');
document.body.appendChild(this.wrapper);
this.wrapper.appendChild(element);
return element;
};
CKEditorComponent.decorators = [
{ type: Component, args: [{
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef((/**
* @return {?}
*/
function () { return CKEditorComponent; })),
multi: true,
}
]
}] }
];
/** @nocollapse */
var CKEditorComponent_1;
CKEditorComponent.ctorParameters = function () { return [

@@ -468,15 +311,51 @@ { type: ElementRef },

]; };
CKEditorComponent.propDecorators = {
config: [{ type: Input }],
tagName: [{ type: Input }],
type: [{ type: Input }],
data: [{ type: Input }],
readOnly: [{ type: Input }],
ready: [{ type: Output }],
change: [{ type: Output }],
dataChange: [{ type: Output }],
focus: [{ type: Output }],
blur: [{ type: Output }],
editorUrl: [{ type: Input }]
};
__decorate([
Input()
], CKEditorComponent.prototype, "config", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "tagName", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "type", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "data", null);
__decorate([
Input()
], CKEditorComponent.prototype, "readOnly", null);
__decorate([
Output()
], CKEditorComponent.prototype, "ready", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "dataReady", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "change", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "dataChange", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "focus", void 0);
__decorate([
Output()
], CKEditorComponent.prototype, "blur", void 0);
__decorate([
Input()
], CKEditorComponent.prototype, "editorUrl", void 0);
CKEditorComponent = CKEditorComponent_1 = __decorate([
Component({
selector: 'ckeditor',
template: '<ng-template></ng-template>',
providers: [
{
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(function () { return CKEditorComponent_1; }),
multi: true,
}
]
})
], CKEditorComponent);
return CKEditorComponent;

@@ -486,34 +365,9 @@ }());

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/
/**
* Basic typings for the CKEditor4 elements.
*/
var CKEditor4;
(function (CKEditor4) {
/**
* The CKEditor4 editor constructor.
* @record
*/
function Config() { }
CKEditor4.Config = Config;
/**
* The event object passed to CKEditor4 event callbacks.
*
* See https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_eventInfo.html
* to learn more.
* @record
*/
function EventInfo() { }
CKEditor4.EventInfo = EventInfo;
})(CKEditor4 || (CKEditor4 = {}));
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

@@ -523,9 +377,9 @@ var CKEditorModule = /** @class */ (function () {

}
CKEditorModule.decorators = [
{ type: NgModule, args: [{
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
},] }
];
CKEditorModule = __decorate([
NgModule({
imports: [FormsModule, CommonModule],
declarations: [CKEditorComponent],
exports: [CKEditorComponent]
})
], CKEditorModule);
return CKEditorModule;

@@ -535,8 +389,6 @@ }());

/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
* Generated bundle index. Do not edit.
*/
export { CKEditorModule, CKEditorComponent, CKEditor4 };
//# sourceMappingURL=ckeditor4-angular.js.map
export { CKEditorComponent, CKEditorModule };
//# sourceMappingURL=ckeditor4-angular.js.map
Software License Agreement
==========================
**CKEditor 4 component for Angular** – https://github.com/ckeditor/ckeditor4-angular <br>
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
**CKEditor 4 WYSIWYG editor Angular component** – https://github.com/ckeditor/ckeditor4-angular <br>
Copyright (c) 2003-2019, [CKSource](https://cksource.com/) Frederico Knabben. All rights reserved.

@@ -26,8 +26,4 @@ Licensed under the terms of any of the following licenses at your

- Angular Copyright (c) 2010-2019 Google LLC. [MIT](http://angular.io/license)
- core-js Copyright (c) 2014-2019 Denis Pushkarev [MIT](https://github.com/zloirock/core-js/blob/master/LICENSE)
- load-script [MIT](https://github.com/eldargab/load-script#license)
- RxJS: Reactive Extensions For JavaScript [Apache-2.0](https://github.com/ReactiveX/rxjs/blob/master/LICENSE.txt)
- tslib Copyright (c) 2012-2019 Microsoft [Apache-2.0](https://github.com/Microsoft/tslib/blob/master/LICENSE.txt)
- Zone.js Copyright (c) 2016-2018 Google, Inc. [MIT](https://github.com/angular/zone.js/blob/master/LICENSE)

@@ -37,2 +33,2 @@ Trademarks

**CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
**CKEditor** is a trademark of [CKSource](https://cksource.com/) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
{
"name": "ckeditor4-angular",
"version": "1.0.0-beta.2",
"description": "Official Angular 2+ component for CKEditor 4.",
"version": "1.0.0",
"description": "Official CKEditor 4 component for Angular.",
"keywords": [
"wysiwyg",
"rich text",
"rich text editor",
"rte",
"editor",

@@ -13,3 +14,3 @@ "html",

"angular",
"angular2",
"angular5",
"ng",

@@ -26,5 +27,5 @@ "component",

},
"author": "CKSource (http://cksource.com/)",
"author": "CKSource (https://cksource.com/)",
"license": "(GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1-or-later)",
"homepage": "https://ckeditor.com",
"homepage": "https://ckeditor.com/",
"bugs": "https://github.com/ckeditor/ckeditor4-angular/issues",

@@ -31,0 +32,0 @@ "repository": {

@@ -1,13 +0,17 @@

# CKEditor 4 WYSIWYG editor Angular component
# CKEditor 4 WYSIWYG editor Angular component [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20CKEditor%204%20Angular%20integration&url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fckeditor4-angular)
[![npm version](https://badge.fury.io/js/ckeditor4-angular.svg)](https://www.npmjs.com/package/ckeditor4-angular)
[![GitHub tag](https://img.shields.io/github/tag/ckeditor/ckeditor4-angular.svg)](https://github.com/ckeditor/ckeditor4-angular)
[![Build Status](https://travis-ci.org/ckeditor/ckeditor4-angular.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor4-angular)
<br>
[![Dependency Status](https://david-dm.org/ckeditor/ckeditor4-angular/status.svg)](https://david-dm.org/ckeditor/ckeditor4-angular)
[![devDependency Status](https://david-dm.org/ckeditor/ckeditor4-angular/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor4-angular?type=dev)
The official [CKEditor 4](https://ckeditor.com/ckeditor-4/) WYSIWYG editor component for Angular.
[![Join newsletter](https://img.shields.io/badge/join-newsletter-00cc99.svg)](http://eepurl.com/c3zRPr)
[![Follow Twitter](https://img.shields.io/badge/follow-twitter-00cc99.svg)](https://twitter.com/ckeditor)
This is the beta version of the CKEditor 4 Angular integration. We are looking forward to your feedback! You can report any issues, ideas or feature requests on the [integration issues page](https://github.com/ckeditor/ckeditor4-angular/issues/new).
Official [CKEditor 4](https://ckeditor.com/ckeditor-4/) WYSIWYG editor component for Angular.
We are looking forward to your feedback! You can report any issues, ideas or feature requests on the [integration issues page](https://github.com/ckeditor/ckeditor4-angular/issues/new).
![CKEditor 4 screenshot](https://c.cksource.com/a/1/img/npm/ckeditor4.png)

@@ -48,3 +52,3 @@

See the [CKEditor 4 Angular Integration](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_angular.html) article and [Angular examples](https://ckeditor.com/docs/ckeditor4/latest/examples/angular.html) in the [CKEditor 4 documentation](https://ckeditor.com/docs/ckeditor4/latest).
See the [CKEditor 4 Angular Integration](https://ckeditor.com/docs/ckeditor4/latest/guide/dev_angular.html) article and [Angular examples](https://ckeditor.com/docs/ckeditor4/latest/examples/angular.html) in the [CKEditor 4 documentation](https://ckeditor.com/docs/ckeditor4/latest/).

@@ -55,2 +59,12 @@ ## Browser support

## Supported Angular versions
The integration can be used together with Angular at version 5.0.0 and higher. It is an implication of Angular metadata produced for this package by the Angular builder. Note that the `package.json` used in the main repository isn't published on NPM (the production one is present in `src/ckeditor/package.json`), so there are only a few peer dependencies:
* `@angular/core` >= 5.0.0
* `@angular/common` >= 5.0.0
* `@angular/forms` >= 5.0.0
required by this package.
## Contributing

@@ -91,4 +105,15 @@

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
Run `npm test` to execute unit tests via [Karma](https://karma-runner.github.io).
There are two options available to alternate the testing process:
* `url` / `u` - pass custom URL to Karma, for example custom CKEditor 4 build.
* `watch` / `w` - tell Karma to watch for changes.
For example:
```
npm run test -- -u http://localhost:5000/ckeditor.js -w
```
#### Running end-to-end tests

@@ -108,2 +133,8 @@

For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
Licensed under the terms of any of the following licenses at your choice:
* [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html),
* [GNU Lesser General Public License Version 2.1 or later](http://www.gnu.org/licenses/lgpl.html),
* [Mozilla Public License Version 1.1 or later (the "MPL")](http://www.mozilla.org/MPL/MPL-1.1.html).
For full details about the license, please check the `LICENSE.md` file.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc