Announcement

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

#1 2005-03-31 07:27:34

JAC
Xinha Community Member
Registered: 2005-03-16
Posts: 11

Problem with spell checker

Hello,

I'm having a problem getting the spell checker to work.

Whenever I click on the spell-check button, the inner frame can't find the right page to display.

The outer frame is listed as: http://mywebsite.com/v1/xinha/plugins/S … ck-ui.html

But the inner frame comes up as: http://mywebsite.com/v1/xinha/plugins/S … -logic.php

It looks like the spell-checker is somehow doubling up the URL of the inner frame.

Have I defined something incorrectly?

thanks,
Gill

Offline

#2 2005-04-02 05:04:12

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

Re: Problem with spell checker

Can you post your configuration please.


James Sleeman

Offline

#3 2005-04-04 09:45:14

JAC
Xinha Community Member
Registered: 2005-03-16
Posts: 11

Re: Problem with spell checker

Which files do you need?

Offline

#4 2005-04-04 10:00:00

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Problem with spell checker

your configuration, where you load the editor and set the config-object
usually this is just one file.


Niko

Offline

#5 2005-04-06 10:57:33

JAC
Xinha Community Member
Registered: 2005-03-16
Posts: 11

Re: Problem with spell checker

Hope this is what you're after...

    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 :
      [
       'CharacterMap',
       'ContextMenu',
       'ListType',
       'SpellChecker',
       'Stylist',
//       'SuperClean',
       'InsertField'
      ];
             if(!HTMLArea.loadPlugins(xinha_plugins, xinha_init)) return;

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

       xinha_config = xinha_config ? xinha_config : new HTMLArea.Config();

// EDIT THIS SECTION TO ADJUST THE STYLES

    // define the stylesheet and then refer to styles that have been included in the style sheet       
        xinha_config.stylistLoadStylesheet('http://jac.starlightconsulting.com/v1/test/test.css');
        xinha_config.stylistLoadStyles('.pink_text', {'.pink_text' : 'Pretty Pink'});

// END OF EDITABLE SECTION
       
        xinha_config.toolbar =
          [
            ["undo","redo"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste"]),["separator"],
            ["formatblock","fontname","fontsize","bold","italic","underline","strikethrough","separator"],
            ["forecolor","separator"],
            ["subscript","superscript"],
            ["linebreak","justifyleft","justifycenter","justifyright","justifyfull","separator"],
            ["insertorderedlist","insertunorderedlist","outdent","indent","separator"],
            ["inserthorizontalrule","createlink","insertimage","inserttable","separator"],
            ["killword","removeformat","htmlmode"]
          ];

     xinha_config.statusBar = false; // removes tag status bar       
     xinha_editors   = HTMLArea.makeEditors(xinha_editors, xinha_config, xinha_plugins);

      HTMLArea.startEditors(xinha_editors);
    }

    window.onload = xinha_init;

---------------------------------------

Thanks!

Offline

#6 2005-04-07 02:48:58

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: Problem with spell checker

and whats your editor_url?
please post too the lines where you load htmlarea.js and set _editor_url

Last edited by niko (2005-04-07 02:49:24)


Niko

Offline

#7 2005-05-05 11:32:55

JAC
Xinha Community Member
Registered: 2005-03-16
Posts: 11

Re: Problem with spell checker

... sorry for delay in replying...

<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.
</script>

<script type="text/javascript" src="xinha/htmlarea.js"></script>
<script type="text/javascript" src="test/test_config.js"></script>      

<textarea name="content" style="width: 100%" rows="15" cols="80" id="content">

THANKS!
Gill

Offline

#8 2005-05-05 11:51:51

KaplanDigital
Xinha Community Member
Registered: 2005-04-04
Posts: 22

Re: Problem with spell checker

Try making _editor_url  absolute.

Offline

Board footer

Powered by FluxBB