Not sure if this is the right way to do it, but this code works fine.
Calc.controller.dispatch({
type: "insert-item-at-index",
state: {
id: Calc.controller.generateId(),
type: "expression",
latex: "a=1"
},
index: 2
})
2025年1月23日木曜日 0:08:29 UTC+9 Yuri Sulyma: