Announcement

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

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

#1 2011-03-24 10:24:11

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Xinha broken in IE9

In IE9 the Xinha loader stops at 'Creating toolbar' and doesn't finish. While you can edit and continue 'behind' the popup, you're working with raw HTML.

There is a temporary workaround discussed in this thread:

http://www.xinha.org/punbb/viewtopic.php?id=3777

but that is not a production solution and degrades the browser performance.

Offline

#2 2011-03-24 10:46:06

kren
New member
Registered: 2011-03-24
Posts: 4

Re: Xinha broken in IE9

..nor does it work for me. :-)

Offline

#3 2011-03-25 04:57:07

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

Doesn't work for me either sad

I tried emulating IE7 as well.

<meta http-equiv="X-UA-Compatible" content="IE=7"  />

Unfortunately, no results..

Offline

#4 2011-03-25 08:44:23

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

I checked and version 0.95 RC2 works in IE 9 smile

Offline

#5 2011-03-26 08:24:27

ejucovy
Xinha Community Member
From: NY
Registered: 2010-11-15
Posts: 35
Website

Re: Xinha broken in IE9

Ah, that's helpful information, thanks Ecco.  I don't have IE9 installed anywhere but I'll take a look as soon as I do (no idea when that'll be though)

If you have a chance to look even more closely, it would be really helpful to know exactly which SVN revision it stops working at.  0.95RC2 corresponds to SVN revision 968 (roughly) and the current code is at revision 1296 -- you could do a sort of binary search to see which revision stops working in IE9, e.g. check out the code at revision ~1100, if it's broken there then try revision ~1000, etc ..

Offline

#6 2011-04-05 18:45:43

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: Xinha broken in IE9

.

Offline

#7 2011-04-07 04:57:29

kren
New member
Registered: 2011-03-24
Posts: 4

Re: Xinha broken in IE9

Works, just add <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> as the _first_ tag after <head> or upgrade to 0.95 RC2 :-)

Offline


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 717

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

#8 2011-04-07 09:49:19

Legin76
New member
Registered: 2010-08-04
Posts: 7

Re: Xinha broken in IE9

ejucovy wrote:

Ah, that's helpful information, thanks Ecco.  I don't have IE9 installed anywhere but I'll take a look as soon as I do (no idea when that'll be though)

If you have a chance to look even more closely, it would be really helpful to know exactly which SVN revision it stops working at.  0.95RC2 corresponds to SVN revision 968 (roughly) and the current code is at revision 1296 -- you could do a sort of binary search to see which revision stops working in IE9, e.g. check out the code at revision ~1100, if it's broken there then try revision ~1000, etc ..

I've tested it with a few versions now.

1170 works.

In 1263 it starts to load but stops at the following. I wonder if it relates to the fixes done for IE8. If you press the compatibility button it works.

Loading in progress. Please wait!
Create Toolbar

In 1297 (nightly) it fails in the same place. It loads in compatibility mode but the following message does not dissapear dispite being able to use the editor behind it.

Loading in progress. Please wait!
Finishing

Last edited by Legin76 (2011-04-07 10:07:27)

Offline

#9 2011-04-07 10:14:03

Legin76
New member
Registered: 2010-08-04
Posts: 7

Re: Xinha broken in IE9

It does not load much faster than than it did in IE8 in compatibility but it loads really fast for 1170.

Offline

#10 2011-04-09 07:44:25

Legin76
New member
Registered: 2010-08-04
Posts: 7

Re: Xinha broken in IE9

Using IE developers tools I get the following error in the console for IE9... but not in compatibility mode.

SCRIPT5002: Function expected
XinhaCore.js, line 1572 character 18

I hope this helps.

Offline

#11 2011-04-11 16:50:20

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: Xinha broken in IE9

The specific code that is breaking is this:

        // IE8 is totally retarded, if you click on a toolbar element (eg button)
        // and it doesn't have unselectable="on", then it defocuses the editor losing the selection
        // so nothing works.  Particularly prevalent with TableOperations
        function noselect(e)
        {
    if(e.tagName) e.unselectable = "on";
    if(e.childNodes)
    {
      for(var i = 0; i < e.childNodes.length; i++) if(e.tagName) noselect(e.childNodes(i));
    }
        }

The "noselect(e.childNodes(i))" part is the exact offending bit. You can't call the noselect function from inside the noselect function before the function is completely defined I think. I'm not sure how to fix this. Any ideas from devs?

Offline


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

#12 2011-04-11 20:11:32

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

Re: Xinha broken in IE9

What it will be complaining about is "e.childNodes(i)".  Try changing to "e.childNodes[i]". 

Or possibly even "e.childNodes.item(i)"


James Sleeman

Offline

#13 2011-04-11 23:35:30

ateslik
Xinha Community Member
Registered: 2009-07-16
Posts: 33

Re: Xinha broken in IE9

changing it to e.childNodes.item(i) worked.

Thanks James!

Offline

#14 2011-04-20 09:00:58

alanversowa
New member
Registered: 2011-04-14
Posts: 1

Re: Xinha broken in IE9

it does not load much faster than than it did in IE8 in compatibility but it loads really fast for 1170.

Offline

#15 2011-05-01 07:03:27

giovanni
New member
Registered: 2011-04-30
Posts: 1
Website

Re: Xinha broken in IE9

Hi to everyone i'm new of this forum. I decided to try Xinha as an alternative of other rich text editor, and i found it very well done and rich of features.
Everithing works well under firefox and chrome but when i use ie9 with the modified code: changing it from "e.childNodes(i)" to  "e.childNodes.item(i)", it works, but there is no way to use the extended file manager plugin, wich doesn't start giving a lot of errors

