mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
TextEditor: Use FileSystemAccessClient::try_* APIs
This commit is contained in:
parent
effb19f996
commit
f674102447
5 changed files with 33 additions and 71 deletions
|
@ -123,7 +123,7 @@ public:
|
|||
|
||||
void insert_at_cursor_or_replace_selection(StringView);
|
||||
bool write_to_file(String const& path);
|
||||
bool write_to_file_and_close(int fd);
|
||||
bool write_to_file(Core::File&);
|
||||
bool has_selection() const { return m_selection.is_valid(); }
|
||||
String selected_text() const;
|
||||
size_t number_of_words() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue