@jx3box/jx3box-editor 1.6.8 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<el-dialog :visible.sync="visible" title="插入视频" :modal-append-to-body="false">
|
|
8
8
|
<a class="u-help" href="/tool/686/" target="_blank">💙 点击查看如何获取视频地址</a>
|
|
9
9
|
|
|
10
|
-
<el-input class="u-input"
|
|
10
|
+
<el-input class="u-input" placeholder="请输入BV号" v-model="videoUrl"></el-input>
|
|
11
11
|
|
|
12
12
|
<div slot="footer">
|
|
13
13
|
<el-button @click="cancel">取消</el-button>
|
|
@@ -35,10 +35,11 @@ export default {
|
|
|
35
35
|
this.videoUrl = "";
|
|
36
36
|
},
|
|
37
37
|
insert() {
|
|
38
|
-
const content = `<
|
|
38
|
+
const content = `<iframe class="w-player-bilibili" src="//player.bilibili.com/player.html?bvid=${this.videoUrl}" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="400" height="300"> </iframe>`;
|
|
39
39
|
|
|
40
40
|
this.$emit("insert", content);
|
|
41
41
|
|
|
42
|
+
|
|
42
43
|
this.videoUrl = "";
|
|
43
44
|
|
|
44
45
|
this.visible = false;
|