When I set up a field for editing within a modal window, my goal is to properly remove an instance of MathLive once the modal is closed.
mounted() {
mathField = MathLive.makeMathField(this.$refs.mathField, {
virtualKeyboardMode: 'manual',
onContentDidChange: (e) => {
this.latex = e.element.mathfield.latex();
}
});
},
beforeDestroy() {
// Need to find the correct way to destroy MathLive instance here
}