(command, view)
| 1533 | } |
| 1534 | |
| 1535 | function commandRunsInReadOnly(command, view) { |
| 1536 | if (!view) return command.readOnly; |
| 1537 | return view.state?.readOnly ? !!command.readOnly : true; |
| 1538 | } |
| 1539 | |
| 1540 | export function executeCommand(name, view, args) { |
| 1541 | const command = resolveCommand(name); |