Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send commands to mathquill #36

Open
xnukernel opened this issue Dec 20, 2021 · 3 comments
Open

How to send commands to mathquill #36

xnukernel opened this issue Dec 20, 2021 · 3 comments

Comments

@xnukernel
Copy link

Is it possible to send commands to mathquill while still using your library?

I'd like to build out an interface with buttons that can insert certain latex symbols at the current selection. I believe mathquill allows this using executeCommand(-).

@xnukernel
Copy link
Author

xnukernel commented Dec 21, 2021

Okay I found out how to do this. If anyone is interested, add the following:

class EquationEditor {
    ...
    insert(input: string) {
        this.mathField.write(input)
    }
    ...
}

@V0XNIHILI
Copy link
Collaborator

If you want, feel free to add it as a PR!

@xnukernel
Copy link
Author

Sorry it took me forever to get to this, here's the PR - #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants