Skip to content

Comments

Add option to pass initial value as string#5

Open
dariusk wants to merge 3 commits intoOmkarDabade:mainfrom
dariusk:main
Open

Add option to pass initial value as string#5
dariusk wants to merge 3 commits intoOmkarDabade:mainfrom
dariusk:main

Conversation

@dariusk
Copy link

@dariusk dariusk commented Nov 6, 2025

Along the lines of PR #2 which added a hint text option, this PR adds the ability to put an initial value into the text field.

For `MarkdownAutoPreview`:
 - Add a `writeOnly` property which ignores focus changes and starts
   the editor in write mode
 - Add a `borderColor` property for better theming
 - Add an internal `_previewed` state that keeps track of whether the
   widget's preview button was clicked. Only used in `writeOnly` mode.

For `MarkdownToolbar`:
 - Remove a bunch of unneeded widgets
 - Update styling a bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant