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;
|
@@ -1092,8 +1092,10 @@ class ElTextEditorComponent {
|
|
1092
1092
|
switch (this.editorFrom.name) {
|
1093
1093
|
case 'section-content':
|
1094
1094
|
data = { editIMG: true, from: 'htmlEditor', index: this.selectedItemIndex, id: this.editorFrom.id };
|
1095
|
-
|
1096
|
-
|
1095
|
+
const compressedData = compress(JSON.stringify(this.imageEditUrl));
|
1096
|
+
sessionStorage.setItem('editImageFromTemp', compressedData);
|
1097
|
+
const compressedData2 = compress(JSON.stringify(this.sanitizedContent));
|
1098
|
+
sessionStorage.setItem('textEditor', compressedData2);
|
1097
1099
|
// alert('go to editor!')
|
1098
1100
|
this.navigateToIMGEditor(data);
|
1099
1101
|
break;
|
@@ -1102,8 +1104,10 @@ class ElTextEditorComponent {
|
|
1102
1104
|
data = { editIMG: true, from: 'createDocument', index: this.selectedItemIndex, id: this.editorFrom.id, sectionId: this.editorFrom.sectionId };
|
1103
1105
|
// this.navigateToIMGEditor(data);
|
1104
1106
|
this.openDialog(data);
|
1105
|
-
|
1106
|
-
|
1107
|
+
const compressedData3 = compress(JSON.stringify(this.imageEditUrl));
|
1108
|
+
const compressedData4 = compress(this.editorText);
|
1109
|
+
sessionStorage.setItem('editImageFromTemp2', compressedData3);
|
1110
|
+
sessionStorage.setItem('textEditor2', compressedData4);
|
1107
1111
|
break;
|
1108
1112
|
default:
|
1109
1113
|
null;
|