You are not logged in.
Pages: 1
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
Which files do you need?
Offline
your configuration, where you load the editor and set the config-object
usually this is just one file.
Niko
Offline
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
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
... 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
Try making _editor_url absolute.
Offline
Pages: 1