diff --git a/README.md b/README.md index f5652f5c..f659be3d 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,25 @@ -# Official TinyMCE Angular Component +# Fork Of The Official TinyMCE Angular Component ## About +Official Repo [tinymce/tinymce-angular](https://github.com/tinymce/tinymce-angular) This package is a thin wrapper around [TinyMCE](https://github.com/tinymce/tinymce) to make it easier to use in an Angular application. -* If you need detailed documentation on TinyMCE, see: [TinyMCE Documentation](https://www.tiny.cloud/docs/). -* For the TinyMCE Angular Quick Start, see: [TinyMCE Documentation - Angular Integration](https://www.tiny.cloud/docs/integrations/angular/#tinymceangularintegrationquickstartguide). -* For the TinyMCE Angular Technical Reference, see: [TinyMCE Documentation - TinyMCE Angular Technical Reference](https://www.tiny.cloud/docs/integrations/angular/#tinymceangulartechnicalreference). +* If you need detailed documentation on TinyMCE, see: [TinyMCE Documentation](https://www.tiny.cloud/docs/tinymce/8/). +* For the TinyMCE Angular Quick Start, see: [TinyMCE Documentation - Angular Integration](https://www.tiny.cloud/docs/tinymce/8/angular-cloud/). +* For the TinyMCE Angular Technical Reference, see: [TinyMCE Documentation - TinyMCE Angular Technical Reference](https://www.tiny.cloud/docs/tinymce/8/angular-ref/). * For our quick demos, check out the TinyMCE Angular [Storybook](https://tinymce.github.io/tinymce-angular/). ### Support -For Angular 13+, use integration version 5.x: - -`npm install @tinymce/tinymce-angular@^5.0.0` - -For Angular 9+, use integration version 4.x: - -`npm install @tinymce/tinymce-angular@^4.0.0` - -For Angular 8 and below use integration version 3.x: - -`npm install @tinymce/tinymce-angular@^3.0.0` - -Versions below Angular 5 are not supported. +|Angular version|`tinymce-angular` version| +|--- |--- | +|16+ |8+ | +|14+ |7.x | +|13+ |6.x | +|9+ |4.x | +|<= 8 |3.x | +|< 5 | Not supported | ### Issues diff --git a/package.json b/package.json index e3492abf..b1b9a191 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "description": "Official TinyMCE Angular Component", - "author": "Ephox Corporation DBA Tiny Technologies, Inc.", + "description": "Fork Of The Official TinyMCE Angular Component", + "author": "ZeroRex0126", "license": "MIT", "scripts": { "preinstall": "node -e \"if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('You must use Yarn to install, not NPM')\"", @@ -67,5 +67,5 @@ "tinymce": "^5.5.0" }, "version": "6.0.0", - "name": "@tinymce/tinymce-angular" + "name": "@xeroharo/tinymce-angular" } diff --git a/tinymce-angular-component/package.json b/tinymce-angular-component/package.json index 6f7b4064..c25adc28 100644 --- a/tinymce-angular-component/package.json +++ b/tinymce-angular-component/package.json @@ -1,9 +1,9 @@ { - "name": "@tinymce/tinymce-angular", - "description": "Official TinyMCE Angular Component", + "name": "@xeroharo/tinymce-angular", + "description": "Fork Of The Official TinyMCE Angular Component", "version": "", - "repository": "https://github.com/tinymce/tinymce-angular.git", - "author": "Ephox Corporation DBA Tiny Technologies, Inc.", + "repository": "https://github.com/ZeroRex0126/tinymce-angular.git", + "author": "ZeroRex.", "license": "MIT", "private": false, "peerDependencies": { diff --git a/tinymce-angular-component/src/main/ts/editor/editor.component.ts b/tinymce-angular-component/src/main/ts/editor/editor.component.ts index 74721e34..b4113a3f 100644 --- a/tinymce-angular-component/src/main/ts/editor/editor.component.ts +++ b/tinymce-angular-component/src/main/ts/editor/editor.component.ts @@ -81,9 +81,7 @@ export class EditorComponent extends Events implements AfterViewInit, ControlVal } public writeValue(value: string | null): void { - if (this._editor && this._editor.initialized) { - this._editor.setContent(isNullOrUndefined(value) ? '' : value); - } else { + if (!this._editor || !this._editor.initialized) { this.initialValue = value === null ? undefined : value; } }