Allow text file editing
This commit is contained in:
@ -98,6 +98,10 @@ final class FileResource: Item, LocalizedItem {
|
||||
content.storage.fileContent(for: id) ?? ""
|
||||
}
|
||||
|
||||
func save(textContent: String) -> Bool {
|
||||
content.storage.save(fileContent: textContent, for: id)
|
||||
}
|
||||
|
||||
func dataContent() -> Foundation.Data? {
|
||||
content.storage.fileData(for: id)
|
||||
}
|
||||
|
Reference in New Issue
Block a user