Flesh out the editor example a bit more
This commit is contained in:
parent
8446fe6de5
commit
e7326f0af6
10 changed files with 311 additions and 27 deletions
|
|
@ -182,6 +182,10 @@ where
|
|||
pub fn selection(&self) -> Option<String> {
|
||||
self.0.borrow().editor.selection()
|
||||
}
|
||||
|
||||
pub fn cursor_position(&self) -> (usize, usize) {
|
||||
self.0.borrow().editor.cursor_position()
|
||||
}
|
||||
}
|
||||
|
||||
impl<Renderer> Default for Content<Renderer>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue