@internetstiftelsen/styleguide 2.20.0 → 2.20.1

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.
@@ -141,6 +141,9 @@ function setupTextArea(el) {
141
141
  content: el.value,
142
142
  onTransaction: function onTransaction(props) {
143
143
  toogleButtonState(props.editor, editorEl);
144
+ },
145
+ onUpdate: function onUpdate(props) {
146
+ el.value = props.editor.getHTML();
144
147
  }
145
148
  });
146
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "2.20.0",
3
+ "version": "2.20.1",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -145,6 +145,9 @@ function setupTextArea(el) {
145
145
  onTransaction(props) {
146
146
  toogleButtonState(props.editor, editorEl);
147
147
  },
148
+ onUpdate(props) {
149
+ el.value = props.editor.getHTML();
150
+ },
148
151
  });
149
152
 
150
153
  editorEl.className = el.className;