# RMMVUse HTML in Textbox

#### Astrina

##### Villager
Hi,
for a math-oriented game i would like to use something like this:
<!DOCTYPE html>
<html>
<title>MathJax TeX Test Page</title>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script type="text/javascript" id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>
<body>
When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</body>
</html>

which should render to the attached output in a message box.
I am new the rpg maker, so perhaps i simply haven't used the right terms for the search.

#### Attachments

• math.png
7 KB · Views: 2

#### Shaz

##### Global Moderators

I am moving this to Plugin Requests

I imagine there would be some way via script to do this, but anything adding new functionality to the text box will require a plugin.

#### Astrina

##### Villager
Thank you, i was not aware of that.

#### Kaelan

##### Veteran
You should look into how windows in MV work. You'll have to make your own Window class and use the javascript DOM API to manipulate DOM elements to do whatever you would have done with them in HTML.

I had to do this to implement UTF-8 support for text boxes in the Knight Editor, you can look at the code here, here, and here if you want an example of the sort of things you need to do.

#### Astrina

##### Villager
Wow, that looks overwhelming at the first glance. I will have to download your plugin and see the way it looks and try to combine it with your code.
Thank you very much for giving me a starting point!

#### Kaelan

##### Veteran
There's a lot of code there mostly because I wrote my own extension to the default Window class, so I could add a bunch of extra features to it that make it a bit easier to write complex UI, and so I could avoid having my changes overwrite the regular windows people use for their game while they're using my plugin.

You don't really need to do any of that if you don't want to though, if all you care about is getting HTML elements inside a window, you should be able to get that by mostly just making your own version of the EditorHTMLTextInput class and putting it in your own Window.

There's a few snags to getting it to work correctly, so if you have any questions about it feel free to ask

### Latest Profile Posts

Do you like to practice level design? I do hahahaha! It's not from a specific game, it's just some tests...
I really need a better indicator of where you can jump up and down though I feel... otherwise I like how this turned out for the first part of the first dungeon of the game.
@Shaz needs to make a website for his plugins. (it can be done easily for free with google sites.) I can't find a database of them anywhere!

testing #2

testing~