goodteditor-ui 1.0.102 → 1.0.103

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goodteditor-ui",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "main": "index.js",
5
5
  "homepage": "https://goodt-ui.netlify.app/",
6
6
  "scripts": {
@@ -168,8 +168,8 @@ export default {
168
168
  */
169
169
  setValue(value) {
170
170
  this.$el.textContent = value;
171
- this.valueLast = value;
172
171
  if (value !== this.valueLast) {
172
+ this.valueLast = value;
173
173
  this.$emit('input', value);
174
174
  this.$emit('change', value);
175
175
  }
@@ -201,7 +201,7 @@ export default {
201
201
  * @param {KeyboardEvent} event
202
202
  */
203
203
  onKeyup({ target }) {
204
- this.valueDirty = target.textContent.trim();
204
+ this.valueDirty = target.textContent.replace(/\s+/g, ' ').trim();
205
205
  }
206
206
  }
207
207
  };