fix embed example

This commit is contained in:
Philipp Kühn 2019-05-27 08:57:33 +02:00 committed by GitHub
parent e55b38a8f1
commit b54a341dec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ export default class Iframe extends Node {
get view() { get view() {
return { return {
props: ['node', 'updateAttrs', 'editable'], props: ['node', 'updateAttrs', 'view'],
computed: { computed: {
src: { src: {
get() { get() {
@ -47,7 +47,7 @@ export default class Iframe extends Node {
template: ` template: `
<div class="iframe"> <div class="iframe">
<iframe class="iframe__embed" :src="src"></iframe> <iframe class="iframe__embed" :src="src"></iframe>
<input class="iframe__input" @paste.stop type="text" v-model="src" v-if="editable" /> <input class="iframe__input" @paste.stop type="text" v-model="src" v-if="view.editable" />
</div> </div>
`, `,
} }