When i try it in compatibility mode with ie8 adding the following meta

"<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >"

it works fine but i notice a conflict with superfish menu

any ideas?

thank in advance

Offline

#16 2011-05-11 04:39:27

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

Amigos, I also have Xinha working in IE9, but none of the plugins that truly pop up work. The plugins that appear in the new "div-windows" (like CharacterMap) work just fine.

Offline

#17 2011-07-25 11:23:01

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

Got it! FINALLY big_smile

After I applied ateslik's changes above, I still had problems with IE9. On some of the pages, Xinha would startup and all the plugins worked just fine. On other pages, nothing worked, and on some, the popups wouldn't work.

I noticed that the code was different on all of my pages and after much trial and error, I came up with this which I'll use from now on - until there's an update (hint tongue)

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title</title>
    
<script>
var _editor_url  = "./xinha/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="/xinha/XinhaCore.js"></script>
<script>

xinha_editors = null;
xinha_init    = null;
xinha_config  = null;

var xinha_plugins =
[
 'CharacterMap',
 'ContextMenu',
 'ListType',
 'ImageManager',
 'TableOperations',
 'InsertWords'

];
var xinha_editors =
[
'myTextArea'
];

var xinha_config = new Xinha.Config();

xinha_config.width  = 640;
xinha_config.height = 350;

 xinha_config.formatblock =
  {
    "&mdash; format &mdash;": "",
    "Heading 1": "h1",
    "Heading 2": "h2",
    "Heading 3": "h3",
    "Heading 4": "h4",
    "Heading 5": "h5",
    "Heading 6": "h6",
    "Paragraaf": "p"
  };

xinha_config.fontname =
  {
    "&mdash; lettertype &mdash;": '',
    "Arial":             'arial,helvetica,sans-serif',
    "Courier New":       'courier new,courier,monospace',
    "Georgia":           'georgia,times new roman,times,serif',
    "Tahoma":            'tahoma,arial,helvetica,sans-serif',
    "Times New Roman": 'times new roman,times,serif',
    "Verdana":           'verdana,arial,helvetica,sans-serif',
    "impact":             'impact',
    "WingDings":         'wingdings'
};

xinha_config.fontsize =
{
    "&mdash; grootte &mdash;": "",
    "1 (8 pt)" : "1",
    "2 (10 pt)": "2",
    "3 (12 pt)": "3",
    "4 (14 pt)": "4",
    "5 (18 pt)": "5",
    "6 (24 pt)": "6",
    "7 (36 pt)": "7"
  };

xinha_config.toolbar =
  [
    ["htmlmode","popupeditor"],
    ["formatblock","fontname","fontsize","bold","italic","underline","strikethrough"],
    ["forecolor","hilitecolor","textindicator"],
    ["subscript","superscript","insertcharacter"],
    ["justifyleft","justifycenter","justifyright","justifyfull"],
    ["insertorderedlist","insertunorderedlist","listtype"],
    ["inserthorizontalrule","createlink","insertimage","inserttable"],
    ["undo","redo"],
    ["toggleborders"]
];

xinha_init = xinha_init ? xinha_init : function() {
if(!Xinha.loadPlugins(xinha_plugins, xinha_init))
    return;
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
}
window.onload = xinha_init;
</script>

Last edited by Ecco (2011-07-25 11:24:23)

Offline

#18 2011-10-11 04:54:33

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

We also have to add

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">

to the file manager.php of the ImageManager...

Offline

#19 2011-11-29 05:12:18

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

Regarding 0.95 RC2, we DO have to include <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> because the plugins that popup don't work without it. Those plugins need to emulate IE8 as well.

Offline

#20 2012-02-09 08:07:44

AT
New member
Registered: 2012-02-08
Posts: 1

Re: Xinha broken in IE9

I tried using this solution for IE9, but it breaks my layout, even though my site works just fine in IE8 as is.  Xinha works in "compatibility mode" but I don't want my clients to have to find and hit that button to use Xinha.  With each new version if IE, it is moving closer and closer to W3C compliance, so the idea of forever forcing an emulation of an old browser doesn't seem quite right..

Last edited by AT (2012-02-11 22:14:48)

Offline

#21 2012-03-30 05:44:00

Ecco
Xinha Community Member
From: Netherlands
Registered: 2005-03-08
Posts: 48
Website

Re: Xinha broken in IE9

Since all our clients at work use IE, I had no other option but to switch to that other very famous editor sad

Offline

#22 2012-03-30 22:36:34

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

Re: Xinha broken in IE9

*cough* patches welcome *cough*


James Sleeman

Offline

#23 2012-04-05 21:15:09

webclinic
New member
From: New Zealand
Registered: 2012-04-05
Posts: 1
Website

Re: Xinha broken in IE9

Gidday,

I replaced an older version of Xinha with 0.96.1 in one of my applications. Then it wouldn't load up on IE9.

I deleted the temporary internet files and cookies in IE9 and it started working fine.

Hopefully this will help someone.

Regards,
Andrew Trotman.

Offline


Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/xinha/public_html/r.f/include/parser.php on line 774

#24 2012-12-13 04:18:15

alicia45
New member
Registered: 2012-12-13
Posts: 1

Re: Xinha broken in IE9

emulating IE7, I have used.. But it is not working for me...





plagiarismsoftware.org

Last edited by alicia45 (2013-06-06 03:21:51)

Offline

#25 2014-01-16 16:36:03

andyk
New member
Registered: 2014-01-16
Posts: 3

Re: Xinha broken in IE9

For IE 11 users the header that works for me is:

<meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">

Offline

Board footer

Powered by FluxBB