(action)
| 242 | |
| 243 | // Handle file actions |
| 244 | function handleFileAction(action) { |
| 245 | if (action === 'save') { |
| 246 | console.log('Save action triggered - forwarding to /save endpoint'); |
| 247 | // Forward to /save endpoint on the server |
| 248 | window.location.href = '/save'; |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | // Handle tools option changes |
| 253 | function handleToolsOptionChange(option) { |