fix: add binary file detection support
Add isBinary flag to editor documents to handle binary files appropriately Update BinaryContent component styling to display properly in the editor
This commit is contained in:
@@ -50,6 +50,7 @@ export class EditorStore {
|
||||
{
|
||||
value: dirent.content,
|
||||
filePath,
|
||||
isBinary: dirent.isBinary, // Add this line
|
||||
scroll: previousDocument?.scroll,
|
||||
},
|
||||
] as [string, EditorDocument];
|
||||
|
||||
Reference in New Issue
Block a user