refactoring; saving first paragraph contentEditable
This commit is contained in:
@@ -73,7 +73,7 @@ export default {
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'entite',
|
||||
nid: this.entite.id,
|
||||
id: this.entite.id,
|
||||
field: {field_name: 'field_action', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadEntite" />
|
||||
@@ -89,7 +89,7 @@ export default {
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'entite',
|
||||
nid: this.entite.id,
|
||||
id: this.entite.id,
|
||||
field: {field_name: 'field_menace_maintien', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadEntite" />
|
||||
|
||||
@@ -46,7 +46,19 @@ export default {
|
||||
<!-- <div class="date">{{ source.date.start }}</div> -->
|
||||
<section v-if="source.description" class="description">
|
||||
<label v-if="ct_entite"> {{ field_sources_label }}</label>
|
||||
<div v-html="source.description"/>
|
||||
<!-- <div v-html="source.description"/> -->
|
||||
<ContentEditable
|
||||
tag="div"
|
||||
:value="source.description"
|
||||
:contenteditable="entite.can_update"
|
||||
:html="true"
|
||||
:data="{
|
||||
entitytype: 'paragraph',
|
||||
bundle: 'source',
|
||||
id: this.source.id,
|
||||
field: {field_name: 'field_description', value:'value'}
|
||||
}"
|
||||
v-on:updated="reloadEntite" />
|
||||
</section>
|
||||
|
||||
<section
|
||||
|
||||
@@ -247,7 +247,7 @@ export default {
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'entite',
|
||||
nid: this.entite.id,
|
||||
id: this.entite.id,
|
||||
field: {field_name: 'title', value:'value'}
|
||||
}" />
|
||||
|
||||
@@ -296,7 +296,7 @@ export default {
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'concernement',
|
||||
nid: this.concernement.id,
|
||||
id: this.concernement.id,
|
||||
field: {field_name: 'field_description', value:'value'}
|
||||
}" />
|
||||
|
||||
@@ -312,7 +312,7 @@ export default {
|
||||
:data="{
|
||||
entitytype: 'node',
|
||||
bundle: 'concernement',
|
||||
nid: this.concernement.id,
|
||||
id: this.concernement.id,
|
||||
field: {field_name: 'field_caillou', value:'value'}
|
||||
}" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user