You are not logged in.
Pages: 1
I've just installed the new 0.931 version, and it doesn't work.
I just backed up my old xinha folder, and uploade the whole new folder.
In firefox 2, i got this error (in Firebug) :
Xinha.getDoctype is not a function
XinhaCore.js (line 1410)
My configuration remain the same :
<script type="text/javascript">
_editor_url = "/admin/xinha/" // (preferably absolute) URL (including trailing slash) where Xinha is installed
_editor_lang = "fr"; // And the language we need to use in the editor.
</script>
<script type="text/javascript" src="/admin/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 :
['CharacterMap',
'ContextMenu',
'ListType',
'Stylist',
'SuperClean',
'TableOperations',
'ExtendedFileManager',
'HtmlEntities',
'Linker'];
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING :)
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :['texte'];
xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
//If you don't want to add a button for linking files and use only the advanced ImageManager
xinha_config.ExtendedFileManager.use_linker = false;
// pass the configuration to plugin
if (xinha_config.ExtendedFileManager) {
with (xinha_config.ExtendedFileManager)
{
<?php
// define backend configuration for the plugin
$IMConfig = array();
$IMConfig['images_dir'] = '/home/biolineaires/web/images/upload/';
$IMConfig['images_url'] = '/images/upload/';
$IMConfig['files_dir'] = '/home/biolineaires/web/images/upload/';
$IMConfig['files_url'] = '/images/upload/';
$IMConfig['thumbnail_prefix'] = 't_';
$IMConfig['thumbnail_dir'] = 't';
$IMConfig['resized_prefix'] = 'resized_';
$IMConfig['resized_dir'] = 'r';
$IMConfig['tmp_prefix'] = '_tmp';
$IMConfig['max_filesize_kb_image'] = 2000;
// maximum size for uploading files in 'insert image' mode (2000 kB here)
$IMConfig['max_filesize_kb_link'] = 5000;
// maximum size for uploading files in 'insert link' mode (5000 kB here)
// Maximum upload folder size in Megabytes.
// Use 0 to disable limit
$IMConfig['max_foldersize_mb'] = 0;
$IMConfig['allowed_image_extensions'] = array("jpg","gif","png");
$IMConfig['allowed_link_extensions'] = array("jpg","gif","pdf","ip","txt",
"psd","png","html","swf",
"xml","xls");
$IMConfig['images_enable_popup'] = true;
require_once '/home/biolineaires/web/admin/xinha/contrib/php-xinha.php';
xinha_pass_to_php_backend($IMConfig);
?>
}
}
xinha_config.formatblock =
{
"— Style —": "",
"Titre 1" : "h3",
"Titre 2" : "h4",
"Titre 3" : "h5",
"Normal" : "p"
};
xinha_config.pageStyleSheets = ["/css/xinha2.css"];
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
}
Xinha._addEvent(window,'load', xinha_init); // this executes the xinha_init function on page load
// and does not interfere with window.onload properties set by other scripts
</script>
Did I miss something ?
Offline
The same error for me too. Fixed by added this line in config file
xinha_config.browserQuirksMode = false;
Offline
Pages: 1