Commit 1ea0d28 1 parent 6e3d847 commit 1ea0d28 Copy full SHA for 1ea0d28
File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
import utils from "./utils.js" ;
2
- import noteDetailService from "./note_detail.js" ;
3
2
import infoService from "./info.js" ;
4
3
import server from "./server.js" ;
5
4
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ class NoteDetailText {
8
8
constructor ( ctx ) {
9
9
this . ctx = ctx ;
10
10
this . $component = ctx . $tabContent . find ( '.note-detail-text' ) ;
11
+ this . $editorEl = this . $component . find ( '.note-detail-text-editor' ) ;
11
12
this . textEditor = null ;
12
13
13
14
this . $component . on ( "dblclick" , "img" , e => {
@@ -39,7 +40,7 @@ class NoteDetailText {
39
40
// textEditor might have been initialized during previous await so checking again
40
41
// looks like double initialization can freeze CKEditor pretty badly
41
42
if ( ! this . textEditor ) {
42
- this . textEditor = await BalloonEditor . create ( this . $component [ 0 ] , {
43
+ this . textEditor = await BalloonEditor . create ( this . $editorEl [ 0 ] , {
43
44
placeholder : "Type the content of your note here ..."
44
45
} ) ;
45
46
Original file line number Diff line number Diff line change @@ -135,13 +135,16 @@ ul.fancytree-container {
135
135
.note-detail-text h6 { font-size : 1.1em ; }
136
136
137
137
.note-detail-text {
138
+ overflow : auto;
139
+ font-family : var (--detail-text-font-family );
140
+ }
141
+
142
+ .note-detail-text-editor {
143
+ padding-top : 10px ;
138
144
border : 0 !important ;
139
145
box-shadow : none !important ;
140
146
/* This is because with empty content height of editor is 0 and it's impossible to click into it */
141
147
min-height : 200px ;
142
- padding-top : 10px ;
143
- overflow : auto;
144
- font-family : var (--detail-text-font-family );
145
148
}
146
149
147
150
.note-detail-text p : first-child , .note-detail-text ::before {
Original file line number Diff line number Diff line change 11
11
<table class =" note-detail-promoted-attributes" ></table >
12
12
13
13
<div class =" note-detail-component-wrapper" >
14
- <div class =" note-detail-text note-detail-component" tabindex =" 10000" ></div >
14
+ <div class =" note-detail-text note-detail-component" tabindex =" 10000" >
15
+ <div class =" note-detail-text-editor" ></div >
16
+ </div >
15
17
16
18
<div class =" note-detail-code note-detail-component" ></div >
17
19
You can’t perform that action at this time.
0 commit comments