diff --git a/package.json b/package.json index ebc0719..e9f588e 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,12 @@ "author": "CKSource (https://cksource.com/)", "license": "SEE LICENSE IN LICENSE.md", "homepage": "https://ckeditor.com/", - "bugs": "https://github.com/ckeditor/ckeditor4-angular/issues", + "bugs": { + "url": "https://github.com/ckeditor/ckeditor4-angular/issues" + }, "repository": { "type": "git", - "url": "https://github.com/ckeditor/ckeditor4-angular.git" + "url": "git+https://github.com/ckeditor/ckeditor4-angular.git" }, "private": true, "dependencies": { @@ -44,7 +46,7 @@ "@angular/router": "^13.4.0", "@types/jasmine": "^4.3.1", "@types/jasminewd2": "^2.0.10", - "@types/node": "^18.13.0", + "@types/node": "^16.11.7", "browserslist": "^4.21.5", "classlist.js": "^1.1.20150312", "codelyzer": "^6.0.2", @@ -66,7 +68,7 @@ "ts-node": "^10.9.1", "tslib": "^2.5.0", "tslint": "^6.1.3", - "typescript": "4.6.4", + "typescript": "^4.6.4", "wait-until-promise": "^1.0.0", "zone.js": "^0.11.8" }, diff --git a/src/ckeditor/ckeditor.component.ts b/src/ckeditor/ckeditor.component.ts index cf1e5ed..e77b85d 100644 --- a/src/ckeditor/ckeditor.component.ts +++ b/src/ckeditor/ckeditor.component.ts @@ -297,6 +297,17 @@ export class CKEditorComponent implements AfterViewInit, OnDestroy, ControlValue private createEditor(): void { const element = document.createElement( this.tagName ); + const elementId = this.elementRef.nativeElement.id; + + // if the user has specified an id on the node in which they're initializing on, use that ID as the name of the editor! + if (elementId) { + // ysi + const version = (document.querySelector('#app-version') as HTMLInputElement)?.value; + console.log('set..'); + console.log('Build Version: ', version); + CKEDITOR.timestamp = version; + element.id = elementId; + } this.elementRef.nativeElement.appendChild( element ); const userInstanceReadyCallback = this.config?.on?.instanceReady;