File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -88,12 +88,12 @@ export class Crepe {
88
88
this . #initPromise = Promise . all ( promiseList )
89
89
}
90
90
91
- async create ( ) {
91
+ create = async ( ) => {
92
92
await this . #initPromise
93
93
return this . #editor. create ( )
94
94
}
95
95
96
- async destroy ( ) {
96
+ destroy = async ( ) => {
97
97
await this . #initPromise
98
98
return this . #editor. destroy ( )
99
99
}
@@ -102,16 +102,16 @@ export class Crepe {
102
102
return this . #editor
103
103
}
104
104
105
- setReadonly ( value : boolean ) {
105
+ setReadonly = ( value : boolean ) => {
106
106
this . #editable = ! value
107
107
return this
108
108
}
109
109
110
- getMarkdown ( ) {
110
+ getMarkdown = ( ) => {
111
111
return this . #editor. action ( getMarkdown ( ) )
112
112
}
113
113
114
- on ( fn : ( api : ListenerManager ) => void ) {
114
+ on = ( fn : ( api : ListenerManager ) => void ) => {
115
115
if ( this . #editor. status !== EditorStatus . Created ) {
116
116
this . #editor. config ( ( ctx ) => {
117
117
const listener = ctx . get ( listenerCtx )
You can’t perform that action at this time.
0 commit comments