el-text-editor 0.0.83 → 0.0.84
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 +7 -4
- package/fesm2015/el-text-editor.mjs +6 -3
- package/fesm2015/el-text-editor.mjs.map +1 -1
- package/fesm2020/el-text-editor.mjs +6 -3
- package/fesm2020/el-text-editor.mjs.map +1 -1
- package/lib/el-text-editor.component.d.ts +2 -1
- package/package.json +1 -1
@@ -34,7 +34,8 @@ class ElTextEditorComponent {
|
|
34
34
|
this.sanitizer = sanitizer;
|
35
35
|
this.editorText = '';
|
36
36
|
this.toolbarMode = 'fixed';
|
37
|
-
this.contentEditable = true;
|
37
|
+
this.contentEditable = true; // Input for initial value
|
38
|
+
this.contentEditableChange = new EventEmitter(); // Output for changes
|
38
39
|
this.editorTextChange = new EventEmitter();
|
39
40
|
this.editorActionResponse = new EventEmitter();
|
40
41
|
this.editorTextClear = new EventEmitter();
|
@@ -356,7 +357,7 @@ class ElTextEditorComponent {
|
|
356
357
|
const isAdmin = roles.includes('Admin');
|
357
358
|
const isCreator = roles.includes('Creator');
|
358
359
|
if (isCreator || isAdmin) {
|
359
|
-
if (editor) {
|
360
|
+
if (editor && this.contentEditable) {
|
360
361
|
editor.addEventListener('click', (event) => {
|
361
362
|
var _a;
|
362
363
|
const target = event.target;
|
@@ -1689,7 +1690,7 @@ class ElTextEditorComponent {
|
|
1689
1690
|
}
|
1690
1691
|
}
|
1691
1692
|
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 });
|
1692
|
-
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", contentEditable: "contentEditable", value: "value" }, outputs: { editorTextChange: "editorTextChange", editorActionResponse: "editorActionResponse", editorTextClear: "editorTextClear", imageEdit: "imageEdit", imageEdit2: "imageEdit2", placeHolderRemove: "placeHolderRemove", isOpen: "isOpen", newImageAdded: "newImageAdded" }, providers: [{
|
1693
|
+
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", contentEditable: "contentEditable", value: "value" }, outputs: { contentEditableChange: "contentEditableChange", editorTextChange: "editorTextChange", editorActionResponse: "editorActionResponse", editorTextClear: "editorTextClear", imageEdit: "imageEdit", imageEdit2: "imageEdit2", placeHolderRemove: "placeHolderRemove", isOpen: "isOpen", newImageAdded: "newImageAdded" }, providers: [{
|
1693
1694
|
provide: NG_VALUE_ACCESSOR,
|
1694
1695
|
useExisting: forwardRef(() => ElTextEditorComponent),
|
1695
1696
|
multi: true
|
@@ -1723,6 +1724,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
1723
1724
|
type: Input
|
1724
1725
|
}], contentEditable: [{
|
1725
1726
|
type: Input
|
1727
|
+
}], contentEditableChange: [{
|
1728
|
+
type: Output
|
1726
1729
|
}], editorTextChange: [{
|
1727
1730
|
type: Output
|
1728
1731
|
}], editorActionResponse: [{
|