使用 selection API 为选定文本创建操作 https://css-tricks.com/how-to-create-actions-for-selected-text-with-the-selection-api/