<patTemplate:tmpl name="head">
<script type="text/javascript">
var _editor_url = "./editors/htmlarea/";
var _editor_lang = "en";
</script>
<script type="text/javascript" src="editors/htmlarea/htmlarea.js"></script>
<script type="text/javascript">
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("CSS");
</script>
<script type="text/javascript">
var editor = null;
function InitEditor()
{
editor = new HTMLArea("conteudo");
editor.config.pageStyle = "@import (../../user.css);";
// register the SpellChecker plugin
editor.registerPlugin(TableOperations);
editor.registerPlugin(ContextMenu);
editor.registerPlugin(CSS, {
combos : [
{
label: "CSS:",
options: { "nenhum" : "" {CSS} }
}
]
});
setTimeout(function() {
editor.generate();
}, 500);
return false;
}
</script>
</patTemplate:tmpl>
<patTemplate:tmpl name="onload" whitespace="trim">
InitEditor();
</patTemplate:tmpl>
<patTemplate:tmpl name="editor" varscope="formulario">
<script type="text/javascript">
<!--
function SetupEditor()
{
document.getElementById("conteudo").value = editor.getHTML();
}
// -->
</script>
<textarea id="conteudo" style="width: 100%;" name="conteudo" rows="20" cols="20">{CONTEUDO}</textarea>
</patTemplate:tmpl>