diff --git a/client/src/components/ContentBlockChooserWidget.vue b/client/src/components/ContentBlockChooserWidget.vue
index fb69522d..809085cb 100644
--- a/client/src/components/ContentBlockChooserWidget.vue
+++ b/client/src/components/ContentBlockChooserWidget.vue
@@ -12,7 +12,7 @@
Bild
-
+
diff --git a/client/src/components/ContentBlockTitleInput.vue b/client/src/components/ContentBlockTitleInput.vue
index 57f243d6..9f469673 100644
--- a/client/src/components/ContentBlockTitleInput.vue
+++ b/client/src/components/ContentBlockTitleInput.vue
@@ -2,6 +2,7 @@
diff --git a/client/src/components/NewContentBlockWizard.vue b/client/src/components/NewContentBlockWizard.vue
index 260d169c..02f58ed0 100644
--- a/client/src/components/NewContentBlockWizard.vue
+++ b/client/src/components/NewContentBlockWizard.vue
@@ -10,6 +10,7 @@
v-on:change-type="changeType"
v-on:link-change-url="changeLinkUrl"
v-on:link-change-text="changeLinkText"
+ v-on:text-change-value="changeTextValue"
v-on:video-change-url="changeVideoUrl">
@@ -69,7 +70,7 @@
return 'video-form';
case 'image':
return 'image-form';
- case 'text':
+ case 'text_block':
return 'text-form';
case 'exercise':
return 'exercise-form';
@@ -93,6 +94,9 @@
changeVideoUrl(value, index) {
this._updateProperty(value, index, 'url')
},
+ changeTextValue(value, index) {
+ this._updateProperty(value, index, 'text')
+ },
removeElement(index) {
this.elements.splice(index, 1);
},
@@ -128,12 +132,7 @@
input: {
contentBlock: {
title: this.title,
- contents: [
- {
- type: 'text_block',
- text: 'Oh hai'
- }
- ]
+ contents: this.elements
},
after: 'Q29udGVudEJsb2NrTm9kZToxOQ=='
}
@@ -150,6 +149,7 @@
return {
title: '',
elements: [
+ {}
// {
// type: 'image'
// },
diff --git a/client/src/components/content-forms/TextForm.vue b/client/src/components/content-forms/TextForm.vue
index d5b35f92..2aab7b2d 100644
--- a/client/src/components/content-forms/TextForm.vue
+++ b/client/src/components/content-forms/TextForm.vue
@@ -1,10 +1,16 @@
-
+