File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
{{template "base/head" .}}
2
-
3
2
<div class="page-content devtest">
4
-
5
3
<div>
6
4
<gitea-origin-url data-url="test/url"></gitea-origin-url>
7
5
<gitea-origin-url data-url="/test/url"></gitea-origin-url>
8
6
</div>
9
-
10
7
<div>
11
8
<span data-tooltip-content="test tooltip">text with tooltip</span>
12
9
</div>
13
-
14
10
{{template "shared/combomarkdowneditor" .}}
15
-
16
11
</div>
17
-
18
12
{{template "base/footer" .}}
Original file line number Diff line number Diff line change @@ -7,14 +7,12 @@ Template Attributes:
7
7
* DropzoneParentContainer: for file upload (leave it empty if no upload)
8
8
*/}}
9
9
<div {{if .ContainerId}}id="{{.ContainerId}}"{{end}} class="combo-markdown-editor {{.ContainerClasses}}" data-dropzone-parent-container="{{.DropzoneParentContainer}}">
10
-
11
10
{{if .MarkdownPreviewUrl}}
12
11
<div class="ui top tabular menu">
13
12
<a class="active item" data-tab="markdown-writer">{{.locale.Tr "write"}}</a>
14
13
<a class="item" data-tab="markdown-previewer" data-preview-url="{{.MarkdownPreviewUrl}}" data-preview-context="{{.MarkdownPreviewContext}}">{{.locale.Tr "preview"}}</a>
15
14
</div>
16
15
{{end}}
17
-
18
16
<div class="ui tab active" data-tab="markdown-writer">
19
17
<markdown-toolbar class="gt-df">
20
18
<div class="markdown-toolbar-group">
@@ -43,9 +41,7 @@ Template Attributes:
43
41
</markdown-toolbar>
44
42
<textarea class="markdown-text-editor js-quick-submit" name="{{.TextareaName}}" placeholder="{{.TextareaPlaceholder}}">{{.TextareaContent}}</textarea>
45
43
</div>
46
-
47
44
<div class="ui tab markup" data-tab="markdown-previewer">
48
45
{{.locale.Tr "loading"}}
49
46
</div>
50
-
51
47
</div>
Original file line number Diff line number Diff line change 1
1
.combo-markdown-editor {
2
2
width : 100% ;
3
3
}
4
+
4
5
.combo-markdown-editor markdown-toolbar {
5
6
cursor : default;
6
7
display : block;
7
8
padding-bottom : 10px ;
8
9
}
10
+
9
11
.combo-markdown-editor .markdown-toolbar-group {
10
12
display : inline-block;
11
13
}
14
+
12
15
.combo-markdown-editor .markdown-toolbar-button {
13
16
user-select : none;
14
17
padding : 5px ;
15
18
cursor : pointer;
16
19
}
17
20
18
- .combo-markdown-editor .markdown-text-editor {
21
+ .combo-markdown-editor .markdown-text-editor {
19
22
display : block;
20
23
width : 100% ;
21
24
height : 200px ;
You can’t perform that action at this time.
0 commit comments