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() {
|
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>
|
||||||
`,
|
`,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user