Skip to content

Commit 28d8511

Browse files
committed
docs: unnecessary htmlStyle note
1 parent deb3d73 commit 28d8511

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

docs/docs/fundamentals/your-first-editor.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -204,13 +204,4 @@ Here's that editor running live on this page. Select some text and hit **Bold**
204204
notice the button turns green whenever the cursor sits on bold text. Switch to
205205
the **Code** tab to see the exact source.
206206

207-
:::note
208-
209-
The `htmlStyle` you'll spot in the Code tab is only there to make the rendered
210-
text match these docs' color palette, so
211-
don't worry about it here. If you want to learn more, see
212-
[Styling the input](/core-functionalities/styling-the-input).
213-
214-
:::
215-
216207
<InteractiveExample src={FirstEditorSrc} component={FirstEditor} />

docs/src/examples/FirstEditor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export default function App() {
1616
<EnrichedTextInput
1717
ref={ref}
1818
style={styles.input}
19+
// The `htmlStyle` here is only there to make the rendered
20+
// input match these docs' color palette, so don't worry
21+
// about it here. If you want to learn more, see the
22+
// "Styling the input" section.
1923
htmlStyle={htmlStyle}
2024
placeholder="Type something here..."
2125
onChangeState={e => setState(e.nativeEvent)}

0 commit comments

Comments
 (0)