2019-04-29 22:15:41 -05:00
|
|
|
<template>
|
2019-05-02 03:55:59 -05:00
|
|
|
<x-container @remove="() => $emit('remove')" :draggable="true">
|
2020-01-29 13:37:25 -06:00
|
|
|
<template #header><fa :icon="faPaperPlane"/> {{ $t('_pages.blocks.post') }}</template>
|
2019-04-29 22:15:41 -05:00
|
|
|
|
2019-04-29 22:17:53 -05:00
|
|
|
<section style="padding: 0 16px 16px 16px;">
|
2020-01-29 13:37:25 -06:00
|
|
|
<mk-textarea v-model="value.text">{{ $t('_pages.blocks._post.text') }}</mk-textarea>
|
2019-04-29 22:15:41 -05:00
|
|
|
</section>
|
|
|
|
</x-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import { faPaperPlane } from '@fortawesome/free-regular-svg-icons';
|
2020-01-29 13:37:25 -06:00
|
|
|
import i18n from '../../../i18n';
|
2019-04-29 22:15:41 -05:00
|
|
|
import XContainer from '../page-editor.container.vue';
|
2020-01-29 13:37:25 -06:00
|
|
|
import MkTextarea from '../../../components/ui/textarea.vue';
|
2019-04-29 22:15:41 -05:00
|
|
|
|
|
|
|
export default Vue.extend({
|
2020-01-29 13:37:25 -06:00
|
|
|
i18n,
|
2019-04-29 22:15:41 -05:00
|
|
|
|
|
|
|
components: {
|
2020-01-29 13:37:25 -06:00
|
|
|
XContainer, MkTextarea
|
2019-04-29 22:15:41 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
faPaperPlane
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
|
|
if (this.value.text == null) Vue.set(this.value, 'text', '');
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|