@dignite-ng/expand.ck-editor 3.0.0-rc.2 → 3.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +1,155 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, inject, Component, NgModule, Input, ViewChild, Pipe } from '@angular/core';
3
- import * as i1$1 from '@angular/router';
2
+ import { NgModule, inject, ChangeDetectorRef, Component, Input, ViewChild, Injectable } from '@angular/core';
3
+ import * as i1 from '@angular/router';
4
4
  import { RouterModule } from '@angular/router';
5
- import { AccessibilityHelp, Alignment, Autoformat, AutoImage, Autosave, Base64UploadAdapter, BlockQuote, Bold, CloudServices, Code, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, Highlight, HorizontalLine, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, MediaEmbed, Paragraph, PasteFromOffice, RemoveFormat, SelectAll, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextTransformation, TodoList, Underline, Undo, ClassicEditor } from 'ckeditor5';
6
- import * as i2$1 from '@abp/ng.core';
7
- import { ConfigStateService, LazyLoadService, SubscriptionService, LOADING_STRATEGY, RestService, CoreModule } from '@abp/ng.core';
8
- import * as i1 from '@angular/forms';
9
- import { FormBuilder, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
10
- import * as i2 from '@angular/common';
11
- import * as i4 from '@ckeditor/ckeditor5-angular';
12
- import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
5
+ import * as i2 from '@abp/ng.core';
6
+ import { ConfigStateService, RestService, LazyLoadService, SubscriptionService, LOADING_STRATEGY, CoreModule } from '@abp/ng.core';
13
7
  import { ThemeSharedModule } from '@abp/ng.theme.shared';
8
+ import * as i1$1 from '@angular/forms';
9
+ import { FormBuilder, Validators } from '@angular/forms';
14
10
  import * as i3 from '@ngx-validate/core';
15
- import { DomSanitizer } from '@angular/platform-browser';
11
+ import * as i1$2 from '@angular/common';
12
+ import * as i4 from '@ckeditor/ckeditor5-angular';
13
+ import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
14
+
15
+ const routes = [];
16
+ class CkEditorRoutingModule {
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
18
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, imports: [i1.RouterModule], exports: [RouterModule] }); }
19
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
20
+ }
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, decorators: [{
22
+ type: NgModule,
23
+ args: [{
24
+ imports: [RouterModule.forChild(routes)],
25
+ exports: [RouterModule],
26
+ }]
27
+ }] });
28
+
29
+ class CkEditorConfig {
30
+ constructor(data) {
31
+ /**文件容器名称 */
32
+ // placeholder: any = new FormControl('', Validators.required);
33
+ this['Ckeditor.ImagesContainerName'] = ['', []];
34
+ /**多选 */
35
+ // placeholder: any = new FormControl('', Validators.required);
36
+ this['Ckeditor.InitialContent'] = ['', []];
37
+ if (data) {
38
+ for (const key in data) {
39
+ if (data.hasOwnProperty(key)) {
40
+ this[key] = data[key];
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ class CkEditorConfigComponent {
48
+ constructor(fb) {
49
+ this.fb = fb;
50
+ this.cdr = inject(ChangeDetectorRef);
51
+ }
52
+ set Entity(v) {
53
+ this._Entity = v;
54
+ this.dataLoaded();
55
+ }
56
+ set selected(v) {
57
+ this._selected = v || '';
58
+ // this.dataLoaded()
59
+ }
60
+ set type(v) {
61
+ this._type = v;
62
+ // this.dataLoaded()
63
+ }
64
+ //
65
+ get formConfiguration() {
66
+ return this._Entity.get('formConfiguration');
67
+ }
68
+ async dataLoaded() {
69
+ if (this._Entity && this._type) {
70
+ await this.AfterInit();
71
+ this.cdr.detectChanges(); // 手动触发变更检测
72
+ this.submitclick?.nativeElement?.click();
73
+ }
74
+ }
75
+ AfterInit() {
76
+ return new Promise((resolve, rejects) => {
77
+ this._Entity.setControl('formConfiguration', this.fb.group(new CkEditorConfig()));
78
+ if (this._selected && this._selected.formControlName == this._type) {
79
+ this.formConfiguration.patchValue({
80
+ ...this._selected.formConfiguration,
81
+ });
82
+ }
83
+ resolve(true);
84
+ });
85
+ }
86
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorConfigComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
87
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CkEditorConfigComponent, selector: "ck-editor-config", inputs: { Entity: "Entity", selected: "selected", type: "type" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::ImagesContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.ImagesContainerName\">\n </div>\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::InitialContent' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.InitialContent\">\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
88
+ }
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorConfigComponent, decorators: [{
90
+ type: Component,
91
+ args: [{ selector: 'ck-editor-config', template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::ImagesContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.ImagesContainerName\">\n </div>\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::InitialContent' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.InitialContent\">\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>" }]
92
+ }], ctorParameters: () => [{ type: i1$1.FormBuilder }], propDecorators: { Entity: [{
93
+ type: Input
94
+ }], selected: [{
95
+ type: Input
96
+ }], type: [{
97
+ type: Input
98
+ }], submitclick: [{
99
+ type: ViewChild,
100
+ args: ['submitclick', { static: true }]
101
+ }] } });
102
+
103
+ let isBase64UploadAdapter$1 = class isBase64UploadAdapter {
104
+ constructor(loader, ImagesContainerName, restService) {
105
+ this.reader = new FileReader();
106
+ this.Base64 = false;
107
+ this.createFile = (input, config) => this.restService.request({
108
+ method: 'POST',
109
+ url: '/api/file-explorer/files',
110
+ params: { containerName: input.containerName, cellName: input.cellName, directoryId: input.directoryId, entityId: input.entityId },
111
+ body: input.file,
112
+ }, { apiName: 'FileExplorer', ...config });
113
+ this.loader = loader;
114
+ this.ImagesContainerName = ImagesContainerName;
115
+ this.restService = restService;
116
+ }
117
+ upload() {
118
+ return new Promise((resolve, reject) => {
119
+ const reader = this.reader;
120
+ if (this.Base64) {
121
+ reader.addEventListener('load', () => {
122
+ resolve({ default: reader.result });
123
+ });
124
+ reader.addEventListener('error', err => {
125
+ reject(err);
126
+ });
127
+ reader.addEventListener('abort', () => {
128
+ reject();
129
+ });
130
+ this.loader.file.then((file) => {
131
+ reader.readAsDataURL(file);
132
+ });
133
+ }
134
+ else {
135
+ this.loader.file.then((file) => {
136
+ var formData = new FormData();
137
+ formData.append('file', file, file.name);
138
+ this.createFile({
139
+ file: formData,
140
+ containerName: this.ImagesContainerName,
141
+ directoryId: '',
142
+ entityId: ''
143
+ }).subscribe((response) => {
144
+ resolve({ default: response.url });
145
+ }, (error) => {
146
+ reject(error);
147
+ });
148
+ });
149
+ }
150
+ });
151
+ }
152
+ };
16
153
 
17
154
  var easy = {
18
155
  toolbar: {
@@ -29,70 +166,7 @@ var easy = {
29
166
  ],
30
167
  shouldNotGroupWhenFull: false,
31
168
  },
32
- plugins: [
33
- AccessibilityHelp,
34
- Alignment,
35
- Autoformat,
36
- AutoImage,
37
- Autosave,
38
- Base64UploadAdapter,
39
- BlockQuote,
40
- Bold,
41
- CloudServices,
42
- Code,
43
- Essentials,
44
- FontBackgroundColor,
45
- FontColor,
46
- FontFamily,
47
- FontSize,
48
- GeneralHtmlSupport,
49
- Heading,
50
- Highlight,
51
- HorizontalLine,
52
- ImageBlock,
53
- ImageCaption,
54
- ImageInline,
55
- ImageInsert,
56
- ImageInsertViaUrl,
57
- ImageResize,
58
- ImageStyle,
59
- ImageTextAlternative,
60
- ImageToolbar,
61
- ImageUpload,
62
- Indent,
63
- IndentBlock,
64
- Italic,
65
- Link,
66
- LinkImage,
67
- List,
68
- ListProperties,
69
- MediaEmbed,
70
- Paragraph,
71
- PasteFromOffice,
72
- RemoveFormat,
73
- SelectAll,
74
- SpecialCharacters,
75
- SpecialCharactersArrows,
76
- SpecialCharactersCurrency,
77
- SpecialCharactersEssentials,
78
- SpecialCharactersLatin,
79
- SpecialCharactersMathematical,
80
- SpecialCharactersText,
81
- Strikethrough,
82
- Style,
83
- Subscript,
84
- Superscript,
85
- Table,
86
- TableCaption,
87
- TableCellProperties,
88
- TableColumnResize,
89
- TableProperties,
90
- TableToolbar,
91
- TextTransformation,
92
- TodoList,
93
- Underline,
94
- Undo,
95
- ],
169
+ plugins: [],
96
170
  heading: {
97
171
  options: [
98
172
  {
@@ -174,70 +248,7 @@ var defaults = {
174
248
  ],
175
249
  shouldNotGroupWhenFull: false,
176
250
  },
177
- plugins: [
178
- Undo,
179
- Heading,
180
- FontSize,
181
- FontColor,
182
- FontFamily,
183
- FontBackgroundColor,
184
- Link,
185
- Bold,
186
- Italic,
187
- Underline,
188
- Base64UploadAdapter,
189
- ImageToolbar,
190
- ImageUpload,
191
- LinkImage,
192
- AccessibilityHelp,
193
- Alignment,
194
- Autoformat,
195
- AutoImage,
196
- Autosave,
197
- BlockQuote,
198
- CloudServices,
199
- Code,
200
- Essentials,
201
- GeneralHtmlSupport,
202
- Highlight,
203
- HorizontalLine,
204
- ImageBlock,
205
- ImageCaption,
206
- ImageInline,
207
- ImageInsert,
208
- ImageInsertViaUrl,
209
- ImageResize,
210
- ImageStyle,
211
- ImageTextAlternative,
212
- Indent,
213
- IndentBlock,
214
- List,
215
- ListProperties,
216
- MediaEmbed,
217
- Paragraph,
218
- PasteFromOffice,
219
- RemoveFormat,
220
- SelectAll,
221
- SpecialCharacters,
222
- SpecialCharactersArrows,
223
- SpecialCharactersCurrency,
224
- SpecialCharactersEssentials,
225
- SpecialCharactersLatin,
226
- SpecialCharactersMathematical,
227
- SpecialCharactersText,
228
- Strikethrough,
229
- Style,
230
- Subscript,
231
- Superscript,
232
- Table,
233
- TableCaption,
234
- TableCellProperties,
235
- TableColumnResize,
236
- TableProperties,
237
- TableToolbar,
238
- TextTransformation,
239
- TodoList,
240
- ],
251
+ plugins: [],
241
252
  heading: {
242
253
  options: [
243
254
  {
@@ -369,70 +380,7 @@ var standard = {
369
380
  ],
370
381
  shouldNotGroupWhenFull: false,
371
382
  },
372
- plugins: [
373
- AccessibilityHelp,
374
- Alignment,
375
- Autoformat,
376
- AutoImage,
377
- Autosave,
378
- Base64UploadAdapter,
379
- BlockQuote,
380
- Bold,
381
- CloudServices,
382
- Code,
383
- Essentials,
384
- FontBackgroundColor,
385
- FontColor,
386
- FontFamily,
387
- FontSize,
388
- GeneralHtmlSupport,
389
- Heading,
390
- Highlight,
391
- HorizontalLine,
392
- ImageBlock,
393
- ImageCaption,
394
- ImageInline,
395
- ImageInsert,
396
- ImageInsertViaUrl,
397
- ImageResize,
398
- ImageStyle,
399
- ImageTextAlternative,
400
- ImageToolbar,
401
- ImageUpload,
402
- Indent,
403
- IndentBlock,
404
- Italic,
405
- Link,
406
- LinkImage,
407
- List,
408
- ListProperties,
409
- MediaEmbed,
410
- Paragraph,
411
- PasteFromOffice,
412
- RemoveFormat,
413
- SelectAll,
414
- SpecialCharacters,
415
- SpecialCharactersArrows,
416
- SpecialCharactersCurrency,
417
- SpecialCharactersEssentials,
418
- SpecialCharactersLatin,
419
- SpecialCharactersMathematical,
420
- SpecialCharactersText,
421
- Strikethrough,
422
- Style,
423
- Subscript,
424
- Superscript,
425
- Table,
426
- TableCaption,
427
- TableCellProperties,
428
- TableColumnResize,
429
- TableProperties,
430
- TableToolbar,
431
- TextTransformation,
432
- TodoList,
433
- Underline,
434
- Undo,
435
- ],
383
+ plugins: [],
436
384
  fontSize: {
437
385
  options: [10, 12, 14, 'default', 18, 20, 22, 24, 26, 28, 30, 32],
438
386
  supportAllValues: true,
@@ -651,69 +599,7 @@ var full = {
651
599
  ],
652
600
  shouldNotGroupWhenFull: false,
653
601
  },
654
- plugins: [
655
- AccessibilityHelp,
656
- Alignment,
657
- Autoformat,
658
- AutoImage,
659
- Autosave,
660
- Base64UploadAdapter,
661
- BlockQuote,
662
- Bold,
663
- CloudServices,
664
- Code,
665
- Essentials,
666
- FontBackgroundColor,
667
- FontColor,
668
- FontFamily,
669
- FontSize,
670
- GeneralHtmlSupport,
671
- Heading,
672
- HorizontalLine,
673
- ImageBlock,
674
- ImageCaption,
675
- ImageInline,
676
- ImageInsert,
677
- ImageInsertViaUrl,
678
- ImageResize,
679
- ImageStyle,
680
- ImageTextAlternative,
681
- ImageToolbar,
682
- ImageUpload,
683
- Indent,
684
- IndentBlock,
685
- Italic,
686
- Link,
687
- LinkImage,
688
- List,
689
- ListProperties,
690
- MediaEmbed,
691
- Paragraph,
692
- PasteFromOffice,
693
- RemoveFormat,
694
- SelectAll,
695
- SpecialCharacters,
696
- SpecialCharactersArrows,
697
- SpecialCharactersCurrency,
698
- SpecialCharactersEssentials,
699
- SpecialCharactersLatin,
700
- SpecialCharactersMathematical,
701
- SpecialCharactersText,
702
- Strikethrough,
703
- Style,
704
- Subscript,
705
- Superscript,
706
- Table,
707
- TableCaption,
708
- TableCellProperties,
709
- TableColumnResize,
710
- TableProperties,
711
- TableToolbar,
712
- TextTransformation,
713
- TodoList,
714
- Underline,
715
- Undo,
716
- ],
602
+ plugins: [],
717
603
  fontFamily: {
718
604
  supportAllValues: true,
719
605
  },
@@ -930,6 +816,8 @@ class SetCkEditorConfigsService {
930
816
  let { language } = input;
931
817
  return new Promise(async (resolve, rejects) => {
932
818
  let configs = CkEditorTypesObject['easy'];
819
+ let { AccessibilityHelp, Highlight, Alignment, Autoformat, AutoImage, Autosave, Base64UploadAdapter, BlockQuote, Bold, CloudServices, Code, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, HorizontalLine, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, MediaEmbed, Paragraph, PasteFromOffice, RemoveFormat, SelectAll, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextTransformation, TodoList, Underline, Undo } = await import('ckeditor5');
820
+ configs.plugins = [AccessibilityHelp, Highlight, Alignment, Autoformat, AutoImage, Autosave, Base64UploadAdapter, BlockQuote, Bold, CloudServices, Code, Essentials, FontBackgroundColor, FontColor, FontFamily, FontSize, GeneralHtmlSupport, Heading, HorizontalLine, ImageBlock, ImageCaption, ImageInline, ImageInsert, ImageInsertViaUrl, ImageResize, ImageStyle, ImageTextAlternative, ImageToolbar, ImageUpload, Indent, IndentBlock, Italic, Link, LinkImage, List, ListProperties, MediaEmbed, Paragraph, PasteFromOffice, RemoveFormat, SelectAll, SpecialCharacters, SpecialCharactersArrows, SpecialCharactersCurrency, SpecialCharactersEssentials, SpecialCharactersLatin, SpecialCharactersMathematical, SpecialCharactersText, Strikethrough, Style, Subscript, Superscript, Table, TableCaption, TableCellProperties, TableColumnResize, TableProperties, TableToolbar, TextTransformation, TodoList, Underline, Undo];
933
821
  configs.language = LanguagesMap[language];
934
822
  await import(`@ckeditor/ckeditor5-build-decoupled-document/build/translations/${LanguagesMap[language]}`);
935
823
  resolve(configs);
@@ -945,201 +833,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
945
833
  }]
946
834
  }], ctorParameters: () => [] });
947
835
 
948
- class CkEditorDomeComponent {
949
- constructor() {
950
- this.config = inject(ConfigStateService);
951
- this.currentCulture = this.config.getOne('localization')?.currentCulture?.name;
952
- this.Editor = ClassicEditor;
953
- this._config = {
954
- plugins: [Bold, Essentials, Italic, Paragraph, Undo],
955
- toolbar: ['undo', 'redo', '|', 'bold', 'italic'],
956
- };
957
- this.configType = 'default';
958
- this.editorValue = '<p>12233</p>';
959
- this._SetCkEditorConfigsService = inject(SetCkEditorConfigsService);
960
- this.lazyLoadService = inject(LazyLoadService);
961
- this.subscriptionService = inject(SubscriptionService);
962
- this._config_ck = CkEditorTypesObject['full'];
963
- }
964
- /**切换类型 */
965
- switchType(type) {
966
- this.configType = type;
967
- this._config_ck = '';
968
- setTimeout(async () => {
969
- this.loadStyle();
970
- let configs = await this._SetCkEditorConfigsService.get({
971
- language: this.currentCulture,
972
- });
973
- this._config_ck = configs;
974
- }, 0);
975
- }
976
- loadStyle() {
977
- const loaded$ = this.lazyLoadService.load(LOADING_STRATEGY.AppendAnonymousStyleToHead('ckeditor5.css'));
978
- this.subscriptionService.addOne(loaded$);
979
- }
980
- clearconfig() {
981
- this._config = null;
982
- }
983
- /**加载完成 */
984
- ckReady(editor) {
985
- const element = editor.ui.getEditableElement();
986
- const parent = element.parentElement;
987
- parent.insertBefore(editor.ui.view.toolbar.element, element);
988
- }
989
- /**内容改变 */
990
- ckChange({ editor }) {
991
- const data = editor.getData();
992
- this.editorValue = data;
993
- }
994
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorDomeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
995
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CkEditorDomeComponent, selector: "lib-ck-editor-dome", ngImport: i0, template: "<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('easy')\">\u6781\u7B80</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('default')\">\u9ED8\u8BA4</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('standard')\">\u6807\u51C6</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('full')\">\u5B8C\u6574</button>\r\n\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"clearconfig()\">\u6E05\u7A7A\u914D\u7F6E</button>\r\n\r\n<h3>\u81EA\u5B9A\u4E49\u914D\u7F6E</h3>\r\n<ckeditor #editor [editor]=\"Editor\" *ngIf=\"_config_ck\" [(ngModel)]=\"editorValue\" [config]=\"_config\" ></ckeditor>\r\n\r\n<h3>\u7C7B\u578B</h3>\r\n<ckeditor #editor [editor]=\"Editor\" *ngIf=\"_config_ck\" [(ngModel)]=\"editorValue\" [config]=\"_config_ck\" (change)=\"ckChange($event)\" (ready)=\"ckReady($event)\"></ckeditor>\r\n\r\n{{editorValue}}", styles: [""], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.StopPropagationDirective, selector: "[click.stop]", outputs: ["click.stop"] }, { kind: "component", type: i4.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }] }); }
996
- }
997
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorDomeComponent, decorators: [{
998
- type: Component,
999
- args: [{ selector: 'lib-ck-editor-dome', template: "<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('easy')\">\u6781\u7B80</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('default')\">\u9ED8\u8BA4</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('standard')\">\u6807\u51C6</button>\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"switchType('full')\">\u5B8C\u6574</button>\r\n\r\n<button class=\"btn btn-sm btn-primary mx-2 mb-3\" (click.stop)=\"clearconfig()\">\u6E05\u7A7A\u914D\u7F6E</button>\r\n\r\n<h3>\u81EA\u5B9A\u4E49\u914D\u7F6E</h3>\r\n<ckeditor #editor [editor]=\"Editor\" *ngIf=\"_config_ck\" [(ngModel)]=\"editorValue\" [config]=\"_config\" ></ckeditor>\r\n\r\n<h3>\u7C7B\u578B</h3>\r\n<ckeditor #editor [editor]=\"Editor\" *ngIf=\"_config_ck\" [(ngModel)]=\"editorValue\" [config]=\"_config_ck\" (change)=\"ckChange($event)\" (ready)=\"ckReady($event)\"></ckeditor>\r\n\r\n{{editorValue}}" }]
1000
- }] });
1001
-
1002
- const routes = [{
1003
- path: 'dome',
1004
- component: CkEditorDomeComponent,
1005
- }];
1006
- class CkEditorRoutingModule {
1007
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1008
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
1009
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
1010
- }
1011
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorRoutingModule, decorators: [{
1012
- type: NgModule,
1013
- args: [{
1014
- imports: [RouterModule.forChild(routes)],
1015
- exports: [RouterModule],
1016
- }]
1017
- }] });
1018
-
1019
- class CkEditorConfig {
1020
- constructor(data) {
1021
- /**文件容器名称 */
1022
- // placeholder: any = new FormControl('', Validators.required);
1023
- this['Ckeditor.ImagesContainerName'] = ['', []];
1024
- /**多选 */
1025
- // placeholder: any = new FormControl('', Validators.required);
1026
- this['Ckeditor.InitialContent'] = ['', []];
1027
- if (data) {
1028
- for (const key in data) {
1029
- if (data.hasOwnProperty(key)) {
1030
- this[key] = data[key];
1031
- }
1032
- }
1033
- }
1034
- }
1035
- }
1036
-
1037
- class CkEditorConfigComponent {
1038
- constructor(fb) {
1039
- this.fb = fb;
1040
- }
1041
- set Entity(v) {
1042
- this._Entity = v;
1043
- this.dataLoaded();
1044
- }
1045
- set selected(v) {
1046
- this._selected = v || '';
1047
- // this.dataLoaded()
1048
- }
1049
- set type(v) {
1050
- this._type = v;
1051
- // this.dataLoaded()
1052
- }
1053
- //
1054
- get formConfiguration() {
1055
- return this._Entity.get('formConfiguration');
1056
- }
1057
- async dataLoaded() {
1058
- // if (this.Entity && (this._selected || this._selected === '')) {
1059
- if (this._Entity && this._type) {
1060
- await this.AfterInit();
1061
- this.submitclick.nativeElement.click();
1062
- }
1063
- }
1064
- AfterInit() {
1065
- return new Promise((resolve, rejects) => {
1066
- this._Entity.setControl('formConfiguration', this.fb.group(new CkEditorConfig()));
1067
- if (this._selected && this._selected.formControlName == this._type) {
1068
- this.formConfiguration.patchValue({
1069
- ...this._selected.formConfiguration,
1070
- });
1071
- }
1072
- resolve(true);
1073
- });
1074
- }
1075
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorConfigComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
1076
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CkEditorConfigComponent, selector: "ck-editor-config", inputs: { Entity: "Entity", selected: "selected", type: "type" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::ImagesContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.ImagesContainerName\">\n </div>\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::InitialContent' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.InitialContent\">\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2$1.InitDirective, selector: "[abpInit]", outputs: ["abpInit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
1077
- }
1078
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorConfigComponent, decorators: [{
1079
- type: Component,
1080
- args: [{ selector: 'ck-editor-config', template: "<form [formGroup]=\"_Entity\">\n <div formGroupName=\"formConfiguration\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::ImagesContainerName' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.ImagesContainerName\">\n </div>\n <div class=\"mb-3\">\n <label class=\"form-label\">{{'DigniteAbpDynamicFormsCkEditor::InitialContent' | abpLocalization}}</label>\n <input type=\"text\" class=\"form-control\" formControlName=\"Ckeditor.InitialContent\">\n </div>\n <button type=\"submit\" (abpInit)=\"submitclick?.nativeElement?.click()\" style=\"display: none;\"\n #submitclick></button>\n </div>\n</form>" }]
1081
- }], ctorParameters: () => [{ type: i1.FormBuilder }], propDecorators: { Entity: [{
1082
- type: Input
1083
- }], selected: [{
1084
- type: Input
1085
- }], type: [{
1086
- type: Input
1087
- }], submitclick: [{
1088
- type: ViewChild,
1089
- args: ['submitclick', { static: true }]
1090
- }] } });
1091
-
1092
- let isBase64UploadAdapter$1 = class isBase64UploadAdapter {
1093
- constructor(loader, ImagesContainerName, restService) {
1094
- this.reader = new FileReader();
1095
- this.Base64 = false;
1096
- this.createFile = (input, config) => this.restService.request({
1097
- method: 'POST',
1098
- url: '/api/file-explorer/files',
1099
- params: { containerName: input.containerName, cellName: input.cellName, directoryId: input.directoryId, entityId: input.entityId },
1100
- body: input.file,
1101
- }, { apiName: 'FileExplorer', ...config });
1102
- this.loader = loader;
1103
- this.ImagesContainerName = ImagesContainerName;
1104
- this.restService = restService;
1105
- }
1106
- upload() {
1107
- return new Promise((resolve, reject) => {
1108
- const reader = this.reader;
1109
- if (this.Base64) {
1110
- reader.addEventListener('load', () => {
1111
- resolve({ default: reader.result });
1112
- });
1113
- reader.addEventListener('error', err => {
1114
- reject(err);
1115
- });
1116
- reader.addEventListener('abort', () => {
1117
- reject();
1118
- });
1119
- this.loader.file.then((file) => {
1120
- reader.readAsDataURL(file);
1121
- });
1122
- }
1123
- else {
1124
- this.loader.file.then((file) => {
1125
- var formData = new FormData();
1126
- formData.append('file', file, file.name);
1127
- this.createFile({
1128
- file: formData,
1129
- containerName: this.ImagesContainerName,
1130
- directoryId: '',
1131
- entityId: ''
1132
- }).subscribe((response) => {
1133
- resolve({ default: response.url });
1134
- }, (error) => {
1135
- reject(error);
1136
- });
1137
- });
1138
- }
1139
- });
1140
- }
1141
- };
1142
-
1143
836
  class CkEditorControlComponent {
1144
837
  constructor() {
1145
838
  this.config = inject(ConfigStateService);
@@ -1148,11 +841,10 @@ class CkEditorControlComponent {
1148
841
  this.ckEditorValue = '';
1149
842
  /**系统语言 */
1150
843
  this.currentCulture = this.config.getOne('localization')?.currentCulture?.name;
1151
- this.Editor = ClassicEditor;
1152
844
  this.fb = inject(FormBuilder);
1153
845
  /**字段配置列表 */
1154
846
  this._fields = '';
1155
- this.languagesMap = LanguagesMap;
847
+ this.cdr = inject(ChangeDetectorRef);
1156
848
  this._SetCkEditorConfigsService = inject(SetCkEditorConfigsService);
1157
849
  this.lazyLoadService = inject(LazyLoadService);
1158
850
  this.subscriptionService = inject(SubscriptionService);
@@ -1197,16 +889,21 @@ class CkEditorControlComponent {
1197
889
  this.ckEditorValue =
1198
890
  this._selected || this._fields.field.formConfiguration['Ckeditor.InitialContent'];
1199
891
  this.setckeditorInput(this.ckEditorValue);
1200
- this.submitclick.nativeElement.click();
892
+ this.cdr.detectChanges(); // 手动触发变更检测
893
+ this.submitclick?.nativeElement?.click();
1201
894
  }
1202
895
  }
1203
896
  loadckeditor() {
897
+ let _that = this;
1204
898
  return new Promise(async (resolve) => {
1205
- this.loadStyle();
1206
- let configs = await this._SetCkEditorConfigsService.get({
1207
- language: this.currentCulture,
899
+ await import('ckeditor5').then(async (res) => {
900
+ this.loadStyle();
901
+ _that.Editor = res.ClassicEditor;
902
+ let configs = await _that._SetCkEditorConfigsService.get({
903
+ language: _that.currentCulture,
904
+ });
905
+ _that.ckOptions = configs;
1208
906
  });
1209
- this.ckOptions = configs;
1210
907
  resolve(true);
1211
908
  });
1212
909
  }
@@ -1229,7 +926,8 @@ class CkEditorControlComponent {
1229
926
  ? this._selected
1230
927
  : this._fields.field.formConfiguration['Ckeditor.InitialContent'], ValidatorsArray);
1231
928
  this.extraProperties.setControl(this._fields.field.name, newControl);
1232
- this.imagesContainerName = this._fields.field.formConfiguration['Ckeditor.ImagesContainerName'];
929
+ this.imagesContainerName =
930
+ this._fields.field.formConfiguration['Ckeditor.ImagesContainerName'];
1233
931
  if (!this.imagesContainerName) {
1234
932
  this.ckOptions?.toolbar?.items?.splice(this.ckOptions?.toolbar?.items?.indexOf('insertImage'), 1);
1235
933
  }
@@ -1237,7 +935,7 @@ class CkEditorControlComponent {
1237
935
  });
1238
936
  }
1239
937
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1240
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CkEditorControlComponent, selector: "ck-editor-control", inputs: { fields: "fields", parentFiledName: "parentFiledName", selected: "selected", entity: "entity" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-3\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <ng-container *ngIf=\"ckOptions\">\n\n <ckeditor [editor]=\"Editor\" *ngIf=\"Editor\" [config]=\"ckOptions\" (ready)=\"onReady($event)\"\n [formControlName]=\"_fields.field.name\">\n </ckeditor>\n </ng-container>\n <small class=\"form-text text-muted d-block\"\n *ngIf=\"_fields.field.description\">{{_fields.field.description}}</small>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }] }); }
938
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.5", type: CkEditorControlComponent, selector: "ck-editor-control", inputs: { fields: "fields", parentFiledName: "parentFiledName", selected: "selected", entity: "entity" }, viewQueries: [{ propertyName: "submitclick", first: true, predicate: ["submitclick"], descendants: true, static: true }], ngImport: i0, template: "<form [formGroup]=\"_entity\">\n <div formGroupName=\"extraProperties\">\n <div class=\"mb-3\">\n <label class=\"form-label\" *ngIf=\"_fields.displayName\">{{ _fields.displayName }}</label>\n <ng-container *ngIf=\"ckOptions\">\n\n <ckeditor [editor]=\"Editor\" *ngIf=\"Editor\" [config]=\"ckOptions\" (ready)=\"onReady($event)\"\n [formControlName]=\"_fields.field.name\">\n </ckeditor>\n </ng-container>\n <small class=\"form-text text-muted d-block\"\n *ngIf=\"_fields.field.description\">{{_fields.field.description}}</small>\n </div>\n </div>\n <button type=\"submit\" style=\"display: none;\" #submitclick></button>\n</form>", styles: [""], dependencies: [{ kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.CKEditorComponent, selector: "ckeditor", inputs: ["editor", "config", "data", "tagName", "watchdog", "editorWatchdogConfig", "disableTwoWayDataBinding", "disabled"], outputs: ["ready", "change", "blur", "focus", "error"] }] }); }
1241
939
  }
