<richtext> поддерживает custom input.
При этом эти самые input элементы создаются как элементы "большого DOM" т.е. их можно стилировать и на них можно рисовать с пом. Graphics и пр.
Вот демо
<html>
<head>
<title></title>
<style>
richtext input[type="custom"]
{
background:red;
border:1px solid;
border-color: gold brown brown gold;
width:64px;
height:16px;
prototype: MyInput;
}
</style>
<script type="text/tiscript">
class MyInput:Behavior
{
function attached()
{
this.$content(Hi!);
}
}
$(button#show).onClick = function()
{
var rt = $(richtext);
for(var i = 0; i < rt.length; ++i)
stdout.println(rt[i]);
}
</script>
</head>
<body>
<button #show>Show inputs</button>
<richtext>
Use of custom inputs: <input type="custom" />
</richtext>
</body>
</html>