el-text-editor 0.0.40 → 0.0.42
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.
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, EventEmitter, forwardRef, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
|
3
3
|
import * as i6 from '@angular/forms';
|
4
4
|
import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
5
|
+
import { compress } from 'lz-string';
|
5
6
|
import * as i1 from '@angular/router';
|
6
7
|
import * as i2 from '@angular/platform-browser';
|
7
8
|
import * as i3 from '@ultimate/ngx-fullscreen';
|
@@ -25,7 +26,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.4", ngImpor
|
|
25
26
|
}]
|
26
27
|
}], ctorParameters: function () { return []; } });
|
27
28
|
|
28
|
-
// import { ImageEditorModalComponent } from '../modals/image-editor-modal/image-editor-modal.component';
|
29
29
|
class ElTextEditorComponent {
|
30
30
|
constructor(router, route, renderer, sanitizer) {
|
31
31
|
this.router = router;
|
@@ -1088,8 +1088,10 @@ class ElTextEditorComponent {
|
|
1088
1088
|
switch (this.editorFrom.name) {
|
1089
1089
|
case 'section-content':
|
1090
1090
|
data = { editIMG: true, from: 'htmlEditor', index: this.selectedItemIndex, id: this.editorFrom.id };
|
1091
|
-
|
1092
|
-
|
1091
|
+
const compressedData = compress(JSON.stringify(this.imageEditUrl));
|
1092
|
+
sessionStorage.setItem('editImageFromTemp', compressedData);
|
1093
|
+
const compressedData2 = compress(JSON.stringify(this.sanitizedContent));
|
1094
|
+
sessionStorage.setItem('textEditor', compressedData2);
|
1093
1095
|
// alert('go to editor!')
|
1094
1096
|
this.navigateToIMGEditor(data);
|
1095
1097
|
break;
|
@@ -1098,8 +1100,10 @@ class ElTextEditorComponent {
|
|
1098
1100
|
data = { editIMG: true, from: 'createDocument', index: this.selectedItemIndex, id: this.editorFrom.id, sectionId: this.editorFrom.sectionId };
|
1099
1101
|
// this.navigateToIMGEditor(data);
|
1100
1102
|
this.openDialog(data);
|
1101
|
-
|
1102
|
-
|
1103
|
+
const compressedData3 = compress(JSON.stringify(this.imageEditUrl));
|
1104
|
+
const compressedData4 = compress(this.editorText);
|
1105
|
+
sessionStorage.setItem('editImageFromTemp2', compressedData3);
|
1106
|
+
sessionStorage.setItem('textEditor2', compressedData4);
|
1103
1107
|
break;
|
1104
1108
|
default:
|
1105
1109
|
null;
|