@exmg/exm-wysiwyg-editor 1.1.17 → 1.1.18

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.
@@ -57,8 +57,8 @@ export class WysiwygEditorElementBase extends ExmgElement {
57
57
  }
58
58
  attributeChangedCallback(name, _old, value) {
59
59
  var _a, _b;
60
+ this[name] = value;
60
61
  if (name === 'value') {
61
- this.value = value || '';
62
62
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setContent(value);
63
63
  }
64
64
  if (name === 'disabled') {
@@ -166,10 +166,12 @@ export class WysiwygEditorElementBase extends ExmgElement {
166
166
  ${this.label
167
167
  ? html `<label class="${classMap(labelClasses)}" for="wysiwygEditorContainer">${this.label}</label>`
168
168
  : nothing}
169
- <exm-wysiwyg-editor-toolbar
170
- .editor=${this.editor}
171
- .editorActions=${this.editorActions}
172
- ></exm-wysiwyg-editor-toolbar>
169
+ ${!this.disabled
170
+ ? html `<exm-wysiwyg-editor-toolbar
171
+ .editor=${this.editor}
172
+ .editorActions=${this.editorActions}
173
+ ></exm-wysiwyg-editor-toolbar>`
174
+ : nothing}
173
175
  <div class="editor" id="editor"></div>
174
176
  ${this.supportingText ? html `<div class="supporting-text">${this.supportingText}</div>` : nothing}
175
177
  </div>
@@ -9,6 +9,7 @@ export const style = css `
9
9
  padding: 0.5rem 1rem;
10
10
  display: flex;
11
11
  flex-wrap: wrap;
12
+ gap: 2px;
12
13
  }
13
14
 
14
15
  .separator {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exmg/exm-wysiwyg-editor",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "794d4682e99d7b63d72100a662085a54764ebb8f"
66
+ "gitHead": "3d6851a4ecf25db65978adfe024851020529e570"
67
67
  }