File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export default class ImageTool implements BlockTool {
203
203
this . isCaptionEnabled = true ;
204
204
}
205
205
206
- return this . ui . render ( this . data ) as HTMLDivElement ;
206
+ return this . ui . render ( ) as HTMLDivElement ;
207
207
}
208
208
209
209
/**
Original file line number Diff line number Diff line change 1
1
import { IconPicture } from '@codexteam/icons' ;
2
2
import { make } from './utils/dom' ;
3
3
import type { API } from '@editorjs/editorjs' ;
4
- import type { ImageToolData , ImageConfig } from './types/types' ;
4
+ import type { ImageConfig } from './types/types' ;
5
5
6
6
/**
7
7
* Enumeration representing the different states of the UI.
@@ -163,14 +163,9 @@ export default class Ui {
163
163
164
164
/**
165
165
* Renders tool UI
166
- * @param toolData - saved tool data
167
166
*/
168
- public render ( toolData : ImageToolData ) : HTMLElement {
169
- if ( toolData . file === undefined || Object . keys ( toolData . file ) . length === 0 ) {
170
- this . toggleStatus ( UiState . Empty ) ;
171
- } else {
172
- this . toggleStatus ( UiState . Empty ) ;
173
- }
167
+ public render ( ) : HTMLElement {
168
+ this . toggleStatus ( UiState . Empty ) ;
174
169
175
170
return this . nodes . wrapper ;
176
171
}
You can’t perform that action at this time.
0 commit comments