1242
940
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorControlComponent, decorators: [{
1243
941
  type: Component,
@@ -1278,17 +976,12 @@ function AddFieldControlGroup(array = []) {
1278
976
  class CkEditorModule {
1279
977
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1280
978
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: CkEditorModule, declarations: [CkEditorControlComponent,
1281
- CkEditorConfigComponent,
1282
- CkEditorDomeComponent], imports: [FormsModule,
1283
- CoreModule,
979
+ CkEditorConfigComponent], imports: [CoreModule,
1284
980
  ThemeSharedModule,
1285
- ReactiveFormsModule,
1286
981
  CkEditorRoutingModule,
1287
982
  CKEditorModule] }); }
1288
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorModule, imports: [FormsModule,
1289
- CoreModule,
983
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: CkEditorModule, imports: [CoreModule,
1290
984
  ThemeSharedModule,
1291
- ReactiveFormsModule,
1292
985
  CkEditorRoutingModule,
1293
986
  CKEditorModule] }); }
1294
987
  }
@@ -1298,17 +991,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
1298
991
  declarations: [
1299
992
  CkEditorControlComponent,
1300
993
  CkEditorConfigComponent,
1301
- CkEditorDomeComponent,
1302
994
  ],
1303
995
  imports: [
1304
- FormsModule,
1305
996
  CoreModule,
1306
997
  ThemeSharedModule,
1307
- ReactiveFormsModule,
1308
998
  CkEditorRoutingModule,
1309
999
  CKEditorModule,
1310
1000
  ],
