@ckeditor/ckeditor5-angular
Advanced tools
Comparing version 1.1.2 to 1.2.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms')) : | ||
typeof define === 'function' && define.amd ? define('@ckeditor/ckeditor5-angular', ['exports', '@angular/core', '@angular/common', '@angular/forms'], factory) : | ||
(factory((global.ckeditor = global.ckeditor || {}, global.ckeditor['ckeditor5-angular'] = {}),global.ng.core,global.ng.common,global.ng.forms)); | ||
}(this, (function (exports,core,common,forms) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ckeditor/ckeditor5-watchdog/src/editorwatchdog'), require('@angular/core'), require('@angular/common'), require('@angular/forms')) : | ||
typeof define === 'function' && define.amd ? define('@ckeditor/ckeditor5-angular', ['exports', '@ckeditor/ckeditor5-watchdog/src/editorwatchdog', '@angular/core', '@angular/common', '@angular/forms'], factory) : | ||
(factory((global.ckeditor = global.ckeditor || {}, global.ckeditor['ckeditor5-angular'] = {}),global.EditorWatchdog,global.ng.core,global.ng.common,global.ng.forms)); | ||
}(this, (function (exports,EditorWatchdog,core,common,forms) { 'use strict'; | ||
EditorWatchdog = EditorWatchdog && EditorWatchdog.hasOwnProperty('default') ? EditorWatchdog['default'] : EditorWatchdog; | ||
/*! ***************************************************************************** | ||
@@ -33,2 +35,89 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
}; | ||
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 }; | ||
} | ||
} | ||
@@ -39,2 +128,70 @@ /** | ||
*/ | ||
/** | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
// A copy of @ckeditor/ckeditor5-utils/src/uid.js | ||
// A hash table of hex numbers to avoid using toString() in uid() which is costly. | ||
// [ '00', '01', '02', ..., 'fe', 'ff' ] | ||
var ɵ0 = /** | ||
* @param {?} val | ||
* @param {?} index | ||
* @return {?} | ||
*/ function (val, index) { return ('0' + (index).toString(16)).slice(-2); }; | ||
/** @type {?} */ | ||
var HEX_NUMBERS = new Array(256).fill(0) | ||
.map((ɵ0)); | ||
/** | ||
* Returns a unique id. The id starts with an "e" character and a randomly generated string of | ||
* 32 alphanumeric characters. | ||
* | ||
* **Note**: The characters the unique id is built from correspond to the hex number notation | ||
* (from "0" to "9", from "a" to "f"). In other words, each id corresponds to an "e" followed | ||
* by 16 8-bit numbers next to each other. | ||
* | ||
* @return {?} An unique id string. | ||
*/ | ||
function uid() { | ||
// Let's create some positive random 32bit integers first. | ||
// | ||
// 1. Math.random() is a float between 0 and 1. | ||
// 2. 0x100000000 is 2^32 = 4294967296. | ||
// 3. >>> 0 enforces integer (in JS all numbers are floating point). | ||
// | ||
// For instance: | ||
// Math.random() * 0x100000000 = 3366450031.853859 | ||
// but | ||
// Math.random() * 0x100000000 >>> 0 = 3366450031. | ||
/** @type {?} */ | ||
var r1 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r2 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r3 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r4 = Math.random() * 0x100000000 >>> 0; | ||
// Make sure that id does not start with number. | ||
return 'e' + | ||
HEX_NUMBERS[r1 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 24 & 0xFF]; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var CKEditorComponent = /** @class */ (function () { | ||
@@ -84,5 +241,5 @@ function CKEditorComponent(elementRef, ngZone) { | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
*/ | ||
this.editorInstance = null; | ||
this.error = new core.EventEmitter(); | ||
/** | ||
@@ -97,2 +254,3 @@ * If the component is read–only before the editor instance is created, it remembers that state, | ||
this.isEditorSettingData = false; | ||
this.id = uid(); | ||
this.ngZone = ngZone; | ||
@@ -127,2 +285,21 @@ this.elementRef = elementRef; | ||
}); | ||
Object.defineProperty(CKEditorComponent.prototype, "editorInstance", { | ||
/** | ||
* The instance of the editor created by this component. | ||
*/ | ||
get: /** | ||
* The instance of the editor created by this component. | ||
* @return {?} | ||
*/ function () { | ||
if (this.editorWatchdog) { | ||
return this.editorWatchdog.editor; | ||
} | ||
if (this.watchdog) { | ||
return this.watchdog.getItem(this.id); | ||
} | ||
return null; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
// Implementing the AfterViewInit interface. | ||
@@ -139,8 +316,3 @@ // Implementing the AfterViewInit interface. | ||
function () { | ||
var _this = this; | ||
this.ngZone.runOutsideAngular(( /** | ||
* @return {?} | ||
*/function () { | ||
_this.createEditor(); | ||
})); | ||
this.attachToWatchdog(); | ||
}; | ||
@@ -158,6 +330,24 @@ // Implementing the OnDestroy interface. | ||
function () { | ||
if (this.editorInstance) { | ||
this.editorInstance.destroy(); | ||
this.editorInstance = null; | ||
} | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!this.watchdog) | ||
return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.watchdog.remove(this.id)]; | ||
case 1: | ||
_a.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: | ||
if (!(this.editorWatchdog && this.editorWatchdog.editor)) | ||
return [3 /*break*/, 4]; | ||
return [4 /*yield*/, this.editorWatchdog.destroy()]; | ||
case 3: | ||
_a.sent(); | ||
this.editorWatchdog = undefined; | ||
_a.label = 4; | ||
case 4: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
@@ -243,10 +433,8 @@ // Implementing the ControlValueAccessor interface (only when binding to ngModel). | ||
function (isDisabled) { | ||
// If already initialized | ||
// If already initialized. | ||
if (this.editorInstance) { | ||
this.editorInstance.isReadOnly = isDisabled; | ||
} | ||
// If not, wait for it to be ready; store the state. | ||
else { | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
// Store the state anyway to use it once the editor is created. | ||
this.initialIsDisabled = isDisabled; | ||
}; | ||
@@ -265,3 +453,3 @@ /** | ||
*/ | ||
CKEditorComponent.prototype.createEditor = /** | ||
CKEditorComponent.prototype.attachToWatchdog = /** | ||
* Creates the editor instance, sets initial editor data, then integrates | ||
@@ -276,4 +464,114 @@ * the editor with the Angular component. This method does not use the `editor.setData()` | ||
/** @type {?} */ | ||
var creator = ( /** | ||
* @param {?} element | ||
* @param {?} config | ||
* @return {?} | ||
*/function (element, config) { | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.ngZone.runOutsideAngular(( /** | ||
* @return {?} | ||
*/function () { | ||
return __awaiter(_this, void 0, void 0, function () { | ||
var editor; | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
this.elementRef.nativeElement.appendChild(element); | ||
return [4 /*yield*/, ( /** @type {?} */(this.editor)).create(element, config)]; | ||
case 1: | ||
editor = _a.sent(); | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
this.ngZone.run(( /** | ||
* @return {?} | ||
*/function () { | ||
_this.ready.emit(editor); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
return [2 /*return*/, editor]; | ||
} | ||
}); | ||
}); | ||
}))]; | ||
}); | ||
}); | ||
}); | ||
/** @type {?} */ | ||
var destructor = ( /** | ||
* @param {?} editor | ||
* @return {?} | ||
*/function (editor) { | ||
return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, editor.destroy()]; | ||
case 1: | ||
_a.sent(); | ||
this.elementRef.nativeElement.removeChild(( /** @type {?} */(this.editorElement))); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}); | ||
/** @type {?} */ | ||
var emitError = ( /** | ||
* @return {?} | ||
*/function () { | ||
_this.ngZone.run(( /** | ||
* @return {?} | ||
*/function () { | ||
_this.error.emit(); | ||
})); | ||
}); | ||
/** @type {?} */ | ||
var element = document.createElement(this.tagName); | ||
/** @type {?} */ | ||
var config = this.getConfig(); | ||
this.editorElement = element; | ||
// Based on the presence of the watchdog decide how to initialize the editor. | ||
if (this.watchdog) { | ||
// When the context watchdog is passed add the new item to it based on the passed configuration. | ||
this.watchdog.add({ | ||
id: this.id, | ||
type: 'editor', | ||
creator: creator, | ||
destructor: destructor, | ||
sourceElementOrData: element, | ||
config: config | ||
}); | ||
this.watchdog.on('itemError', ( /** | ||
* @param {?} _ | ||
* @param {?} __1 | ||
* @return {?} | ||
*/function (_, _a) { | ||
var itemId = _a.itemId; | ||
if (itemId === _this.id) { | ||
emitError(); | ||
} | ||
})); | ||
} | ||
else { | ||
// In the other case create the watchdog by hand to keep the editor running. | ||
/** @type {?} */ | ||
var editorWatchdog = new EditorWatchdog(this.editor); | ||
editorWatchdog.setCreator(creator); | ||
editorWatchdog.setDestructor(destructor); | ||
editorWatchdog.on('error', emitError); | ||
this.editorWatchdog = editorWatchdog; | ||
this.editorWatchdog.create(element, config); | ||
} | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
CKEditorComponent.prototype.getConfig = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (this.data && this.config.initialData) { | ||
@@ -283,27 +581,3 @@ throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
/** @type {?} */ | ||
var config = __assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
this.elementRef.nativeElement.appendChild(element); | ||
return ( /** @type {?} */(this.editor)).create(element, config) | ||
.then(( /** | ||
* @param {?} editor | ||
* @return {?} | ||
*/function (editor) { | ||
_this.editorInstance = editor; | ||
if (_this.initialIsDisabled) { | ||
editor.isReadOnly = _this.initialIsDisabled; | ||
} | ||
_this.ngZone.run(( /** | ||
* @return {?} | ||
*/function () { | ||
_this.ready.emit(editor); | ||
})); | ||
_this.setUpEditorEvents(editor); | ||
})) | ||
.catch(( /** | ||
* @param {?} err | ||
* @return {?} | ||
*/function (err) { | ||
console.error(err.stack); | ||
})); | ||
return __assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
}; | ||
@@ -399,2 +673,3 @@ /** | ||
tagName: [{ type: core.Input }], | ||
watchdog: [{ type: core.Input }], | ||
disabled: [{ type: core.Input }], | ||
@@ -404,3 +679,4 @@ ready: [{ type: core.Output }], | ||
blur: [{ type: core.Output }], | ||
focus: [{ type: core.Output }] | ||
focus: [{ type: core.Output }], | ||
error: [{ type: core.Output }] | ||
}; | ||
@@ -407,0 +683,0 @@ return CKEditorComponent; |
@@ -1,2 +0,6 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@ckeditor/ckeditor5-angular",["exports","@angular/core","@angular/common","@angular/forms"],e):e((t.ckeditor=t.ckeditor||{},t.ckeditor["ckeditor5-angular"]={}),t.ng.core,t.ng.common,t.ng.forms)}(this,function(t,n,e,i){"use strict";var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},r=(Object.defineProperty(a.prototype,"disabled",{get:function(){return this.editorInstance?this.editorInstance.isReadOnly:this.initialIsDisabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),a.prototype.ngAfterViewInit=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.createEditor()})},a.prototype.ngOnDestroy=function(){this.editorInstance&&(this.editorInstance.destroy(),this.editorInstance=null)},a.prototype.writeValue=function(t){null===t&&(t=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.setData(t),this.isEditorSettingData=!1):(this.data=t,this.editorElement&&(this.editorElement.innerHTML=this.data))},a.prototype.registerOnChange=function(t){this.cvaOnChange=t},a.prototype.registerOnTouched=function(t){this.cvaOnTouched=t},a.prototype.setDisabledState=function(t){this.editorInstance?this.editorInstance.isReadOnly=t:this.initialIsDisabled=t},a.prototype.createEditor=function(){var e=this,t=document.createElement(this.tagName);if(this.editorElement=t,this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");var n=o({},this.config,{initialData:this.config.initialData||this.data||""});return this.elementRef.nativeElement.appendChild(t),this.editor.create(t,n).then(function(t){e.editorInstance=t,e.initialIsDisabled&&(t.isReadOnly=e.initialIsDisabled),e.ngZone.run(function(){e.ready.emit(t)}),e.setUpEditorEvents(t)})["catch"](function(t){console.error(t.stack)})},a.prototype.setUpEditorEvents=function(n){var i=this,t=n.model.document,e=n.editing.view.document;t.on("change:data",function(e){i.ngZone.run(function(){if(i.cvaOnChange&&!i.isEditorSettingData){var t=n.getData();i.cvaOnChange(t)}i.change.emit({event:e,editor:n})})}),e.on("focus",function(t){i.ngZone.run(function(){i.focus.emit({event:t,editor:n})})}),e.on("blur",function(t){i.ngZone.run(function(){i.cvaOnTouched&&i.cvaOnTouched(),i.blur.emit({event:t,editor:n})})})},a.decorators=[{type:n.Component,args:[{selector:"ckeditor",template:"<ng-template></ng-template>",providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return a}),multi:!0}]}]}],a.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},a.propDecorators={editor:[{type:n.Input}],config:[{type:n.Input}],data:[{type:n.Input}],tagName:[{type:n.Input}],disabled:[{type:n.Input}],ready:[{type:n.Output}],change:[{type:n.Output}],blur:[{type:n.Output}],focus:[{type:n.Output}]},a);function a(t,e){this.config={},this.data="",this.tagName="div",this.ready=new n.EventEmitter,this.change=new n.EventEmitter,this.blur=new n.EventEmitter,this.focus=new n.EventEmitter,this.editorInstance=null,this.initialIsDisabled=!1,this.isEditorSettingData=!1,this.ngZone=e,this.elementRef=t}var s=(c.decorators=[{type:n.NgModule,args:[{imports:[i.FormsModule,e.CommonModule],declarations:[r],exports:[r]}]}],c);function c(){}t.CKEditorComponent=r,t.CKEditorModule=s,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@ckeditor/ckeditor5-watchdog/src/editorwatchdog"),require("@angular/core"),require("@angular/common"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@ckeditor/ckeditor5-angular",["exports","@ckeditor/ckeditor5-watchdog/src/editorwatchdog","@angular/core","@angular/common","@angular/forms"],e):e((t.ckeditor=t.ckeditor||{},t.ckeditor["ckeditor5-angular"]={}),t.EditorWatchdog,t.ng.core,t.ng.common,t.ng.forms)}(this,function(t,s,n,e,i){"use strict";s=s&&s.hasOwnProperty("default")?s["default"]:s;var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function c(e,a,s,c){return new(s=s||Promise)(function(t,n){function i(t){try{o(c.next(t))}catch(e){n(e)}}function r(t){try{o(c["throw"](t))}catch(e){n(e)}}function o(e){e.done?t(e.value):new s(function(t){t(e.value)}).then(i,r)}o((c=c.apply(e,a||[])).next())})}function u(i,r){var o,a,s,t,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,a&&(s=2&t[0]?a["return"]:t[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,a=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0<(s=c.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){c.label=t[1];break}if(6===t[0]&&c.label<s[1]){c.label=s[1],s=t;break}if(s&&c.label<s[2]){c.label=s[2],c.ops.push(t);break}s[2]&&c.ops.pop(),c.trys.pop();continue}t=r.call(i,c)}catch(e){t=[6,e],a=0}finally{o=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}} | ||
/** | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/var o=new Array(256).fill(0).map(function(t,e){return("0"+e.toString(16)).slice(-2)});var a=(Object.defineProperty(d.prototype,"disabled",{get:function(){return this.editorInstance?this.editorInstance.isReadOnly:this.initialIsDisabled},set:function(t){this.setDisabledState(t)},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"editorInstance",{get:function(){return this.editorWatchdog?this.editorWatchdog.editor:this.watchdog?this.watchdog.getItem(this.id):null},enumerable:!0,configurable:!0}),d.prototype.ngAfterViewInit=function(){this.attachToWatchdog()},d.prototype.ngOnDestroy=function(){return c(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return this.watchdog?[4,this.watchdog.remove(this.id)]:[3,2];case 1:return t.sent(),[3,4];case 2:return this.editorWatchdog&&this.editorWatchdog.editor?[4,this.editorWatchdog.destroy()]:[3,4];case 3:t.sent(),this.editorWatchdog=undefined,t.label=4;case 4:return[2]}})})},d.prototype.writeValue=function(t){null===t&&(t=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.setData(t),this.isEditorSettingData=!1):(this.data=t,this.editorElement&&(this.editorElement.innerHTML=this.data))},d.prototype.registerOnChange=function(t){this.cvaOnChange=t},d.prototype.registerOnTouched=function(t){this.cvaOnTouched=t},d.prototype.setDisabledState=function(t){this.editorInstance&&(this.editorInstance.isReadOnly=t),this.initialIsDisabled=t},d.prototype.attachToWatchdog=function(){var n=this,t=function(i,r){return c(n,void 0,void 0,function(){var e=this;return u(this,function(t){return[2,this.ngZone.runOutsideAngular(function(){return c(e,void 0,void 0,function(){var e,n=this;return u(this,function(t){switch(t.label){case 0:return this.elementRef.nativeElement.appendChild(i),[4,this.editor.create(i,r)];case 1:return e=t.sent(),this.initialIsDisabled&&(e.isReadOnly=this.initialIsDisabled),this.ngZone.run(function(){n.ready.emit(e)}),this.setUpEditorEvents(e),[2,e]}})})})]})})},e=function(e){return c(n,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return[4,e.destroy()];case 1:return t.sent(),this.elementRef.nativeElement.removeChild(this.editorElement),[2]}})})},i=function(){n.ngZone.run(function(){n.error.emit()})},r=document.createElement(this.tagName),o=this.getConfig();if(this.editorElement=r,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:t,destructor:e,sourceElementOrData:r,config:o}),this.watchdog.on("itemError",function(t,e){e.itemId===n.id&&i()});else{var a=new s(this.editor);a.setCreator(t),a.setDestructor(e),a.on("error",i),this.editorWatchdog=a,this.editorWatchdog.create(r,o)}},d.prototype.getConfig=function(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");return r({},this.config,{initialData:this.config.initialData||this.data||""})},d.prototype.setUpEditorEvents=function(n){var i=this,t=n.model.document,e=n.editing.view.document;t.on("change:data",function(e){i.ngZone.run(function(){if(i.cvaOnChange&&!i.isEditorSettingData){var t=n.getData();i.cvaOnChange(t)}i.change.emit({event:e,editor:n})})}),e.on("focus",function(t){i.ngZone.run(function(){i.focus.emit({event:t,editor:n})})}),e.on("blur",function(t){i.ngZone.run(function(){i.cvaOnTouched&&i.cvaOnTouched(),i.blur.emit({event:t,editor:n})})})},d.decorators=[{type:n.Component,args:[{selector:"ckeditor",template:"<ng-template></ng-template>",providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:n.forwardRef(function(){return d}),multi:!0}]}]}],d.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone}]},d.propDecorators={editor:[{type:n.Input}],config:[{type:n.Input}],data:[{type:n.Input}],tagName:[{type:n.Input}],watchdog:[{type:n.Input}],disabled:[{type:n.Input}],ready:[{type:n.Output}],change:[{type:n.Output}],blur:[{type:n.Output}],focus:[{type:n.Output}],error:[{type:n.Output}]},d);function d(t,e){this.config={},this.data="",this.tagName="div",this.ready=new n.EventEmitter,this.change=new n.EventEmitter,this.blur=new n.EventEmitter,this.focus=new n.EventEmitter,this.error=new n.EventEmitter,this.initialIsDisabled=!1,this.isEditorSettingData=!1,this.id=function r(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+o[t>>0&255]+o[t>>8&255]+o[t>>16&255]+o[t>>24&255]+o[e>>0&255]+o[e>>8&255]+o[e>>16&255]+o[e>>24&255]+o[n>>0&255]+o[n>>8&255]+o[n>>16&255]+o[n>>24&255]+o[i>>0&255]+o[i>>8&255]+o[i>>16&255]+o[i>>24&255]}(),this.ngZone=e,this.elementRef=t}var h=(l.decorators=[{type:n.NgModule,args:[{imports:[i.FormsModule,e.CommonModule],declarations:[a],exports:[a]}]}],l);function l(){}t.CKEditorComponent=a,t.CKEditorModule=h,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ckeditor-ckeditor5-angular.umd.min.js.map |
Changelog | ||
========= | ||
## [1.2.0](https://github.com/ckeditor/ckeditor5-angular/compare/v1.1.2...v1.2.0) (2020-02-27) | ||
### Features | ||
* Improved Angular integration to handle Context and ContextWatchdog. Closes [#165](https://github.com/ckeditor/ckeditor5-angular/issues/165). ([87a1c89](https://github.com/ckeditor/ckeditor5-angular/commit/87a1c89)) | ||
## [1.1.2](https://github.com/ckeditor/ckeditor5-angular/compare/v1.1.1...v1.1.2) (2019-11-04) | ||
@@ -5,0 +12,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"exports":[{"from":"./ckeditor"}],"metadata":{"CKEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"ckeditor","template":"<ng-template></ng-template>","providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":30,"character":12},"useExisting":{"__symbolic":"reference","name":"CKEditorComponent"},"multi":true}]}]}],"members":{"editor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":47,"character":2}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":2}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":2}}]}],"tagName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":67,"character":2}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":74,"character":2}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":91,"character":2}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":98,"character":2}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":105,"character":2}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":112,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":157,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":157,"character":53}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"createEditor":[{"__symbolic":"method"}],"setUpEditorEvents":[{"__symbolic":"method"}]}},"BlurEvent":{"__symbolic":"interface"},"FocusEvent":{"__symbolic":"interface"},"ChangeEvent":{"__symbolic":"interface"},"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":{}}},"origins":{"CKEditorComponent":"./ckeditor.component","BlurEvent":"./ckeditor.component","FocusEvent":"./ckeditor.component","ChangeEvent":"./ckeditor.component","CKEditorModule":"./ckeditor.module"},"importAs":"@ckeditor/ckeditor5-angular"} | ||
{"__symbolic":"module","version":4,"exports":[{"from":"./ckeditor"}],"metadata":{"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":34,"character":12},"useExisting":{"__symbolic":"reference","name":"CKEditorComponent"},"multi":true}]}]}],"members":{"editor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":51,"character":2}}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":2}}]}],"data":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":64,"character":2}}]}],"tagName":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":71,"character":2}}]}],"watchdog":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":76,"character":2}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":83,"character":2}}]}],"ready":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":100,"character":2}}]}],"change":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":107,"character":2}}]}],"blur":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":114,"character":2}}]}],"focus":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":121,"character":2}}]}],"error":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":126,"character":2}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":189,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":189,"character":53}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"attachToWatchdog":[{"__symbolic":"method"}],"getConfig":[{"__symbolic":"method"}],"setUpEditorEvents":[{"__symbolic":"method"}]}},"BlurEvent":{"__symbolic":"interface"},"FocusEvent":{"__symbolic":"interface"},"ChangeEvent":{"__symbolic":"interface"},"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":{}}},"origins":{"CKEditorComponent":"./ckeditor.component","BlurEvent":"./ckeditor.component","FocusEvent":"./ckeditor.component","ChangeEvent":"./ckeditor.component","CKEditorModule":"./ckeditor.module"},"importAs":"@ckeditor/ckeditor5-angular"} |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -36,2 +36,6 @@ */ | ||
/** | ||
* The context watchdog. | ||
*/ | ||
watchdog?: CKEditor5.ContextWatchdog; | ||
/** | ||
* When set `true`, the editor becomes read-only. | ||
@@ -67,6 +71,15 @@ * See https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html#member-isReadOnly | ||
/** | ||
* Fires when the editor component crashes. | ||
*/ | ||
error: EventEmitter<void>; | ||
/** | ||
* The instance of the editor created by this component. | ||
*/ | ||
editorInstance: CKEditor5.Editor | null; | ||
readonly editorInstance: CKEditor5.Editor | null; | ||
/** | ||
* The editor watchdog. It is created when the context watchdog is not passed to the component. | ||
* It keeps the editor running. | ||
*/ | ||
private editorWatchdog?; | ||
/** | ||
* If the component is read–only before the editor instance is created, it remembers that state, | ||
@@ -103,5 +116,6 @@ * so the editor can become read–only once it is ready. | ||
private isEditorSettingData; | ||
private id; | ||
constructor(elementRef: ElementRef, ngZone: NgZone); | ||
ngAfterViewInit(): void; | ||
ngOnDestroy(): void; | ||
ngOnDestroy(): Promise<void>; | ||
writeValue(value: string | null): void; | ||
@@ -116,3 +130,4 @@ registerOnChange(callback: (data: string) => void): void; | ||
*/ | ||
private createEditor; | ||
private attachToWatchdog; | ||
private getConfig; | ||
/** | ||
@@ -119,0 +134,0 @@ * Integrates the editor with the component by attaching related event listeners. |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -79,2 +79,19 @@ */ | ||
} | ||
interface ContextWatchdog extends Watchdog<any> { | ||
context: any; | ||
add(items: any): Promise<void>; | ||
remove(items: string | string[]): Promise<void>; | ||
getItem(itemId: string): Editor; | ||
addItemWatchdog(itemId: string, itemType: string, watchdog: Watchdog<any>): Promise<void>; | ||
} | ||
interface EditorWatchdog extends Watchdog<Editor> { | ||
editor: Editor; | ||
} | ||
interface Watchdog<T> { | ||
setCreator(creator: (...args: any[]) => Promise<T>): void; | ||
setDestructor(destructor: (item: T) => Promise<void>): void; | ||
on(event: string, callback: (...args: any) => any): void; | ||
destroy(): Promise<void>; | ||
create(...args: any[]): Promise<void>; | ||
} | ||
} |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -4,0 +4,0 @@ */ |
@@ -5,7 +5,10 @@ /** | ||
*/ | ||
import * as tslib_1 from "tslib"; | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/ | ||
import { Component, Input, Output, NgZone, EventEmitter, forwardRef, ElementRef } from '@angular/core'; | ||
import EditorWatchdog from '@ckeditor/ckeditor5-watchdog/src/editorwatchdog'; | ||
import uid from './uid'; | ||
import { NG_VALUE_ACCESSOR } from '@angular/forms'; | ||
@@ -60,5 +63,5 @@ export class CKEditorComponent { | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
*/ | ||
this.editorInstance = null; | ||
this.error = new EventEmitter(); | ||
/** | ||
@@ -73,2 +76,3 @@ * If the component is read–only before the editor instance is created, it remembers that state, | ||
this.isEditorSettingData = false; | ||
this.id = uid(); | ||
this.ngZone = ngZone; | ||
@@ -96,2 +100,15 @@ this.elementRef = elementRef; | ||
} | ||
/** | ||
* The instance of the editor created by this component. | ||
* @return {?} | ||
*/ | ||
get editorInstance() { | ||
if (this.editorWatchdog) { | ||
return this.editorWatchdog.editor; | ||
} | ||
if (this.watchdog) { | ||
return this.watchdog.getItem(this.id); | ||
} | ||
return null; | ||
} | ||
// Implementing the AfterViewInit interface. | ||
@@ -102,8 +119,3 @@ /** | ||
ngAfterViewInit() { | ||
this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.createEditor(); | ||
})); | ||
this.attachToWatchdog(); | ||
} | ||
@@ -115,6 +127,11 @@ // Implementing the OnDestroy interface. | ||
ngOnDestroy() { | ||
if (this.editorInstance) { | ||
this.editorInstance.destroy(); | ||
this.editorInstance = null; | ||
} | ||
return tslib_1.__awaiter(this, void 0, void 0, /** @this {!CKEditorComponent} */ function* () { | ||
if (this.watchdog) { | ||
yield this.watchdog.remove(this.id); | ||
} | ||
else if (this.editorWatchdog && this.editorWatchdog.editor) { | ||
yield this.editorWatchdog.destroy(); | ||
this.editorWatchdog = undefined; | ||
} | ||
}); | ||
} | ||
@@ -172,10 +189,8 @@ // Implementing the ControlValueAccessor interface (only when binding to ngModel). | ||
setDisabledState(isDisabled) { | ||
// If already initialized | ||
// If already initialized. | ||
if (this.editorInstance) { | ||
this.editorInstance.isReadOnly = isDisabled; | ||
} | ||
// If not, wait for it to be ready; store the state. | ||
else { | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
// Store the state anyway to use it once the editor is created. | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
@@ -189,23 +204,44 @@ /** | ||
*/ | ||
createEditor() { | ||
attachToWatchdog() { | ||
/** @type {?} */ | ||
const element = document.createElement(this.tagName); | ||
this.editorElement = element; | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
const creator = (/** | ||
* @param {?} element | ||
* @param {?} config | ||
* @return {?} | ||
*/ | ||
(element, config) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
() => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
this.elementRef.nativeElement.appendChild(element); | ||
/** @type {?} */ | ||
const editor = yield (/** @type {?} */ (this.editor)).create(element, config); | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
this.ngZone.run((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.ready.emit(editor); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
return editor; | ||
}))); | ||
})); | ||
/** @type {?} */ | ||
const config = Object.assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
this.elementRef.nativeElement.appendChild(element); | ||
return (/** @type {?} */ (this.editor)).create(element, config) | ||
.then((/** | ||
const destructor = (/** | ||
* @param {?} editor | ||
* @return {?} | ||
*/ | ||
editor => { | ||
this.editorInstance = editor; | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
(editor) => tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
yield editor.destroy(); | ||
this.elementRef.nativeElement.removeChild((/** @type {?} */ (this.editorElement))); | ||
})); | ||
/** @type {?} */ | ||
const emitError = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.ngZone.run((/** | ||
@@ -215,15 +251,55 @@ * @return {?} | ||
() => { | ||
this.ready.emit(editor); | ||
this.error.emit(); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
})) | ||
.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
(err) => { | ||
console.error(err.stack); | ||
})); | ||
}); | ||
/** @type {?} */ | ||
const element = document.createElement(this.tagName); | ||
/** @type {?} */ | ||
const config = this.getConfig(); | ||
this.editorElement = element; | ||
// Based on the presence of the watchdog decide how to initialize the editor. | ||
if (this.watchdog) { | ||
// When the context watchdog is passed add the new item to it based on the passed configuration. | ||
this.watchdog.add({ | ||
id: this.id, | ||
type: 'editor', | ||
creator, | ||
destructor, | ||
sourceElementOrData: element, | ||
config | ||
}); | ||
this.watchdog.on('itemError', (/** | ||
* @param {?} _ | ||
* @param {?} __1 | ||
* @return {?} | ||
*/ | ||
(_, { itemId }) => { | ||
if (itemId === this.id) { | ||
emitError(); | ||
} | ||
})); | ||
} | ||
else { | ||
// In the other case create the watchdog by hand to keep the editor running. | ||
/** @type {?} */ | ||
const editorWatchdog = new EditorWatchdog(this.editor); | ||
editorWatchdog.setCreator(creator); | ||
editorWatchdog.setDestructor(destructor); | ||
editorWatchdog.on('error', emitError); | ||
this.editorWatchdog = editorWatchdog; | ||
this.editorWatchdog.create(element, config); | ||
} | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
getConfig() { | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
return Object.assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
} | ||
/** | ||
* Integrates the editor with the component by attaching related event listeners. | ||
@@ -313,2 +389,3 @@ * @private | ||
tagName: [{ type: Input }], | ||
watchdog: [{ type: Input }], | ||
disabled: [{ type: Input }], | ||
@@ -318,3 +395,4 @@ ready: [{ type: Output }], | ||
blur: [{ type: Output }], | ||
focus: [{ type: Output }] | ||
focus: [{ type: Output }], | ||
error: [{ type: Output }] | ||
}; | ||
@@ -355,2 +433,7 @@ if (false) { | ||
/** | ||
* The context watchdog. | ||
* @type {?} | ||
*/ | ||
CKEditorComponent.prototype.watchdog; | ||
/** | ||
* Fires when the editor is ready. It corresponds with the `editor#ready` | ||
@@ -384,7 +467,14 @@ * https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html#event-ready | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
* @type {?} | ||
*/ | ||
CKEditorComponent.prototype.editorInstance; | ||
CKEditorComponent.prototype.error; | ||
/** | ||
* The editor watchdog. It is created when the context watchdog is not passed to the component. | ||
* It keeps the editor running. | ||
* @type {?} | ||
* @private | ||
*/ | ||
CKEditorComponent.prototype.editorWatchdog; | ||
/** | ||
* If the component is read–only before the editor instance is created, it remembers that state, | ||
@@ -433,2 +523,7 @@ * so the editor can become read–only once it is ready. | ||
CKEditorComponent.prototype.isEditorSettingData; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
CKEditorComponent.prototype.id; | ||
} | ||
@@ -465,2 +560,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNrZWRpdG9yL2NrZWRpdG9yNS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBS0EsT0FBTyxFQUNOLFNBQVMsRUFDVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLE1BQU0sRUFDTixZQUFZLEVBQ1osVUFBVSxFQUVWLFVBQVUsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBRU4saUJBQWlCLEVBQ2pCLE1BQU0sZ0JBQWdCLENBQUM7QUFrQnhCLE1BQU0sT0FBTyxpQkFBaUI7Ozs7O0lBd0g3QixZQUFvQixVQUFzQixFQUFFLE1BQWM7Ozs7OztRQXZHMUMsV0FBTSxHQUFxQixFQUFFLENBQUM7Ozs7O1FBTTlCLFNBQUksR0FBRyxFQUFFLENBQUM7Ozs7OztRQU9WLFlBQU8sR0FBRyxLQUFLLENBQUM7Ozs7OztRQXdCZixVQUFLLEdBQUcsSUFBSSxZQUFZLEVBQW9CLENBQUM7Ozs7OztRQU83QyxXQUFNLEdBQThCLElBQUksWUFBWSxFQUFlLENBQUM7Ozs7OztRQU9wRSxTQUFJLEdBQTRCLElBQUksWUFBWSxFQUFhL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cdFx0XHRcdH1cblxuXHRcdFx0XHR0aGlzLmJsdXIuZW1pdCggeyBldmVudDogZXZ0LCBlZGl0b3IgfSApO1xuXHRcdFx0fSApO1xuXHRcdH0gKTtcblx0fVxufVxuXG5leHBvcnQgaW50ZXJmYWNlIEJsdXJFdmVudCB7XG5cdGV2ZW50OiBDS0VkaXRvcjUuRXZlbnRJbmZvPCdibHVyJz47XG5cdGVkaXRvcjogQ0tFZGl0b3I1LkVkaXRvcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBGb2N1c0V2ZW50IHtcblx0ZXZlbnQ6IENLRWRpdG9yNS5FdmVudEluZm88J2ZvY3VzJz47XG5cdGVkaXRvcjogQ0tFZGl0b3I1LkVkaXRvcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDaGFuZ2VFdmVudCB7XG5cdGV2ZW50OiBDS0VkaXRvcjUuRXZlbnRJbmZvPCdjaGFuZ2U6ZGF0YSc+O1xuXHRlZGl0b3I6IENLRWRpdG9yNS5FZGl0b3I7XG59XG4iXX0= |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -183,3 +183,76 @@ */ | ||
CKEditor5.Editor = Editor; | ||
/** | ||
* @record | ||
*/ | ||
function ContextWatchdog() { } | ||
CKEditor5.ContextWatchdog = ContextWatchdog; | ||
if (false) { | ||
/** @type {?} */ | ||
ContextWatchdog.prototype.context; | ||
/** | ||
* @param {?} items | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.add = function (items) { }; | ||
/** | ||
* @param {?} items | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.remove = function (items) { }; | ||
/** | ||
* @param {?} itemId | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.getItem = function (itemId) { }; | ||
/** | ||
* @param {?} itemId | ||
* @param {?} itemType | ||
* @param {?} watchdog | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.addItemWatchdog = function (itemId, itemType, watchdog) { }; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
function EditorWatchdog() { } | ||
CKEditor5.EditorWatchdog = EditorWatchdog; | ||
if (false) { | ||
/** @type {?} */ | ||
EditorWatchdog.prototype.editor; | ||
} | ||
/** | ||
* @record | ||
* @template T | ||
*/ | ||
function Watchdog() { } | ||
CKEditor5.Watchdog = Watchdog; | ||
if (false) { | ||
/** | ||
* @param {?} creator | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.setCreator = function (creator) { }; | ||
/** | ||
* @param {?} destructor | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.setDestructor = function (destructor) { }; | ||
/** | ||
* @param {?} event | ||
* @param {?} callback | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.on = function (event, callback) { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.destroy = function () { }; | ||
/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.create = function (args) { }; | ||
} | ||
})(CKEditor5 || (CKEditor5 = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQVFBLE1BQU0sS0FBVyxTQUFTLENBZ0Z6QjtBQWhGRCxXQUFpQixTQUFTOzs7OztJQUt6QixnQ0FFQzs7Ozs7Ozs7UUFEQSxnRkFBc0Y7Ozs7OztJQU12RixxQkFFQzs7Ozs7Ozs7O0lBT0Qsd0JBUUM7Ozs7UUFQQSx5QkFBeUI7O1FBQ3pCLHlCQUFxQjs7UUFDckIsMkJB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cblx0fVxuXG5cdGV4cG9ydCBpbnRlcmZhY2UgRWRpdG9yV2F0Y2hkb2cgZXh0ZW5kcyBXYXRjaGRvZzxFZGl0b3I+IHtcblx0XHRlZGl0b3I6IEVkaXRvcjtcblx0fVxuXG5cdGV4cG9ydCBpbnRlcmZhY2UgV2F0Y2hkb2c8VD4ge1xuXHRcdHNldENyZWF0b3IoIGNyZWF0b3I6ICggLi4uYXJnczogYW55W10gKSA9PiBQcm9taXNlPFQ+ICk6IHZvaWQ7XG5cdFx0c2V0RGVzdHJ1Y3RvciggZGVzdHJ1Y3RvcjogKCBpdGVtOiBUICkgPT4gUHJvbWlzZTx2b2lkPiApOiB2b2lkO1xuXHRcdG9uKCBldmVudDogc3RyaW5nLCBjYWxsYmFjazogKCAuLi5hcmdzOiBhbnkgKSA9PiBhbnkgKTogdm9pZDtcblx0XHRkZXN0cm95KCk6IFByb21pc2U8dm9pZD47XG5cdFx0Y3JlYXRlKCAuLi5hcmdzOiBhbnlbXSApOiBQcm9taXNlPHZvaWQ+O1xuXHR9XG59XG4iXX0= |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -23,2 +23,2 @@ */ | ||
]; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNrZWRpdG9yL2NrZWRpdG9yNS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBS0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQ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XMnO1xuaW1wb3J0IHsgQ0tFZGl0b3JDb21wb25lbnQgfSBmcm9tICcuL2NrZWRpdG9yLmNvbXBvbmVudCc7XG5cbkBOZ01vZHVsZSgge1xuXHRpbXBvcnRzOiBbIEZvcm1zTW9kdWxlLCBDb21tb25Nb2R1bGUgXSxcblx0ZGVjbGFyYXRpb25zOiBbIENLRWRpdG9yQ29tcG9uZW50IF0sXG5cdGV4cG9ydHM6IFsgQ0tFZGl0b3JDb21wb25lbnQgXVxufSApXG5leHBvcnQgY2xhc3MgQ0tFZGl0b3JNb2R1bGUge31cbiJdfQ== |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -13,2 +13,2 @@ */ | ||
export { CKEditorModule } from './ckeditor.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLGVBQWMsWUFBWSxDQUFDO0FBQzNCLGtDQUFjLHNCQUFzQixDQUFDO0FBQ3JDLCtCQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZSBDb3B5cmlnaHQgKGMpIDIwMDMtMjAxOSwgQ0tTb3VyY2UgLSBGcmVkZXJpY28gS25hYmJlbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqIEZvciBsaWNlbnNpbmcsIHNlZSBMSUNFTlNFLm1kLlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vY2tlZGl0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLGVBQWMsWUFBWSxDQUFDO0FBQzNCLGtDQUFjLHNCQUFzQixDQUFDO0FBQ3JDLCtCQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZSBDb3B5cmlnaHQgKGMpIDIwMDMtMjAyMCwgQ0tTb3VyY2UgLSBGcmVkZXJpY28gS25hYmJlbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqIEZvciBsaWNlbnNpbmcsIHNlZSBMSUNFTlNFLm1kLlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vY2tlZGl0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19 |
@@ -7,6 +7,8 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
*/ | ||
import { Component, Input, Output, NgZone, EventEmitter, forwardRef, ElementRef } from '@angular/core'; | ||
import EditorWatchdog from '@ckeditor/ckeditor5-watchdog/src/editorwatchdog'; | ||
import uid from './uid'; | ||
import { NG_VALUE_ACCESSOR } from '@angular/forms'; | ||
@@ -57,5 +59,5 @@ var CKEditorComponent = /** @class */ (function () { | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
*/ | ||
this.editorInstance = null; | ||
this.error = new EventEmitter(); | ||
/** | ||
@@ -70,2 +72,3 @@ * If the component is read–only before the editor instance is created, it remembers that state, | ||
this.isEditorSettingData = false; | ||
this.id = uid(); | ||
this.ngZone = ngZone; | ||
@@ -102,2 +105,22 @@ this.elementRef = elementRef; | ||
}); | ||
Object.defineProperty(CKEditorComponent.prototype, "editorInstance", { | ||
/** | ||
* The instance of the editor created by this component. | ||
*/ | ||
get: /** | ||
* The instance of the editor created by this component. | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (this.editorWatchdog) { | ||
return this.editorWatchdog.editor; | ||
} | ||
if (this.watchdog) { | ||
return this.watchdog.getItem(this.id); | ||
} | ||
return null; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
// Implementing the AfterViewInit interface. | ||
@@ -114,9 +137,3 @@ // Implementing the AfterViewInit interface. | ||
function () { | ||
var _this = this; | ||
this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.createEditor(); | ||
})); | ||
this.attachToWatchdog(); | ||
}; | ||
@@ -134,6 +151,22 @@ // Implementing the OnDestroy interface. | ||
function () { | ||
if (this.editorInstance) { | ||
this.editorInstance.destroy(); | ||
this.editorInstance = null; | ||
} | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!this.watchdog) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.watchdog.remove(this.id)]; | ||
case 1: | ||
_a.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: | ||
if (!(this.editorWatchdog && this.editorWatchdog.editor)) return [3 /*break*/, 4]; | ||
return [4 /*yield*/, this.editorWatchdog.destroy()]; | ||
case 3: | ||
_a.sent(); | ||
this.editorWatchdog = undefined; | ||
_a.label = 4; | ||
case 4: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
@@ -219,10 +252,8 @@ // Implementing the ControlValueAccessor interface (only when binding to ngModel). | ||
function (isDisabled) { | ||
// If already initialized | ||
// If already initialized. | ||
if (this.editorInstance) { | ||
this.editorInstance.isReadOnly = isDisabled; | ||
} | ||
// If not, wait for it to be ready; store the state. | ||
else { | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
// Store the state anyway to use it once the editor is created. | ||
this.initialIsDisabled = isDisabled; | ||
}; | ||
@@ -241,3 +272,3 @@ /** | ||
*/ | ||
CKEditorComponent.prototype.createEditor = /** | ||
CKEditorComponent.prototype.attachToWatchdog = /** | ||
* Creates the editor instance, sets initial editor data, then integrates | ||
@@ -252,21 +283,60 @@ * the editor with the Angular component. This method does not use the `editor.setData()` | ||
/** @type {?} */ | ||
var element = document.createElement(this.tagName); | ||
this.editorElement = element; | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
var creator = (/** | ||
* @param {?} element | ||
* @param {?} config | ||
* @return {?} | ||
*/ | ||
function (element, config) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var _this = this; | ||
return tslib_1.__generator(this, function (_a) { | ||
return [2 /*return*/, this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var editor; | ||
var _this = this; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
this.elementRef.nativeElement.appendChild(element); | ||
return [4 /*yield*/, (/** @type {?} */ (this.editor)).create(element, config)]; | ||
case 1: | ||
editor = _a.sent(); | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
this.ngZone.run((/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.ready.emit(editor); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
return [2 /*return*/, editor]; | ||
} | ||
}); | ||
}); }))]; | ||
}); | ||
}); }); | ||
/** @type {?} */ | ||
var config = tslib_1.__assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
this.elementRef.nativeElement.appendChild(element); | ||
return (/** @type {?} */ (this.editor)).create(element, config) | ||
.then((/** | ||
var destructor = (/** | ||
* @param {?} editor | ||
* @return {?} | ||
*/ | ||
function (editor) { | ||
_this.editorInstance = editor; | ||
if (_this.initialIsDisabled) { | ||
editor.isReadOnly = _this.initialIsDisabled; | ||
} | ||
function (editor) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, editor.destroy()]; | ||
case 1: | ||
_a.sent(); | ||
this.elementRef.nativeElement.removeChild((/** @type {?} */ (this.editorElement))); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
/** @type {?} */ | ||
var emitError = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.ngZone.run((/** | ||
@@ -276,15 +346,60 @@ * @return {?} | ||
function () { | ||
_this.ready.emit(editor); | ||
_this.error.emit(); | ||
})); | ||
_this.setUpEditorEvents(editor); | ||
})) | ||
.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
function (err) { | ||
console.error(err.stack); | ||
})); | ||
}); | ||
/** @type {?} */ | ||
var element = document.createElement(this.tagName); | ||
/** @type {?} */ | ||
var config = this.getConfig(); | ||
this.editorElement = element; | ||
// Based on the presence of the watchdog decide how to initialize the editor. | ||
if (this.watchdog) { | ||
// When the context watchdog is passed add the new item to it based on the passed configuration. | ||
this.watchdog.add({ | ||
id: this.id, | ||
type: 'editor', | ||
creator: creator, | ||
destructor: destructor, | ||
sourceElementOrData: element, | ||
config: config | ||
}); | ||
this.watchdog.on('itemError', (/** | ||
* @param {?} _ | ||
* @param {?} __1 | ||
* @return {?} | ||
*/ | ||
function (_, _a) { | ||
var itemId = _a.itemId; | ||
if (itemId === _this.id) { | ||
emitError(); | ||
} | ||
})); | ||
} | ||
else { | ||
// In the other case create the watchdog by hand to keep the editor running. | ||
/** @type {?} */ | ||
var editorWatchdog = new EditorWatchdog(this.editor); | ||
editorWatchdog.setCreator(creator); | ||
editorWatchdog.setDestructor(destructor); | ||
editorWatchdog.on('error', emitError); | ||
this.editorWatchdog = editorWatchdog; | ||
this.editorWatchdog.create(element, config); | ||
} | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
CKEditorComponent.prototype.getConfig = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
return tslib_1.__assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
}; | ||
/** | ||
* Integrates the editor with the component by attaching related event listeners. | ||
@@ -383,2 +498,3 @@ */ | ||
tagName: [{ type: Input }], | ||
watchdog: [{ type: Input }], | ||
disabled: [{ type: Input }], | ||
@@ -388,3 +504,4 @@ ready: [{ type: Output }], | ||
blur: [{ type: Output }], | ||
focus: [{ type: Output }] | ||
focus: [{ type: Output }], | ||
error: [{ type: Output }] | ||
}; | ||
@@ -428,2 +545,7 @@ return CKEditorComponent; | ||
/** | ||
* The context watchdog. | ||
* @type {?} | ||
*/ | ||
CKEditorComponent.prototype.watchdog; | ||
/** | ||
* Fires when the editor is ready. It corresponds with the `editor#ready` | ||
@@ -457,7 +579,14 @@ * https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html#event-ready | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
* @type {?} | ||
*/ | ||
CKEditorComponent.prototype.editorInstance; | ||
CKEditorComponent.prototype.error; | ||
/** | ||
* The editor watchdog. It is created when the context watchdog is not passed to the component. | ||
* It keeps the editor running. | ||
* @type {?} | ||
* @private | ||
*/ | ||
CKEditorComponent.prototype.editorWatchdog; | ||
/** | ||
* If the component is read–only before the editor instance is created, it remembers that state, | ||
@@ -506,2 +635,7 @@ * so the editor can become read–only once it is ready. | ||
CKEditorComponent.prototype.isEditorSettingData; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
CKEditorComponent.prototype.id; | ||
} | ||
@@ -538,2 +672,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNrZWRpdG9yL2NrZWRpdG9yNS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUtBLE9BQU8sRUFDTixTQUFTLEVBQ1QsS0FBSyxFQUNMLE1BQU0sRUFDTixNQUFNLEVBQ04sWUFBWSxFQUNaLFVBQVUsRUFFVixVQUFVLEVBQ1YsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUVOLGlCQUFpQixFQUNqQixNQUFNLGdCQUFnQixDQUFDO0FBSXhCO0lBc0lDLDJCQUFvQixVQUFzQixFQUFFLE1BQWM7Ozs7OztRQXZHMUMsV0FBTSxHQUFxQixFQUFFLENBQUM7Ozs7O1FBTTlCLFNBQUksR0FBRyxFQUFFLENBQUM7Ozs7OztRQU9WLFlBQU8sR0FBRyxLQUFLLENBQUM7Ozs7OztRQXdCZixVQUFLLEdBQUcsSUFBSSxZQUFZLEVBQW9CLENBQUM7Ozs7OztRQU83QyxXQUFNLEdBQThCLElBQUksWUFBWSxFQUFlLENBQUM7Ozs7OztRQU9wRSxTQUFJLEdBQTRCLElBQUksWUFBWSxFQUFhLENBQUM7Ozs7OztRQU85RCxVQUFLLEdBQTZCLElBQUksWUFBWSxFQUFjLENBQUM7Ozs7UUFLM0UsbUJBQWMsR0FBNEIsSUFBSSxDQUFDOzs7Ozt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bmdlOmRhdGEnPjtcblx0ZWRpdG9yOiBDS0VkaXRvcjUuRWRpdG9yO1xufVxuIl19 |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -183,3 +183,76 @@ */ | ||
CKEditor5.Editor = Editor; | ||
/** | ||
* @record | ||
*/ | ||
function ContextWatchdog() { } | ||
CKEditor5.ContextWatchdog = ContextWatchdog; | ||
if (false) { | ||
/** @type {?} */ | ||
ContextWatchdog.prototype.context; | ||
/** | ||
* @param {?} items | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.add = function (items) { }; | ||
/** | ||
* @param {?} items | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.remove = function (items) { }; | ||
/** | ||
* @param {?} itemId | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.getItem = function (itemId) { }; | ||
/** | ||
* @param {?} itemId | ||
* @param {?} itemType | ||
* @param {?} watchdog | ||
* @return {?} | ||
*/ | ||
ContextWatchdog.prototype.addItemWatchdog = function (itemId, itemType, watchdog) { }; | ||
} | ||
/** | ||
* @record | ||
*/ | ||
function EditorWatchdog() { } | ||
CKEditor5.EditorWatchdog = EditorWatchdog; | ||
if (false) { | ||
/** @type {?} */ | ||
EditorWatchdog.prototype.editor; | ||
} | ||
/** | ||
* @record | ||
* @template T | ||
*/ | ||
function Watchdog() { } | ||
CKEditor5.Watchdog = Watchdog; | ||
if (false) { | ||
/** | ||
* @param {?} creator | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.setCreator = function (creator) { }; | ||
/** | ||
* @param {?} destructor | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.setDestructor = function (destructor) { }; | ||
/** | ||
* @param {?} event | ||
* @param {?} callback | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.on = function (event, callback) { }; | ||
/** | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.destroy = function () { }; | ||
/** | ||
* @param {...?} args | ||
* @return {?} | ||
*/ | ||
Watchdog.prototype.create = function (args) { }; | ||
} | ||
})(CKEditor5 || (CKEditor5 = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJja2VkaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQVFBLE1BQU0sS0FBVyxTQUFTLENBZ0Z6QjtBQWhGRCxXQUFpQixTQUFTOzs7OztJQUt6QixnQ0FFQzs7Ozs7Ozs7UUFEQSxnRkFBc0Y7Ozs7OztJQU12RixxQkFFQzs7Ozs7Ozs7O0lBT0Qsd0JBUUM7Ozs7UUFQQSx5QkFBeUI7O1FBQ3pCLHlCQUFxQjs7UUFDckIsMkJBQXFCOztRQUNyQiwyQkFBYTs7OztRQUViLDBDQUFZOzs7O1FBQ1osMkNBQWE7Ozs7Ozs7O0lBUWQseUJBMEJDOzs7O1FBekJBLDhCQUF1Qjs7UUFDdkIsNEJBQXFCOztRQUNyQixnQ0FBeUI7O1FBQ3pCLDBCQUFtQjs7UUFDbkIsNkJBQXNCOztRQUN0QixnQ0FBeUI7O1FBQ3pCLDRCQUFxQjs7UUFDckIsMkJBQW9COztRQUNwQiw2QkFBc0I7O1FBQ3RCLDJCQUF1RDs7UUFFdkQsZ0NBQW9COzs7Ozs7UUFFcEIsc0RBQWtDOzs7O1FBQ2xDLCtDQUF5Qjs7Ozs7O1FBQ3pCLGtFQUFzRDs7Ozs7O1FBQ3RELDJEQUEyQzs7Ozs7Ozs7UUFDM0MscUZBQXFGOzs7Ozs7UUFDckYsOERBQW1EOzs7Ozs7O1FBQ25ELHNFQUFpRTs7Ozs7O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5cdFx0Y3JlYXRlKCAuLi5hcmdzOiBhbnlbXSApOiBQcm9taXNlPHZvaWQ+O1xuXHR9XG59XG4iXX0= |
@@ -6,3 +6,3 @@ /** | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -27,2 +27,2 @@ */ | ||
export { CKEditorModule }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3IubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGNrZWRpdG9yL2NrZWRpdG9yNS1hbmd1bGFyLyIsInNvdXJjZXMiOlsiY2tlZGl0b3IubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBS0EsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBQzdDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXpEO0lBQUE7SUFLNkIsQ0FBQzs7Z0JBTDdCLFFBQVEsU0FBRTtvQkFDVixPQUFPLEVBQUUsQ0FBRSxXQUFXLEVBQUUsWUFBWSxDQUFFO29CQUN0QyxZQUFZLEVBQUUsQ0FBRSxpQkFBaUIsQ0FBRTtvQkFDbkMsT0FBTyxFQUFFLENBQUUsaUJBQWlCLENBQUU7aUJBQzlCOztJQUM0QixxQkFBQztDQUFBLEFBTDlCLElBSzhCO1NBQWpCLGNBQWMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlIENvcHlyaWdodCAoYykgMjAwMy0yMD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
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -13,2 +13,2 @@ */ | ||
export { CKEditorModule } from './ckeditor.module'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLGVBQWMsWUFBWSxDQUFDO0FBQzNCLGtDQUFjLHNCQUFzQixDQUFDO0FBQ3JDLCtCQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZSBDb3B5cmlnaHQgKGMpIDIwMDMtMjAxOSwgQ0tTb3VyY2UgLSBGcmVkZXJpY28gS25hYmJlbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqIEZvciBsaWNlbnNpbmcsIHNlZSBMSUNFTlNFLm1kLlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vY2tlZGl0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AY2tlZGl0b3IvY2tlZGl0b3I1LWFuZ3VsYXIvIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUtBLGVBQWMsWUFBWSxDQUFDO0FBQzNCLGtDQUFjLHNCQUFzQixDQUFDO0FBQ3JDLCtCQUFjLG1CQUFtQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZSBDb3B5cmlnaHQgKGMpIDIwMDMtMjAyMCwgQ0tTb3VyY2UgLSBGcmVkZXJpY28gS25hYmJlbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cbiAqIEZvciBsaWNlbnNpbmcsIHNlZSBMSUNFTlNFLm1kLlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vY2tlZGl0b3InO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9ja2VkaXRvci5tb2R1bGUnO1xuIl19 |
@@ -0,1 +1,3 @@ | ||
import { __awaiter } from 'tslib'; | ||
import EditorWatchdog from '@ckeditor/ckeditor5-watchdog/src/editorwatchdog'; | ||
import { Component, Input, Output, NgZone, EventEmitter, forwardRef, ElementRef, NgModule } from '@angular/core'; | ||
@@ -10,3 +12,3 @@ import { CommonModule } from '@angular/common'; | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -64,2 +66,18 @@ */ | ||
CKEditor5.Editor = Editor; | ||
/** | ||
* @record | ||
*/ | ||
function ContextWatchdog() { } | ||
CKEditor5.ContextWatchdog = ContextWatchdog; | ||
/** | ||
* @record | ||
*/ | ||
function EditorWatchdog$$1() { } | ||
CKEditor5.EditorWatchdog = EditorWatchdog$$1; | ||
/** | ||
* @record | ||
* @template T | ||
*/ | ||
function Watchdog() { } | ||
CKEditor5.Watchdog = Watchdog; | ||
})(CKEditor5 || (CKEditor5 = {})); | ||
@@ -71,2 +89,71 @@ | ||
*/ | ||
/** | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
// A copy of @ckeditor/ckeditor5-utils/src/uid.js | ||
// A hash table of hex numbers to avoid using toString() in uid() which is costly. | ||
// [ '00', '01', '02', ..., 'fe', 'ff' ] | ||
const ɵ0 = /** | ||
* @param {?} val | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
(val, index) => ('0' + (index).toString(16)).slice(-2); | ||
/** @type {?} */ | ||
const HEX_NUMBERS = new Array(256).fill(0) | ||
.map((ɵ0)); | ||
/** | ||
* Returns a unique id. The id starts with an "e" character and a randomly generated string of | ||
* 32 alphanumeric characters. | ||
* | ||
* **Note**: The characters the unique id is built from correspond to the hex number notation | ||
* (from "0" to "9", from "a" to "f"). In other words, each id corresponds to an "e" followed | ||
* by 16 8-bit numbers next to each other. | ||
* | ||
* @return {?} An unique id string. | ||
*/ | ||
function uid() { | ||
// Let's create some positive random 32bit integers first. | ||
// | ||
// 1. Math.random() is a float between 0 and 1. | ||
// 2. 0x100000000 is 2^32 = 4294967296. | ||
// 3. >>> 0 enforces integer (in JS all numbers are floating point). | ||
// | ||
// For instance: | ||
// Math.random() * 0x100000000 = 3366450031.853859 | ||
// but | ||
// Math.random() * 0x100000000 >>> 0 = 3366450031. | ||
/** @type {?} */ | ||
const r1 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
const r2 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
const r3 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
const r4 = Math.random() * 0x100000000 >>> 0; | ||
// Make sure that id does not start with number. | ||
return 'e' + | ||
HEX_NUMBERS[r1 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 24 & 0xFF]; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
class CKEditorComponent { | ||
@@ -120,5 +207,5 @@ /** | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
*/ | ||
this.editorInstance = null; | ||
this.error = new EventEmitter(); | ||
/** | ||
@@ -133,2 +220,3 @@ * If the component is read–only before the editor instance is created, it remembers that state, | ||
this.isEditorSettingData = false; | ||
this.id = uid(); | ||
this.ngZone = ngZone; | ||
@@ -156,2 +244,15 @@ this.elementRef = elementRef; | ||
} | ||
/** | ||
* The instance of the editor created by this component. | ||
* @return {?} | ||
*/ | ||
get editorInstance() { | ||
if (this.editorWatchdog) { | ||
return this.editorWatchdog.editor; | ||
} | ||
if (this.watchdog) { | ||
return this.watchdog.getItem(this.id); | ||
} | ||
return null; | ||
} | ||
// Implementing the AfterViewInit interface. | ||
@@ -162,8 +263,3 @@ /** | ||
ngAfterViewInit() { | ||
this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.createEditor(); | ||
})); | ||
this.attachToWatchdog(); | ||
} | ||
@@ -175,6 +271,11 @@ // Implementing the OnDestroy interface. | ||
ngOnDestroy() { | ||
if (this.editorInstance) { | ||
this.editorInstance.destroy(); | ||
this.editorInstance = null; | ||
} | ||
return __awaiter(this, void 0, void 0, /** @this {!CKEditorComponent} */ function* () { | ||
if (this.watchdog) { | ||
yield this.watchdog.remove(this.id); | ||
} | ||
else if (this.editorWatchdog && this.editorWatchdog.editor) { | ||
yield this.editorWatchdog.destroy(); | ||
this.editorWatchdog = undefined; | ||
} | ||
}); | ||
} | ||
@@ -232,10 +333,8 @@ // Implementing the ControlValueAccessor interface (only when binding to ngModel). | ||
setDisabledState(isDisabled) { | ||
// If already initialized | ||
// If already initialized. | ||
if (this.editorInstance) { | ||
this.editorInstance.isReadOnly = isDisabled; | ||
} | ||
// If not, wait for it to be ready; store the state. | ||
else { | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
// Store the state anyway to use it once the editor is created. | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
@@ -249,23 +348,44 @@ /** | ||
*/ | ||
createEditor() { | ||
attachToWatchdog() { | ||
/** @type {?} */ | ||
const element = document.createElement(this.tagName); | ||
this.editorElement = element; | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
const creator = (/** | ||
* @param {?} element | ||
* @param {?} config | ||
* @return {?} | ||
*/ | ||
(element, config) => __awaiter(this, void 0, void 0, function* () { | ||
return this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
() => __awaiter(this, void 0, void 0, function* () { | ||
this.elementRef.nativeElement.appendChild(element); | ||
/** @type {?} */ | ||
const editor = yield (/** @type {?} */ (this.editor)).create(element, config); | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
this.ngZone.run((/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.ready.emit(editor); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
return editor; | ||
}))); | ||
})); | ||
/** @type {?} */ | ||
const config = Object.assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
this.elementRef.nativeElement.appendChild(element); | ||
return (/** @type {?} */ (this.editor)).create(element, config) | ||
.then((/** | ||
const destructor = (/** | ||
* @param {?} editor | ||
* @return {?} | ||
*/ | ||
editor => { | ||
this.editorInstance = editor; | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
(editor) => __awaiter(this, void 0, void 0, function* () { | ||
yield editor.destroy(); | ||
this.elementRef.nativeElement.removeChild((/** @type {?} */ (this.editorElement))); | ||
})); | ||
/** @type {?} */ | ||
const emitError = (/** | ||
* @return {?} | ||
*/ | ||
() => { | ||
this.ngZone.run((/** | ||
@@ -275,15 +395,55 @@ * @return {?} | ||
() => { | ||
this.ready.emit(editor); | ||
this.error.emit(); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
})) | ||
.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
(err) => { | ||
console.error(err.stack); | ||
})); | ||
}); | ||
/** @type {?} */ | ||
const element = document.createElement(this.tagName); | ||
/** @type {?} */ | ||
const config = this.getConfig(); | ||
this.editorElement = element; | ||
// Based on the presence of the watchdog decide how to initialize the editor. | ||
if (this.watchdog) { | ||
// When the context watchdog is passed add the new item to it based on the passed configuration. | ||
this.watchdog.add({ | ||
id: this.id, | ||
type: 'editor', | ||
creator, | ||
destructor, | ||
sourceElementOrData: element, | ||
config | ||
}); | ||
this.watchdog.on('itemError', (/** | ||
* @param {?} _ | ||
* @param {?} __1 | ||
* @return {?} | ||
*/ | ||
(_, { itemId }) => { | ||
if (itemId === this.id) { | ||
emitError(); | ||
} | ||
})); | ||
} | ||
else { | ||
// In the other case create the watchdog by hand to keep the editor running. | ||
/** @type {?} */ | ||
const editorWatchdog = new EditorWatchdog(this.editor); | ||
editorWatchdog.setCreator(creator); | ||
editorWatchdog.setDestructor(destructor); | ||
editorWatchdog.on('error', emitError); | ||
this.editorWatchdog = editorWatchdog; | ||
this.editorWatchdog.create(element, config); | ||
} | ||
} | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
getConfig() { | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
return Object.assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
} | ||
/** | ||
* Integrates the editor with the component by attaching related event listeners. | ||
@@ -373,2 +533,3 @@ * @private | ||
tagName: [{ type: Input }], | ||
watchdog: [{ type: Input }], | ||
disabled: [{ type: Input }], | ||
@@ -378,3 +539,4 @@ ready: [{ type: Output }], | ||
blur: [{ type: Output }], | ||
focus: [{ type: Output }] | ||
focus: [{ type: Output }], | ||
error: [{ type: Output }] | ||
}; | ||
@@ -381,0 +543,0 @@ |
@@ -1,2 +0,3 @@ | ||
import { __assign } from 'tslib'; | ||
import { __awaiter, __generator, __assign } from 'tslib'; | ||
import EditorWatchdog from '@ckeditor/ckeditor5-watchdog/src/editorwatchdog'; | ||
import { Component, Input, Output, NgZone, EventEmitter, forwardRef, ElementRef, NgModule } from '@angular/core'; | ||
@@ -11,3 +12,3 @@ import { CommonModule } from '@angular/common'; | ||
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -65,2 +66,18 @@ */ | ||
CKEditor5.Editor = Editor; | ||
/** | ||
* @record | ||
*/ | ||
function ContextWatchdog() { } | ||
CKEditor5.ContextWatchdog = ContextWatchdog; | ||
/** | ||
* @record | ||
*/ | ||
function EditorWatchdog$$1() { } | ||
CKEditor5.EditorWatchdog = EditorWatchdog$$1; | ||
/** | ||
* @record | ||
* @template T | ||
*/ | ||
function Watchdog() { } | ||
CKEditor5.Watchdog = Watchdog; | ||
})(CKEditor5 || (CKEditor5 = {})); | ||
@@ -72,2 +89,71 @@ | ||
*/ | ||
/** | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
// A copy of @ckeditor/ckeditor5-utils/src/uid.js | ||
// A hash table of hex numbers to avoid using toString() in uid() which is costly. | ||
// [ '00', '01', '02', ..., 'fe', 'ff' ] | ||
var ɵ0 = /** | ||
* @param {?} val | ||
* @param {?} index | ||
* @return {?} | ||
*/ | ||
function (val, index) { return ('0' + (index).toString(16)).slice(-2); }; | ||
/** @type {?} */ | ||
var HEX_NUMBERS = new Array(256).fill(0) | ||
.map((ɵ0)); | ||
/** | ||
* Returns a unique id. The id starts with an "e" character and a randomly generated string of | ||
* 32 alphanumeric characters. | ||
* | ||
* **Note**: The characters the unique id is built from correspond to the hex number notation | ||
* (from "0" to "9", from "a" to "f"). In other words, each id corresponds to an "e" followed | ||
* by 16 8-bit numbers next to each other. | ||
* | ||
* @return {?} An unique id string. | ||
*/ | ||
function uid() { | ||
// Let's create some positive random 32bit integers first. | ||
// | ||
// 1. Math.random() is a float between 0 and 1. | ||
// 2. 0x100000000 is 2^32 = 4294967296. | ||
// 3. >>> 0 enforces integer (in JS all numbers are floating point). | ||
// | ||
// For instance: | ||
// Math.random() * 0x100000000 = 3366450031.853859 | ||
// but | ||
// Math.random() * 0x100000000 >>> 0 = 3366450031. | ||
/** @type {?} */ | ||
var r1 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r2 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r3 = Math.random() * 0x100000000 >>> 0; | ||
/** @type {?} */ | ||
var r4 = Math.random() * 0x100000000 >>> 0; | ||
// Make sure that id does not start with number. | ||
return 'e' + | ||
HEX_NUMBERS[r1 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r1 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r2 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r3 >> 24 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 0 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 8 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 16 & 0xFF] + | ||
HEX_NUMBERS[r4 >> 24 & 0xFF]; | ||
} | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
var CKEditorComponent = /** @class */ (function () { | ||
@@ -117,5 +203,5 @@ function CKEditorComponent(elementRef, ngZone) { | ||
/** | ||
* The instance of the editor created by this component. | ||
* Fires when the editor component crashes. | ||
*/ | ||
this.editorInstance = null; | ||
this.error = new EventEmitter(); | ||
/** | ||
@@ -130,2 +216,3 @@ * If the component is read–only before the editor instance is created, it remembers that state, | ||
this.isEditorSettingData = false; | ||
this.id = uid(); | ||
this.ngZone = ngZone; | ||
@@ -162,2 +249,22 @@ this.elementRef = elementRef; | ||
}); | ||
Object.defineProperty(CKEditorComponent.prototype, "editorInstance", { | ||
/** | ||
* The instance of the editor created by this component. | ||
*/ | ||
get: /** | ||
* The instance of the editor created by this component. | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (this.editorWatchdog) { | ||
return this.editorWatchdog.editor; | ||
} | ||
if (this.watchdog) { | ||
return this.watchdog.getItem(this.id); | ||
} | ||
return null; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
// Implementing the AfterViewInit interface. | ||
@@ -174,9 +281,3 @@ // Implementing the AfterViewInit interface. | ||
function () { | ||
var _this = this; | ||
this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.createEditor(); | ||
})); | ||
this.attachToWatchdog(); | ||
}; | ||
@@ -194,6 +295,22 @@ // Implementing the OnDestroy interface. | ||
function () { | ||
if (this.editorInstance) { | ||
this.editorInstance.destroy(); | ||
this.editorInstance = null; | ||
} | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!this.watchdog) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, this.watchdog.remove(this.id)]; | ||
case 1: | ||
_a.sent(); | ||
return [3 /*break*/, 4]; | ||
case 2: | ||
if (!(this.editorWatchdog && this.editorWatchdog.editor)) return [3 /*break*/, 4]; | ||
return [4 /*yield*/, this.editorWatchdog.destroy()]; | ||
case 3: | ||
_a.sent(); | ||
this.editorWatchdog = undefined; | ||
_a.label = 4; | ||
case 4: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
@@ -279,10 +396,8 @@ // Implementing the ControlValueAccessor interface (only when binding to ngModel). | ||
function (isDisabled) { | ||
// If already initialized | ||
// If already initialized. | ||
if (this.editorInstance) { | ||
this.editorInstance.isReadOnly = isDisabled; | ||
} | ||
// If not, wait for it to be ready; store the state. | ||
else { | ||
this.initialIsDisabled = isDisabled; | ||
} | ||
// Store the state anyway to use it once the editor is created. | ||
this.initialIsDisabled = isDisabled; | ||
}; | ||
@@ -301,3 +416,3 @@ /** | ||
*/ | ||
CKEditorComponent.prototype.createEditor = /** | ||
CKEditorComponent.prototype.attachToWatchdog = /** | ||
* Creates the editor instance, sets initial editor data, then integrates | ||
@@ -312,21 +427,60 @@ * the editor with the Angular component. This method does not use the `editor.setData()` | ||
/** @type {?} */ | ||
var element = document.createElement(this.tagName); | ||
this.editorElement = element; | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
var creator = (/** | ||
* @param {?} element | ||
* @param {?} config | ||
* @return {?} | ||
*/ | ||
function (element, config) { return __awaiter(_this, void 0, void 0, function () { | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.ngZone.runOutsideAngular((/** | ||
* @return {?} | ||
*/ | ||
function () { return __awaiter(_this, void 0, void 0, function () { | ||
var editor; | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
this.elementRef.nativeElement.appendChild(element); | ||
return [4 /*yield*/, (/** @type {?} */ (this.editor)).create(element, config)]; | ||
case 1: | ||
editor = _a.sent(); | ||
if (this.initialIsDisabled) { | ||
editor.isReadOnly = this.initialIsDisabled; | ||
} | ||
this.ngZone.run((/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.ready.emit(editor); | ||
})); | ||
this.setUpEditorEvents(editor); | ||
return [2 /*return*/, editor]; | ||
} | ||
}); | ||
}); }))]; | ||
}); | ||
}); }); | ||
/** @type {?} */ | ||
var config = __assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
this.elementRef.nativeElement.appendChild(element); | ||
return (/** @type {?} */ (this.editor)).create(element, config) | ||
.then((/** | ||
var destructor = (/** | ||
* @param {?} editor | ||
* @return {?} | ||
*/ | ||
function (editor) { | ||
_this.editorInstance = editor; | ||
if (_this.initialIsDisabled) { | ||
editor.isReadOnly = _this.initialIsDisabled; | ||
} | ||
function (editor) { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, editor.destroy()]; | ||
case 1: | ||
_a.sent(); | ||
this.elementRef.nativeElement.removeChild((/** @type {?} */ (this.editorElement))); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); }); | ||
/** @type {?} */ | ||
var emitError = (/** | ||
* @return {?} | ||
*/ | ||
function () { | ||
_this.ngZone.run((/** | ||
@@ -336,15 +490,60 @@ * @return {?} | ||
function () { | ||
_this.ready.emit(editor); | ||
_this.error.emit(); | ||
})); | ||
_this.setUpEditorEvents(editor); | ||
})) | ||
.catch((/** | ||
* @param {?} err | ||
* @return {?} | ||
*/ | ||
function (err) { | ||
console.error(err.stack); | ||
})); | ||
}); | ||
/** @type {?} */ | ||
var element = document.createElement(this.tagName); | ||
/** @type {?} */ | ||
var config = this.getConfig(); | ||
this.editorElement = element; | ||
// Based on the presence of the watchdog decide how to initialize the editor. | ||
if (this.watchdog) { | ||
// When the context watchdog is passed add the new item to it based on the passed configuration. | ||
this.watchdog.add({ | ||
id: this.id, | ||
type: 'editor', | ||
creator: creator, | ||
destructor: destructor, | ||
sourceElementOrData: element, | ||
config: config | ||
}); | ||
this.watchdog.on('itemError', (/** | ||
* @param {?} _ | ||
* @param {?} __1 | ||
* @return {?} | ||
*/ | ||
function (_, _a) { | ||
var itemId = _a.itemId; | ||
if (itemId === _this.id) { | ||
emitError(); | ||
} | ||
})); | ||
} | ||
else { | ||
// In the other case create the watchdog by hand to keep the editor running. | ||
/** @type {?} */ | ||
var editorWatchdog = new EditorWatchdog(this.editor); | ||
editorWatchdog.setCreator(creator); | ||
editorWatchdog.setDestructor(destructor); | ||
editorWatchdog.on('error', emitError); | ||
this.editorWatchdog = editorWatchdog; | ||
this.editorWatchdog.create(element, config); | ||
} | ||
}; | ||
/** | ||
* @private | ||
* @return {?} | ||
*/ | ||
CKEditorComponent.prototype.getConfig = /** | ||
* @private | ||
* @return {?} | ||
*/ | ||
function () { | ||
if (this.data && this.config.initialData) { | ||
throw new Error('Editor data should be provided either using `config.initialData` or `data` properties.'); | ||
} | ||
// Merge two possible ways of providing data into the `config.initialData` field. | ||
return __assign({}, this.config, { initialData: this.config.initialData || this.data || '' }); | ||
}; | ||
/** | ||
* Integrates the editor with the component by attaching related event listeners. | ||
@@ -443,2 +642,3 @@ */ | ||
tagName: [{ type: Input }], | ||
watchdog: [{ type: Input }], | ||
disabled: [{ type: Input }], | ||
@@ -448,3 +648,4 @@ ready: [{ type: Output }], | ||
blur: [{ type: Output }], | ||
focus: [{ type: Output }] | ||
focus: [{ type: Output }], | ||
error: [{ type: Output }] | ||
}; | ||
@@ -451,0 +652,0 @@ return CKEditorComponent; |
/** | ||
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. | ||
* @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md. | ||
@@ -4,0 +4,0 @@ */ |
@@ -5,3 +5,3 @@ Software License Agreement | ||
**CKEditor 5 component for Angular** – https://github.com/ckeditor/ckeditor5-angular <br> | ||
Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
Copyright (c) 2003-2020, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved. | ||
@@ -8,0 +8,0 @@ Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html). |
{ | ||
"name": "@ckeditor/ckeditor5-angular", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Official Angular component for CKEditor 5 – the best browser-based rich text editor.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
369540
32
4135
0