You are not logged in.
Pages: 1
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
..nor does it work for me. :-)
Offline
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
.
Offline
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
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
It does not load much faster than than it did in IE8 in compatibility but it loads really fast for 1170.
Offline
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
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
changing it to e.childNodes.item(i) worked.
Thanks James!
Offline
it does not load much faster than than it did in IE8 in compatibility but it loads really fast for 1170.
Offline
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
Got it! FINALLY
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 )
<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 =
{
"— format —": "",
"Heading 1": "h1",
"Heading 2": "h2",
"Heading 3": "h3",
"Heading 4": "h4",
"Heading 5": "h5",
"Heading 6": "h6",
"Paragraaf": "p"
};
xinha_config.fontname =
{
"— lettertype —": '',
"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 =
{
"— grootte —": "",
"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
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
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
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
emulating IE7, I have used.. But it is not working for me...
Last edited by alicia45 (2013-06-06 03:21:51)
Offline
For IE 11 users the header that works for me is:
<meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">
Offline
Pages: 1