You are not logged in.
my xinha setup is not working in internet explorer 6, 7 browsers, in ff pc and mac its fine.
can somebody help me?
0.95 RC2
<script type="text/javascript">
_editor_url = "../beheer/xinha/";
_editor_lang = "nl";
_editor_skin = "blue-look";
</script>
<script type="text/javascript" src="../beheer/xinha/XinhaCore.js"></script>
<script type="text/javascript" src="../beheer/xinha/config.js"></script>
xinha_editors = null;
xinha_init = null;
xinha_config = null;
xinha_plugins = null;
// This contains the names of textareas we will make into Xinha editors
xinha_init = xinha_init ? xinha_init : function()
{
xinha_plugins = xinha_plugins ? xinha_plugins :
[
'ExtendedFileManager',
'CharacterMap',
'ContextMenu',
'SmartReplace',
'Stylist',
'Linker',
'SuperClean'
];
// THIS BIT OF JAVASCRIPT LOADS THE PLUGINS, NO TOUCHING
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
xinha_editors = xinha_editors ? xinha_editors :
[
'content_NL','content_EN'
];
xinha_config = xinha_config ? xinha_config() : new Xinha.Config();
xinha_config.pageStyleSheets=[_editor_url+"examples/ydozer.css"];
xinha_config.showLoading = true;
xinha_config.statusBar = true;
xinha_config.stripBaseHref = false;
xinha_config.baseHref = "<?php print 'http://'. $_SERVER['SERVER_NAME'] ?>";
<?php require_once '../beheer/xinha/contrib/php-xinha.php'; ?>
if (xinha_config.Linker)
{
with(xinha_config.Linker)
{
<?php
xinha_pass_to_php_backend
(
array(
'dir' => $_SERVER['DOCUMENT_ROOT'].'/beheer/uploads/',
'include' => '/\.(php|shtml|html|htm|shtm|cgi|txt|doc|pdf|rtf|xls|csv)$/', // Regex or null
'exclude' => null, // Regex or null
'dirinclude' => null, // Regex or null
'direxclude' => null // Regex or null
)
);
?>
}
}
xinha_config.ExtendedFileManager.use_linker = true;
if (xinha_config.ExtendedFileManager) {
with (xinha_config.ExtendedFileManager)
{
<?php
// define backend configuration for the plugin
$IMConfig = array();
// the directories have to be writeable for php (that means 777 under linux)
$IMConfig['max_foldersize_mb'] = 10;
$IMConfig['files_dir'] = $_SERVER['DOCUMENT_ROOT'].'/beheer/uploads';
$IMConfig['images_dir'] = $_SERVER['DOCUMENT_ROOT'].'/beheer/uploads';
$IMConfig['files_url'] = 'http://www.yellowdozer.nl/beheer/uploads';
$IMConfig['images_url'] = 'http://www.yellowdozer.nl/beheer/uploads';
$IMConfig['images_enable_styling'] = false;
$IMConfig['max_filesize_kb_image'] = 200;
// we can use the value 'max' to allow the maximium upload size defined in php_ini
$IMConfig['max_filesize_kb_link'] = 'max';
$IMConfig['allowed_link_extensions'] = array("jpg","gif","js","pdf","zip","txt","psd","png","html","swf","xml","xls");
xinha_pass_to_php_backend($IMConfig);
?>
}
}
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
}
Xinha._addEvent(window,'load', xinha_init);
Offline
Try to define only one xinha_editors,
I had to do that - and got RC2 working in IE6/7.
xinha_editors = xinha_editors ? xinha_editors :
[
'content_NL'
];
Offline
I have seen similar problems when the textarea name was used, and was different from the ID.
Offline
I tried both but Xinha still doesn't work in IE 10. What to do?
Offline
Okay - I've got it. Have a look here
http://www.xinha.org/punbb/viewtopic.php?id=3782
Offline