I am trying to create an edit box so that the player can edit a spell description.
The description is in html code e.g. : <p>This field is for the long description</p>
The relevant code looks like this:
Code: Select all
[h: SaveToTableLink = macroLinkText("SaveToTable@this","all")]
[h: DescriptionTextArea="<textarea name='SpellDescription' cols= '100' rows='100'>" + encode(SpellDescription) + "</textarea>"]
<html>
<body>
[dialog("Spell"): {
<form action="[r:SaveToTableLink]" method="json">
<table border="1">
<tr>
<td align=left>{DescriptionTextArea}</td>
</tr>
</table>
</form>}]
</body>
</html>
If I don't encode SpellDescription, it ends up underneath the edit box.
Any idea how to get around this?