feat(FN-4479): complete Step 1 — remove textarea pane
Fusion-Task-Id: FN-4479 Fusion-Task-Lineage: 5dfad520-13eb-4a31-a45c-2daf767a3dff
This commit is contained in:
@@ -157,16 +157,7 @@ export function FileEditor({
|
||||
<ReactMarkdown remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<textarea
|
||||
className={`file-editor-textarea ${wordWrap ? "file-editor-textarea--wrap" : ""}`}
|
||||
aria-label={filePath ? `Editor for ${filePath}` : "File editor"}
|
||||
value={content}
|
||||
onChange={(event) => onChange(event.target.value)}
|
||||
readOnly={readOnly}
|
||||
/>
|
||||
<div className="file-editor-codemirror" ref={editorHostRef} aria-hidden="true" />
|
||||
</>
|
||||
<div className="file-editor-codemirror" ref={editorHostRef} aria-label={filePath ? `Editor for ${filePath}` : "File editor"} />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user