@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
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-wysiwyg-editor",
|
|
3
|
-
"version": "1.1.
|
|
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": "
|
|
66
|
+
"gitHead": "3d6851a4ecf25db65978adfe024851020529e570"
|
|
67
67
|
}
|