You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to replicate the text editor, but I prefer to write in markdown / have the text persisted in State as markdown.
When using rx.text_area as a text entry field, if I type an opening (,[, or {, the text_area shrinks, which shifts everything in that flex, hstack, or vstack
To Reproduce
classState(rx.State):
md: str=""defindex() ->rx.Component:
"""Lay out main page."""returnrx.flex(
# editor edits text as HTMLrx.text_area(
set_contents=State.md,
on_change=State.set_md,
width="50%",
),
rx.box(
rx.markdown(State.md),
border="1px dashed #ccc",
border_radius="4px",
width="50%",
),
direction="row",
spacing="3",
)
Expected behavior
text entered into the text_area should not alter how the page is rendered
Screenshots
Specifics (please complete the following information):
Python Version: 3.12
Reflex Version: 0.6.7
OS: macOS 15.2
Browser (Optional): Arc, Safari, Firefox
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
I want to replicate the text editor, but I prefer to write in markdown / have the text persisted in State as markdown.
When using
rx.text_area
as a text entry field, if I type an opening(
,[
, or{
, the text_area shrinks, which shifts everything in that flex, hstack, or vstackTo Reproduce
Expected behavior
text entered into the
text_area
should not alter how the page is renderedScreenshots
Specifics (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: