You are not logged in.
Pages: 1
Hi
I am trying to embed xinha editor in a web page.But xinha is not being loaded.
I am following the same steps that are described in newbie guide.
Here is the code which i am using. please let me know where exactly i am going wrong.
<!DOCTYPE BHTML PUBLIC "-//BC//DTD BHTML 3.2 Final//EN">
<html>
<head> <script>
_editor_url = "/xinha/";
_editor_lang = "en";
_editor_skin = "blue-metallic";
</script>
<script type="text/javascript" src="/xinha/XinhaCore.js"></script>
<script type="text/javascript">
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins : [ ];
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'newbiearea1'
];
xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
}
window.onload = xinha_init;
</script>
</head>
<textarea id="newbiearea1" name="newbiearea1" rows="10" cols="50" style="width: 100%"></textarea>
</html>
Thanks in advance.
Offline
Thanks ray I got it working.But the problem now is i am unable to embed it in a portlet.Can you help me do that
Offline
Pages: 1