Can not input code in code block
Jocs opened this issue · comments
Ran Luo commented
-
Searched existing issues to avoid creating duplicates.
-
Confirmed that it can be reproduced in muya.
Describe the bug
Enter the code in the code block and report an error
To Reproduce
Steps to reproduce the behavior:
- Create a code block
- Input code bellow
function add(a, b) {
return a + b;
}
Expected behavior
Codes are display in codeblock corectlly.
Actual behavior
Error happened:
Index or size is negative or greater than the allowed amount
select@http://localhost:3000/main.bundle.js:63694:15
setCursor@http://localhost:3000/main.bundle.js:63794:14
setSelection@http://localhost:3000/main.bundle.js:63671:14
setCursor@http://localhost:3000/main.bundle.js:55642:24
inputHandler@http://localhost:3000/main.bundle.js:3188:12
eventHandler@http://localhost:3000/main.bundle.js:6160:25
Operation System and Browser version (please complete the following information):
- OS: [e.g. macOS 13.5 (22G74)]
- Browser: firefox
Muya Version
e.g: 0.10.11