el-text-editor 0.0.83 → 0.0.85

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.
@@ -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();
@@ -355,7 +356,7 @@ class ElTextEditorComponent {
355
356
  const isAdmin = roles.includes('Admin');
356
357
  const isCreator = roles.includes('Creator');
357
358
  if (isCreator || isAdmin) {
358
- if (editor) {
359
+ if (editor && this.contentEditable) {
359
360
  editor.addEventListener('click', (event) => {
360
361
  const target = event.target;
361
362
  if (target.tagName === 'IMG') {
@@ -1682,7 +1683,7 @@ class ElTextEditorComponent {
1682
1683
  }
1683
1684
  }
1684
1685
  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 });
1685
- 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: [{
1686
+ 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: [{
1686
1687
  provide: NG_VALUE_ACCESSOR,
1687
1688
  useExisting: forwardRef(() => ElTextEditorComponent),
1688
1689
  multi: true
@@ -1716,6 +1717,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
1716
1717
  type: Input
1717
1718
  }], contentEditable: [{
1718
1719
  type: Input
1720
+ }], contentEditableChange: [{
1721
+ type: Output
1719
1722
  }], editorTextChange: [{
1720
1723
  type: Output
1721
1724
  }], editorActionResponse: [{