1311
- exports: []
1312
1001
  }]
1313
1002
  }] });
1314
1003
 
@@ -1373,28 +1062,6 @@ class isBase64UploadAdapter {
1373
1062
  }
1374
1063
  }
1375
1064
 
1376
- class SetCkeditorContentPipe {
1377
- constructor() {
1378
- this.sanitized = inject(DomSanitizer);
1379
- }
1380
- transform(value, ...args) {
1381
- if (value) {
1382
- value = value.replace(/<oembed url/ig, "<iframe src").replace(/oembed>/ig, "iframe>");
1383
- value = value.replace(/<figure class="media"/ig, "<div").replace(/figure>/ig, "div>");
1384
- }
1385
- return this.sanitized.bypassSecurityTrustHtml(value);
1386
- }
1387
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SetCkeditorContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
1388
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.5", ngImport: i0, type: SetCkeditorContentPipe, isStandalone: true, name: "setCkeditorContent" }); }
1389
- }
1390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImport: i0, type: SetCkeditorContentPipe, decorators: [{
1391
- type: Pipe,
1392
- args: [{
1393
- name: 'setCkeditorContent',
1394
- standalone: true
1395
- }]
1396
- }] });
1397
-
1398
1065
  /*
1399
1066
  * Public API Surface of ck-editor
1400
1067
  */
@@ -1403,5 +1070,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.5", ngImpor
1403
1070
  * Generated bundle index. Do not edit.
1404
1071
  */
1405
1072
 
1406
- export { AddFieldControlGroup, CkEditorModule, CkEditorRoutingModule, CkEditorTypesObject, LanguagesMap, SetCkEditorConfigsService, SetCkeditorContentPipe, ckEditorFieldControlGroup, defaults, easy, full, getExcludeAssignControl, isBase64UploadAdapter, standard };
1073
+ export { AddFieldControlGroup, CkEditorModule, SetCkEditorConfigsService, ckEditorFieldControlGroup, getExcludeAssignControl, isBase64UploadAdapter };
1407
1074
  //# sourceMappingURL=dignite-ng-expand.ck-editor.mjs.map