el-text-editor 0.0.67 → 0.0.68
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 -2
- package/fesm2015/el-text-editor.mjs +5 -1
- package/fesm2015/el-text-editor.mjs.map +1 -1
- package/fesm2020/el-text-editor.mjs +5 -1
- package/fesm2020/el-text-editor.mjs.map +1 -1
- package/lib/el-text-editor.component.d.ts +2 -1
- package/package.json +1 -1
@@ -41,6 +41,7 @@ class ElTextEditorComponent {
|
|
41
41
|
this.imageEdit2 = new EventEmitter();
|
42
42
|
this.placeHolderRemove = new EventEmitter();
|
43
43
|
this.isOpen = new EventEmitter();
|
44
|
+
this.newImageAdded = new EventEmitter();
|
44
45
|
this.value = '';
|
45
46
|
this.showToolbar = false;
|
46
47
|
this.toolbarTop = 0;
|
@@ -912,6 +913,7 @@ class ElTextEditorComponent {
|
|
912
913
|
const imgHTML = imgWidth > editorWidth
|
913
914
|
? `<img src="${img.src}" style="width: 100%; max-width: ${editorWidth}px; height: auto;">`
|
914
915
|
: `<img src="${img.src}" style="width: ${imgWidth}px; height: auto;">`;
|
916
|
+
this.newImageAdded.emit();
|
915
917
|
// Insert the image into the editor
|
916
918
|
document.execCommand('insertHTML', false, imgHTML);
|
917
919
|
};
|
@@ -1616,7 +1618,7 @@ class ElTextEditorComponent {
|
|
1616
1618
|
}
|
1617
1619
|
}
|
1618
1620
|
ElTextEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ElTextEditorComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i0.Renderer2 }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
1619
|
-
ElTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", 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: [{
|
1621
|
+
ElTextEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", 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", newImageAdded: "newImageAdded" }, providers: [{
|
1620
1622
|
provide: NG_VALUE_ACCESSOR,
|
1621
1623
|
useExisting: forwardRef(() => ElTextEditorComponent),
|
1622
1624
|
multi: true
|
@@ -1662,6 +1664,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
1662
1664
|
type: Output
|
1663
1665
|
}], isOpen: [{
|
1664
1666
|
type: Output
|
1667
|
+
}], newImageAdded: [{
|
1668
|
+
type: Output
|
1665
1669
|
}], value: [{
|
1666
1670
|
type: Input
|
1667
1671
|
}], TextEditor: [{
|