el-text-editor 0.0.50 → 0.0.51
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.
- package/esm2020/lib/el-text-editor.component.mjs +6 -8
- package/fesm2015/el-text-editor.mjs +5 -7
- package/fesm2015/el-text-editor.mjs.map +1 -1
- package/fesm2020/el-text-editor.mjs +5 -7
- package/fesm2020/el-text-editor.mjs.map +1 -1
- package/lib/el-text-editor.component.d.ts +2 -1
- package/package.json +1 -1
@@ -38,6 +38,7 @@ class ElTextEditorComponent {
|
|
38
38
|
this.editorActionResponse = new EventEmitter();
|
39
39
|
this.editorTextClear = new EventEmitter();
|
40
40
|
this.imageEdit = new EventEmitter();
|
41
|
+
this.imageEdit2 = new EventEmitter();
|
41
42
|
this.placeHolderRemove = new EventEmitter();
|
42
43
|
this.isOpen = new EventEmitter();
|
43
44
|
this.value = '';
|
@@ -822,6 +823,7 @@ class ElTextEditorComponent {
|
|
822
823
|
// Insert the image into the editor
|
823
824
|
document.execCommand('insertHTML', false, imgHTML);
|
824
825
|
};
|
826
|
+
this.imageEdit2.emit();
|
825
827
|
};
|
826
828
|
reader.readAsDataURL(file);
|
827
829
|
}
|
@@ -1146,14 +1148,8 @@ class ElTextEditorComponent {
|
|
1146
1148
|
const compressedData = compress(JSON.stringify(this.imageEditUrl));
|
1147
1149
|
sessionStorage.setItem('editImageFromTemp', compressedData);
|
1148
1150
|
const compressedData2 = compress(JSON.stringify(this.sanitizedContent));
|
1149
|
-
const compressedTextEditor = compress(this.editorText);
|
1150
1151
|
sessionStorage.setItem('textEditor', compressedData2);
|
1151
1152
|
// alert('go to editor!')
|
1152
|
-
const imageReq = {
|
1153
|
-
editImageFromTemp: compressedData,
|
1154
|
-
textEditor: compressedTextEditor
|
1155
|
-
};
|
1156
|
-
this.imageEdit.emit(imageReq);
|
1157
1153
|
this.navigateToIMGEditor(data);
|
1158
1154
|
break;
|
1159
1155
|
case 'create-document':
|
@@ -1393,7 +1389,7 @@ class ElTextEditorComponent {
|
|
1393
1389
|
}
|
1394
1390
|
}
|
1395
1391
|
ElTextEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.4", ngImport: i0, type: ElTextEditorComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i0.Renderer2 }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
1396
|
-
ElTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: ElTextEditorComponent, selector: "text-editor", inputs: { editorText: "editorText", editorFrom: "editorFrom", editorAction: "editorAction", UserRole: "UserRole", style: "style", disableToolbar: "disableToolbar", placeHolder: "placeHolder", reportId: "reportId", backgroundImage: "backgroundImage", toolbarMode: "toolbarMode", value: "value" }, outputs: { editorTextChange: "editorTextChange", editorActionResponse: "editorActionResponse", editorTextClear: "editorTextClear", imageEdit: "imageEdit", placeHolderRemove: "placeHolderRemove", isOpen: "isOpen" }, providers: [{
|
1392
|
+
ElTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.4", type: ElTextEditorComponent, selector: "text-editor", inputs: { editorText: "editorText", editorFrom: "editorFrom", editorAction: "editorAction", UserRole: "UserRole", style: "style", disableToolbar: "disableToolbar", placeHolder: "placeHolder", reportId: "reportId", backgroundImage: "backgroundImage", toolbarMode: "toolbarMode", value: "value" }, outputs: { editorTextChange: "editorTextChange", editorActionResponse: "editorActionResponse", editorTextClear: "editorTextClear", imageEdit: "imageEdit", imageEdit2: "imageEdit2", placeHolderRemove: "placeHolderRemove", isOpen: "isOpen" }, providers: [{
|
1397
1393
|
provide: NG_VALUE_ACCESSOR,
|
1398
1394
|
useExisting: forwardRef(() => ElTextEditorComponent),
|
1399
1395
|
multi: true
|
@@ -1433,6 +1429,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
1433
1429
|
type: Output
|
1434
1430
|
}], imageEdit: [{
|
1435
1431
|
type: Output
|
1432
|
+
}], imageEdit2: [{
|
1433
|
+
type: Output
|
1436
1434
|
}], placeHolderRemove: [{
|
1437
1435
|
type: Output
|
1438
1436
|
}], isOpen: [{
|