how to get the user select text when using CodeMirror6 AutoCompletions
I am using CodeMirror6 autocompletion, I was wonder how to get the user select text when using auto completion? This is the code right now:
how to popup the latex sub avaliable command when select the parent command when using codemirror6
I am using the codemirror6 to implement an online latex editor, and defined the code completion in codemirror6 like this: