aboutsummaryrefslogtreecommitdiff
path: root/examples/markdown
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/markdown/src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/markdown/src/main.rs b/examples/markdown/src/main.rs
index 4963792..ce5a58b 100644
--- a/examples/markdown/src/main.rs
+++ b/examples/markdown/src/main.rs
@@ -1,6 +1,6 @@
use iced::widget::{operation, row, scrollable, text_editor};
use iced::{Element, Fill, Font, Theme, highlighter};
-use iced_selection::markdown;
+use iced_selection::{markdown, selectable};
fn main() -> iced::Result {
iced::application(State::new, State::update, State::view)
@@ -65,7 +65,10 @@ impl State {
row![
editor,
- scrollable(preview).spacing(10).width(Fill).height(Fill)
+ scrollable(selectable(preview))
+ .spacing(10)
+ .width(Fill)
+ .height(Fill)
]
.spacing(10)
.padding(10)