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
Describe the bug
I noticed the function editor.replaceRange is used in Chesser.ts to replace the content of the markdown code block. After some testing, it doesn't seems to work because the view is in read mode when the chessboard view is shown. After some testing, the following code does the trick instead of editor.replaceRange :
Plugin informations
Describe the bug
I noticed the function
editor.replaceRange
is used in Chesser.ts to replace the content of the markdown code block. After some testing, it doesn't seems to work because the view is in read mode when the chessboard view is shown. After some testing, the following code does the trick instead ofeditor.replaceRange
:Also I suggest storing all the modifications to the markdown code block instead of the localstorage so it can work across devices.
Expected behavior
The markdown block should be updated.
Additional context
I'm trying to contribute to the project.
The text was updated successfully, but these errors were encountered: