Skip to content

perf: 使用 JavaScript Selection API 精确定位光标到正文末尾#30

Open
SunShy612 wants to merge 3 commits intoautoclaw-cc:mainfrom
SunShy612:main
Open

perf: 使用 JavaScript Selection API 精确定位光标到正文末尾#30
SunShy612 wants to merge 3 commits intoautoclaw-cc:mainfrom
SunShy612:main

Conversation

@SunShy612
Copy link

  • 新增 _move_cursor_to_end 函数,通过 DOM Selection/Range API 移动光标(解决文章太长无法在文章最后面输入话题的BUG)
  • 替换原来不稳定的 ArrowDown 20 次循环
  • 添加 title_utils 导入的 type ignore 注释

📊 文件变更统计:

  • scripts/xhs/publish.py (+38, -5)

- 新增 _move_cursor_to_end 函数,通过 DOM Selection/Range API 移动光标
- 替换原来不稳定的 ArrowDown 20 次循环
- 添加 title_utils 导入的 type ignore 注释

📊 文件变更统计:
- scripts/xhs/publish.py (+38, -5)
- 新增 _move_cursor_to_end 函数,通过 DOM Selection/Range API 移动光标
- 替换原来不稳定的 ArrowDown 20 次循环
- 移除无用的 platform 导入
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant