-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when typing markdown and the windows has to scroll and "scroll-on" an error occur #956
Comments
@marcnicole
|
@seonim-ryu I used the npm deployement...so I have a single large file. I will look if I can find the difference in the source. maybe an issue with the npm package... I will look , but I need some time |
@marcnicole Looking at the screenshot you gave me again, I think the location of the offending code is here.
But to debug, I have to reproduce the current situation, but I can't reproduce it, so it's difficult to solve this problem.. |
When I handle Null, it’s cured. before
after
|
This bug still occurs in React. Does someone have a solution to fix it? |
The error occurs when we scroll in the write tab with a empty line at the end of editor |
* develop: (28 commits) fix: missing style link fix: broken code block preview style chore: add remap coverage chore: change css build process back to as it is fix: broken demo lib path Feature/code block editor (#959) chore: npm run bundle -> npm run build chore: webpack dev server should accept connections beside localhost fix: add missing function after merge Feature/code block editor (#956) feature: load selected text onto add link popup feat: add api for inserting text on cursor chore: need to specify browser to test fix(clipboard): pasting url should not decode %20 fix: popup size for small screen style: remove debug alter in test feat(ww): codeblock language selection feat(ww): add source param in addImageBlobHook Hotfix/ww in table (#948) chore: squire dependency update ... # Conflicts: # bower.json # dist/tui-editor.css # dist/tui-editor.js # dist/tui-editor.min.js # src/css/tui-editor.css # src/js/editor.js # src/js/importManager.js # src/js/langs/nl_NL.js # src/js/ui/defaultUI.js # src/js/ui/popupAddImage.js # src/js/ui/popupAddLink.js # src/js/wwTableSelectionManager.js # src/js/wysiwygEditor.js # test/ui/popupAddImage.spec.js # test/ui/popupAddLink.spec.js # test/wysiwygEditor.spec.js
Describe the bug
the bug is located in getCmRangeHeight(mdNode, cm) which calls getNextEmptyLineHeight with only 2 parameters instead of 3 and cause getNextEmptyLineHeight to crash
(screen shot are on toastui-editor 2.0.1, just modified to debug)
To Reproduce
simply type a lot of new line in the markdown, when it has to scroll it will soon cause the error
Expected behavior
simply correct the return statement as shown above
Screenshots
we see here the root cause of the problem: one parameter is invalid
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: