1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| <template></template>
|
| <script>
| /**
| * 富文本plugin特殊扩展
| * @author sonve
| * @version 1.0.0
| * @date 2024-12-14
| */
|
| import config from '../common/config'
| import { noAuthorization } from '../common/utils'
|
| export default {
| props: {
| sid: {
| type: String,
| default: ''
| },
| eid: {
| type: String,
| default: ''
| }
| },
| data() {
| return {}
| },
| mounted() {},
| methods: {
| changePasteMode(e) {
| return e
| },
| editorPaste(e) {
| this.$emit('epaste', e)
| },
| createVideoThumbnail(url) {
| noAuthorization('createVideoThumbnail')
| this.getVideoThumbnail(url)
| },
| getVideoThumbnail(e) {
| uni.$emit(`E_EDITOR_GET_VIDEO_THUMBNAIL_${e}`, config.video_thumbnail)
| },
| createCoverThumbnail(url) {
| noAuthorization('createCoverThumbnail')
| this.getCoverThumbnail(url)
| },
| getCoverThumbnail(e) {
| uni.$emit(`E_EDITOR_GET_COVER_THUMBNAIL_${e}`, e)
| }
| }
| }
| </script>
|
|