()
| 228 | }; |
| 229 | |
| 230 | const toggleEditorStatus = () => { |
| 231 | const { current } = molecule.editor.getState(); |
| 232 | if (current?.tab) { |
| 233 | molecule.editor.updateTab({ |
| 234 | id: current.tab.id, |
| 235 | status: |
| 236 | current.tab.status === 'edited' ? undefined : 'edited', |
| 237 | }); |
| 238 | } |
| 239 | }; |
| 240 | |
| 241 | const updateEditor = function () { |
| 242 | // get first inactive tab |