Announcement

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

#1 2008-03-04 13:13:16

ritz
New member
Registered: 2008-03-04
Posts: 1

Cross browser but not working in IE6,7

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  smile
             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

#2 2008-03-09 13:06:15

Burnie
New member
Registered: 2008-03-09
Posts: 1

Re: Cross browser but not working in IE6,7

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

#3 2008-03-10 01:52:16

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Cross browser but not working in IE6,7

I have seen similar problems when the textarea name was used, and was different from the ID.

Offline

#4 2013-06-09 08:51:56

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

Re: Cross browser but not working in IE6,7

I tried both but Xinha still doesn't work in IE 10. What to do?

Offline

#5 2013-06-09 09:34:02

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

Re: Cross browser but not working in IE6,7

Okay - I've got it. Have a look here
http://www.xinha.org/punbb/viewtopic.php?id=3782

Offline

Board footer

Powered by FluxBB