Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-02-06 07:38:15

joshna
New member
Registered: 2007-02-06
Posts: 8

xinha not loaded

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

#2 2007-02-06 14:04:31

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: xinha not loaded

Everything correct from what I see. I suppose it's a problem with wrong URLs and the files are not loaded.

Offline

#3 2007-02-11 06:54:59

joshna
New member
Registered: 2007-02-06
Posts: 8

Re: xinha not loaded

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

Board footer

Powered by FluxBB