Announcement

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

#1 2011-08-02 17:06:23

Heinrich
Xinha Community Member
Registered: 2011-08-02
Posts: 10

Xina Editor doesn't appear

Hi,

I'm newbie and tried to install xinha (downloaded the latest version). Like newbie-guide I did this:

Created a "my_config.js" using the example

name of editor = editor:

  xinha_editors = xinha_editors ? xinha_editors :
  [
    'editor'
  ];

Inserted into the head of the executing file:

  <script type="text/javascript">
    _editor_url  = "../xinha/"   // (preferably absolute) URL (including trailing slash) where Xinha is installed
    _editor_lang = "en";       // And the language we need to use in the editor.
    _editor_skin = "silva";    // If you want use a skin, add the name (of the folder) here
    _editor_icons = "classic"; // If you want to use a different iconset, add the name (of the folder, under the `iconsets` folder) here
  </script>
  <script type="text/javascript" src="../xinha/XinhaCore.js"></script>
  <script type="text/javascript" src="../xinha/my_config.js"></script>

and into the body:

echo '<textarea id="editor" name="newbiearea1" rows="50" cols="50" style="width: 100%">';
echo $text1;
echo "</textarea>";

Uploaded all files to the server.

The path seems to be correct. There is a directory "xinha" on same level as the directory ("admin") of the executing file.

All I see is the pure html-code in the textarea instead of xinha-editor. What's wrong. Thanks for help.

Offline

#2 2011-08-03 09:18:56

Heinrich
Xinha Community Member
Registered: 2011-08-02
Posts: 10

Re: Xina Editor doesn't appear

I found js error messages:

in IE 8.0.8001:
Meldung: 'Xinha.getPluginConstructor(...)' ist Null oder kein Objekt
Zeile: 3815
Zeichen: 7
Code: 0
URI: ...../xinha/XinhaCore.js

in FF 5.0:
Fehler: plugin is not a constructor
Quelldatei: ....../xinha/XinhaCore.js
Zeile: 3700

I'll be glad if somebody knows what to do.

Last edited by Heinrich (2011-08-03 09:19:43)

Offline

#3 2011-08-04 15:04:18

Heinrich
Xinha Community Member
Registered: 2011-08-02
Posts: 10

Re: Xina Editor doesn't appear

Hi,

isn't there any suggestion? Seems really strange to me - the silence in this forum...

Offline

#4 2011-08-04 21:28:45

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Xina Editor doesn't appear

Very likely a permissions/path issue.

Look at the server logs (or use a browser like Chrome or Firefox which can tell you) and see the 404 or other server errors which are being thrown because your permissions or paths are incorrect.


James Sleeman

Offline

#5 2011-08-05 04:54:10

Heinrich
Xinha Community Member
Registered: 2011-08-02
Posts: 10

Re: Xina Editor doesn't appear

Hi gogo,

thanks very much. Permissions and path had been correct. But the upload had failed for many files. Uploaded the package again and know it works.

Think I'm coming soon with new problems -:))

Offline

Board footer

Powered by FluxBB