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 = '';
|
@@ -824,6 +825,7 @@ class ElTextEditorComponent {
|
|
824
825
|
// Insert the image into the editor
|
825
826
|
document.execCommand('insertHTML', false, imgHTML);
|
826
827
|
};
|
828
|
+
this.imageEdit2.emit();
|
827
829
|
};
|
828
830
|
reader.readAsDataURL(file);
|
829
831
|
}
|
@@ -1150,14 +1152,8 @@ class ElTextEditorComponent {
|
|
1150
1152
|
const compressedData = compress(JSON.stringify(this.imageEditUrl));
|
1151
1153
|
sessionStorage.setItem('editImageFromTemp', compressedData);
|
1152
1154
|
const compressedData2 = compress(JSON.stringify(this.sanitizedContent));
|
1153
|
-
const compressedTextEditor = compress(this.editorText);
|
1154
1155
|
sessionStorage.setItem('textEditor', compressedData2);
|
1155
1156
|
// alert('go to editor!')
|
1156
|
-
const imageReq = {
|
1157
|
-
editImageFromTemp: compressedData,
|
1158
|
-
textEditor: compressedTextEditor
|
1159
|
-
};
|
1160
|
-
this.imageEdit.emit(imageReq);
|
1161
1157
|
this.navigateToIMGEditor(data);
|
1162
1158
|
break;
|
1163
1159
|
case 'create-document':
|
@@ -1398,7 +1394,7 @@ class ElTextEditorComponent {
|
|
1398
1394
|
}
|
1399
1395
|
}
|
1400
1396
|
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 });
|
1401
|
-
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: [{
|
1397
|
+
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: [{
|
1402
1398
|
provide: NG_VALUE_ACCESSOR,
|
1403
1399
|
useExisting: forwardRef(() => ElTextEditorComponent),
|
1404
1400
|
multi: true
|
@@ -1438,6 +1434,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
1438
1434
|
type: Output
|
1439
1435
|
}], imageEdit: [{
|
1440
1436
|
type: Output
|
1437
|
+
}], imageEdit2: [{
|
1438
|
+
type: Output
|
1441
1439
|
}], placeHolderRemove: [{
|
1442
1440
|
type: Output
|
1443
1441
|
}], isOpen: [{
|