How do i extend selection to 3 sentences above the word and below the word including the sentence that word is present in javascript

后端 未结 0 1230
温柔的废话
温柔的废话 2021-01-23 12:05
var contextSelection = mybook.renderer.render.window.getSelection();

 contextSelection.modify(\'extend\', \'backward\', \'sentence\');
 var context = contextSelection.t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题