()
| 342 | |
| 343 | // 全局更新保存状态函数 |
| 344 | function updateSaveState() { |
| 345 | const titleInput = document.querySelector('.nsn-title-input'); |
| 346 | const editor = document.querySelector('.nsn-editor'); |
| 347 | if (titleInput && editor) { |
| 348 | window.lastSaveTitle = titleInput.value.trim(); |
| 349 | window.lastSaveContent = editor.innerHTML; |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | // 全局更新按钮文本函数 |
| 354 | function updateButtonTexts() { |
no outgoing calls
no test coverage detected