File tree Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Expand file tree Collapse file tree 1 file changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<div class =" upload-button" >
4
- <button class =" icon-upload" @click =" onClickUpload" />
5
- <button class =" icon-files" @click =" onClickSelect" />
4
+ <Actions
5
+ container =" .upload-button"
6
+ default-icon =" icon-picture"
7
+ menu-align =" right"
8
+ >
9
+ <ActionButton
10
+ icon =" icon-upload"
11
+ :close-after-click =" true"
12
+ @click =" onClickUpload"
13
+ >
14
+ {{ t('notes', 'Upload image') }}
15
+ </ActionButton >
16
+ <ActionButton
17
+ icon =" icon-picture"
18
+ :close-after-click =" true"
19
+ @click =" onClickSelect"
20
+ >
21
+ {{ t('notes', 'Insert image') }}
22
+ </ActionButton >
23
+ </Actions >
6
24
</div >
7
25
<div class =" markdown-editor" @click =" onClickEditor" >
8
26
<textarea />
@@ -17,10 +35,19 @@ import { generateUrl } from '@nextcloud/router'
17
35
import store from ' ../store'
18
36
import { showError } from ' @nextcloud/dialogs'
19
37
import ' @nextcloud/dialogs/styles/toast.scss'
38
+ import {
39
+ Actions ,
40
+ ActionButton ,
41
+ } from ' @nextcloud/vue'
20
42
21
43
export default {
22
44
name: ' EditorEasyMDE' ,
23
45
46
+ components: {
47
+ Actions,
48
+ ActionButton,
49
+ },
50
+
24
51
props: {
25
52
value: {
26
53
type: String ,
@@ -337,13 +364,8 @@ export default {
337
364
}
338
365
339
366
.upload-button {
340
- margin-right : 15px ;
341
367
right : 64px ;
342
368
position : fixed ;
343
369
height : 40px ;
344
370
}
345
- .upload-button button {
346
- height : 100% ;
347
- width : 40px ;
348
- }
349
371
</style >
You can’t perform that action at this time.
0 commit comments