mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +08:00
fix embed example
This commit is contained in:
parent
e55b38a8f1
commit
b54a341dec
@ -31,7 +31,7 @@ export default class Iframe extends Node {
|
||||
|
||||
get view() {
|
||||
return {
|
||||
props: ['node', 'updateAttrs', 'editable'],
|
||||
props: ['node', 'updateAttrs', 'view'],
|
||||
computed: {
|
||||
src: {
|
||||
get() {
|
||||
@ -47,7 +47,7 @@ export default class Iframe extends Node {
|
||||
template: `
|
||||
<div class="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>
|
||||
`,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user