Open TigranGithub opened 8 months ago
@TigranGithub I don't understand your exact need.
@jaywcjlove here's an example:
1.) I have a custom UI that allow user to edit:
2.) When user click edit, I set the editable={true}
, the component should has the blinking indicator placed at the last character. But instead the indicator displayed at the very first character
Expected:
Actual:
@HenryHengZJ
<CodeMirror
value={`console.log('hello')`}
theme="none"
height="400px !important"
width="100%"
+ selection={EditorSelection.cursor(0)}
style={{ margin: '0 0 23px 0', flex: 1 }}
extensions={[langs.markdown()]}
/>
for example clicking
edit
button and want to focus will be on last element. Thanks!